test: add modular launch tests for Roomba / vacuum cleaner robot

Aperta
#848 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@Aaravanand00 ci sta già lavorando.

Dal 6/11/2026.

  • #849 di @Aaravanand00 — aperta

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
70/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
python

Direzione di ricerca

Read CustomRobots/vacuum_cleaner/launch/vacuum_cleaner.launch.py and the existing launch tests to follow the project’s ROS 2 launch_testing setup. Add test/test_roomba.py to check spawning, bridge startup, sensor and bumper topics, movement from velocity commands, and clean teardown. Run the test with colcon test and launch_test; done means the launch test passes in the stated Docker setup.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Context

As part of the roadmap discussed in organization discussion #827 (moving from legacy world-centric tests to modular, robot-centric tests), each robot needs automated launch tests to verify headless spawning, sensors, teleoperation, and bridge topics.

Description

Create a modular launch test test/test_roomba.py (or test/test_vacuum_cleaner.py) using ROS 2 launch_testing to validate the Roomba / Vacuum Cleaner robot (CustomRobots/vacuum_cleaner/launch/vacuum_cleaner.launch.py) in headless simulation.

Proposed Test Scope
  1. Spawning & Bridge Initialization :-
    • Launch the robot via CustomRobots/vacuum_cleaner/launch/vacuum_cleaner.launch.py.
    • Verify robot_state_publisher, simulation entity spawning, and ros_gz_bridge startup.
  2. Sensor & Bumper Event Topics :-
    • Assert active message reception on /{namespace}/odom (nav_msgs/msg/Odometry).
    • Assert active message reception on /{namespace}/laser/scan (sensor_msgs/msg/LaserScan).
    • Assert availability of bumper event topics:
      • /{namespace}/events/center_bumper (ros_gz_interfaces/msg/Contacts)
      • /{namespace}/events/left_bumper
      • /{namespace}/events/right_bumper
  3. Teleoperation & Movement :-
    • Publish velocity commands (geometry_msgs/msg/Twist) to /{namespace}/cmd_vel.
    • Assert coordinate displacement in odometry messages.
  4. Clean Teardown :-
    • Ensure graceful node shutdown and simulation termination via utils.stop_gazebo().
Acceptance Criteria
  • test/test_roomba.py passes under colcon test and launch_test.
  • Verified using a Custom RADI Docker image without volume mounts (-v).
  • Screen recording demonstrating discovery and test execution will be attached to the PR.

I would like to work on this and submit a PR following the contribution guidelines.

Lingua principale
Python
Stelle
69
Fork
81
Merge medio
1g 9h
PR unite (30g)
16

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di JdeRobot/RoboticsInfrastructure

Tutte le issue di JdeRobot/RoboticsInfrastructure

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.