test: add modular launch tests for TurtleBot3

Open
#845 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@Aaravanand00 is already working on this.

Since Nov 6, 2026.

  • #847 by @Aaravanand00 — open

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
68/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
python
Domain
robotics, testing

Research direction

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.

Written by the indexing model from the issue text.

Description

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.

Dominant language
Python
Stars
69
Forks
81
Avg merge
1d 9h
Merged PRs (30d)
16

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from JdeRobot/RoboticsInfrastructure

All issues in JdeRobot/RoboticsInfrastructure

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.