test: add modular launch tests for TurtleBot3

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

  • #847 di @Aaravanand00 — aperta

Valutazione

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

Direzione di ricerca

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.

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

Descrizione

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.

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.