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

Đang mở
#848 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@Aaravanand00 đang làm issue này rồi.

Từ ngày 6/11/2026.

  • #849 của @Aaravanand00 — đang mở

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
70/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
embedded-iot, robotics, testing

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Python
Star
69
Fork
81
Merge trung bình
1 ngày 9 giờ
Pull request đã merge (30 ngày)
16

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của JdeRobot/RoboticsInfrastructure

Tất cả issue của JdeRobot/RoboticsInfrastructure

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.