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

未关闭
#848 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

@Aaravanand00 已经在做这个了。

开始于 2026年11月6日。

  • #849 来自 @Aaravanand00 —— 未关闭

评估

难度
4/5
预计耗时
3-5 天
新手友好度
70/100
Issue 类型
功能
描述清晰度
描述清楚
活跃度
活跃
技术栈
python

调研方向

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.

由索引模型根据 Issue 内容生成。

描述

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.

主要语言
Python
星标
69
派生
81
平均合并
1 天 9 小时
30 天内合并 PR
16

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

JdeRobot/RoboticsInfrastructure 的其他 Issue

查看 JdeRobot/RoboticsInfrastructure 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。