test: add modular launch tests for TurtleBot3

Abierto
#845 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.

  • #847 de @Aaravanand00 — abierto

Evaluación

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

Línea de trabajo

Start by reading the existing robot launchers in Launchers/robots/turtlebot3/ and the repository’s current launch_testing tests, then inspect test/test_turtlebot3.py conventions if that file exists. Run the TurtleBot3 Burger spawn launcher in headless simulation and check how the project starts and stops Gazebo. Done means the modular test covers startup, /odom and /scan data, movement after a /cmd_vel command, safe message length checks, and clean teardown under colcon test and launch_test.

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

Descripción

Context

As discussed in organization discussion #827, the repository is moving from world-based tests to robot-centric launch tests. TurtleBot3 (Launchers/robots/turtlebot3/) has been decoupled with dedicated spawn and state publisher launchers, but currently lacks automated launch tests to verify spawning and topic functionality.

Description

Create a modular launch test test/test_turtlebot3.py using ROS 2 launch_testing to validate TurtleBot3 Burger in headless simulation.

Proposed Test Scope
  1. Spawning & State :-
    • Launch TurtleBot3 using Launchers/robots/turtlebot3/spawn_robot.launch.py.
    • Verify nodes (robot_state_publisher, simulation bridges) start up correctly.
  2. Sensor & State Topics :-
    • Assert that /odom (nav_msgs/msg/Odometry) is actively publishing valid pose data.
    • Assert that /scan (sensor_msgs/msg/LaserScan) is receiving range readings.
  3. Movement & Teleoperation :-
    • Publish geometry_msgs/msg/Twist velocity commands to /cmd_vel.
    • Assert that the robot position changes (delta check on /odom coordinates).
  4. Teardown :-
    • Clean shutdown of nodes and simulation via utils.stop_gazebo().
Acceptance Criteria
  • test/test_turtlebot3.py passes under colcon test and launch_test.
  • Test includes safety length checks to prevent IndexError on topic message arrays.
  • A step-by-step video verification inside the RADI container will be attached to the pr.

I want to work on this and submit a pr following the 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.