Skip to content

docs(msgs): drop stale system-ROS discovery fallback from message-generation docs - #353

Open
YuanYuYuan wants to merge 1 commit into
mainfrom
fix/344-docs-drop-system-ros-fallback
Open

YuanYuYuan wants to merge 1 commit into
mainfrom
fix/344-docs-drop-system-ros-fallback

Conversation

@YuanYuYuan

Copy link
Copy Markdown
Collaborator

Summary

#344 replaced hiroz-msgs' package discovery (system ROS install probing + bundled-assets fallback) with bundled-assets-only generation, selected by a Distro Cargo feature. The docs describing message generation were not updated and still describe the old, no-longer-existing discovery path.

Before and after

docs described (before this PR) actual behavior since #344
discovery order 1. system ROS (AMENT_PREFIX_PATH/CMAKE_PREFIX_PATH) → 2. /opt/ros/{distro} → 3. bundled assets bundled assets only, keyed off the humble/jazzy/lyrical distro feature
missing package silent fallback to the next source hard build error naming the package and distro
troubleshooting "source ROS 2", check $AMENT_PREFIX_PATH, ros2 pkg prefix check the selected distro feature and whether the package exists under assets/<distro>/

What this PR does

  • docs/getting-started/building.md — replace the 3-tier "Message Package Resolution" search order with the actual bundled-only behavior.
  • docs/user-guide/message-generation.md — rewrite the discovery-workflow sequence diagram and the "Package Discovery Order" flowchart + list to match; both previously showed a system-ROS-first search.
  • docs/reference/troubleshooting.md — replace the "package not found / missing ROS 2 packages" entry (which told readers to source ROS 2 and check AMENT_PREFIX_PATH) with guidance for the actual failure mode: an enabled package feature has no matching package in the selected distro's bundled asset tree.
  • docs/bindings/python-codegen.md — fix one discovery-flow diagram node that still said (AMENT_PREFIX_PATH or bundled).

No code changes.

What fails without this

No test failure — this is a documentation-accuracy fix. Before this PR, following the troubleshooting doc's advice (source ROS 2, check AMENT_PREFIX_PATH) for a hiroz-msgs build failure does nothing, because hiroz-msgs never reads those variables after #344.

Breaking Changes

None.

…eration docs

#344 removed hiroz-msgs' system ROS 2 discovery (AMENT_PREFIX_PATH,
CMAKE_PREFIX_PATH, /opt/ros/*) in favor of bundled-assets-only generation
selected by distro feature, hard-erroring on a missing package instead of
falling back. The docs still described the old 3-tier search order (system
install -> standard paths -> bundled assets) across building.md,
message-generation.md (two mermaid diagrams) and troubleshooting.md, plus
one discovery-flow diagram in python-codegen.md.

Update all of them to describe the actual behavior: bundled-assets-only,
selected by distro feature, missing package is a build error.
@github-actions

Copy link
Copy Markdown
PR Preview Action v1.8.1

QR code for preview link

🚀 View preview at
https://ZettaScaleLabs.github.io/hiroz/pr-preview/pr-353/

Built to branch gh-pages at 2026-09-14 17:34 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant