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

Abierto
#848 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

@Aaravanand00 ya está trabajando en esto.

Desde el 6/11/2026.

  • #849 de @Aaravanand00 — abierto

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
70/100
Tipo de issue
Nueva funcionalidad
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
python

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Python
Estrellas
69
Forks
81
Merge medio
1 d 9 h
PR fusionados (30 d)
16

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de JdeRobot/RoboticsInfrastructure

Todos los issues de JdeRobot/RoboticsInfrastructure

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.