Skip to content

[T-094d] episode.launch.py: gz sim headless + bridge + Nav2 bringup + RoboProbe nodes from workdir files #199

Open

Description

@CodewithJha

Task T-094d · Milestone M9 — Gazebo backend · Size S · Priority P0 · Epic #9

Implements 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.py args: workdir, headless (default true), use_sim_time (true); RMW from the environment. Reads files inside workdir only.
  • Actions: ExecuteProcess(['gz','sim','-s','-r','--headless-rendering', world.sdf]); ros_gz_bridge parameter_bridge with config_file:=bridge.yaml; ros_gz_sim create for the TB4 if not part of the world; nav2_bringup localization_launch.py + navigation_launch.py with params_file:=nav2_params.yaml and remappings so Nav2 consumes the perturbed /scan and degraded depth topic and publishes /cmd_vel_nav; RoboProbe nodes with perturb_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 workdir is 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 Unreleased updated 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:

Activity

  1. added
    area:rosROS 2 nodes and packages
    priority:P0Critical path / blocks others
    taskChild task of a milestone epic
    on Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:rosROS 2 nodes and packagesmilestone:M9M9 — Gazebo backendpriority:P0Critical path / blocks otherssize:S<= 1 daytaskChild task of a milestone epictype:featureNew functionality

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions