Repository navigation
Description
Task
T-094d· Milestone M9 — Gazebo backend · Size S · Priority P0 · Epic #9Implements FR-SIM-003
Branch
feat/t-094d-gz-sim-headless-bridge-nav2— one task = one branch = one PR (doc 32 §6)
Summary
Compose the per-episode launch graph of doc 10 §3 taking workdir as argument (world.sdf, nav2_params.yaml, bridge.yaml, perturb_params.yaml, episode.yaml), with remappings so Nav2 consumes perturbed topics.
Context / motivation
Single entrypoint the backend starts as a subprocess.
Scope
In scope
headless:=True, no RViz;use_sim_time.
Implementation guidance
launch/episode.launch.pyargs:workdir,headless(default true),use_sim_time(true); RMW from the environment. Reads files insideworkdironly.- Actions:
ExecuteProcess(['gz','sim','-s','-r','--headless-rendering', world.sdf]);ros_gz_bridge parameter_bridgewithconfig_file:=bridge.yaml;ros_gz_sim createfor the TB4 if not part of the world;nav2_bringuplocalization_launch.py+navigation_launch.pywithparams_file:=nav2_params.yamland remappings so Nav2 consumes the perturbed/scanand degraded depth topic and publishes/cmd_vel_nav; RoboProbe nodes withperturb_params.yaml. OnProcessExit(episode_manager) → Shutdown()so the launch ends with the episode.- Environment set by the backend:
ROS_DOMAIN_ID,GZ_PARTITION,ROS_AUTOMATIC_DISCOVERY_RANGE=LOCALHOST,RMW_IMPLEMENTATION. - Standards: respect the layering contracts (doc 16 §2) and conventions in doc 34; no hard-coded tunables — thresholds/defaults come from typed settings (doc 27); no magic numbers (ruff
PLR2004); public APIs typed (mypy strict) and documented.
Acceptance criteria
- Manual single episode in the container produces
trace.parquet+episode_done.json(evidence log). - The launch ends by itself after episode_manager exits.
- No file outside
workdiris read (test with a temp workdir copy). - Tests listed below added and green in CI; coverage of new code meets the gate in doc 18 §3.
- Docs, config reference and CHANGELOG
Unreleasedupdated where behaviour, keys or interfaces changed. - Definition of Done (doc 32 §3) satisfied.
Tests required
- Launch smoke test (sim marker, nightly).
Dependencies
Blocked by: #193 (T-093b), #194 (T-093c), #195 (T-093d), #196 (T-094a), #197 (T-094b), #198 (T-094c)
Blocks: #200 (T-095)
Parallelization notes
Files / paths owned by this task — avoid editing other paths; shared files (pyproject.toml entry points, cli/main.py, api/routers/__init__.py, router.tsx, docker/compose.yaml, ci.yml) are append-only:
ros_ws/src/roboprobe_ros/launch/episode.launch.py
Integration point of the ROS package.
Definition of Done
Per doc 32 §3 and AGENTS.md §5: lint, format, mypy strict and import-linter green; tests added and passing; docs updated; PR template completed with Closes #<this issue>; Conventional Commit messages referencing T-094d (doc 16 §6); commits authored only by the repository owner identity (AGENTS.md §4); CI green; reviewer checklist (doc 32 §5.1) satisfied.
References
Design docs: doc 10 §3 · doc 10 §5
Requirements: FR-SIM-003 (traceability: doc 28)
External:
Metadata
Metadata
Assignees
Labels
Projects
- StatusShow more project fieldsBacklog
Activity
sensor_perturber: lidar Gaussian noise + dropout/scan_raw→/scan#193perception_degrader: illumination-dependent depth point degradation #194cmd_delay: FIFO command latency/cmd_vel_nav→/cmd_vel(Twist/TwistStamped) #195ground_truth_monitor: footprint min-distance (map EDT + analytic pallet), roll/pitch #196episode_recorder: 20 Hz Trace v1 Parquet writer + optional rosbag2 MCAP #197episode_manager: wait lifecycle ACTIVE, initial pose, NavigateToPose, result →episode_done.json#198docker/gazebo/Dockerfile): pinned Jazzy/Harmonic/Nav2, ros_ws build, worker venv, composegazeboprofile #200feat(ros): relay velocity commands on simulation time (T-093d) (#345)
feat(ros): degrade depth point clouds in low light (T-093c) (#343)
fix(ros): start the depth relay on pinned Jazzy (#352)
test(gazebo): verify trace and shutdown in the offline warehouse (#357)