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

Open
#848 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.

  • #849 by @Aaravanand00 — open

Assessment

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

Research direction

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.

Written by the indexing model from the issue text.

Description

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.

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.