Skip to content

Avoid using ros2 daemon with incompatible RMW configuration - #1270

Open
sylvesterkaczmarek wants to merge 1 commit into
ros2:rollingfrom
sylvesterkaczmarek:fix-1009-daemon-rmw-mismatch
Open

Avoid using ros2 daemon with incompatible RMW configuration#1270
sylvesterkaczmarek wants to merge 1 commit into
ros2:rollingfrom
sylvesterkaczmarek:fix-1009-daemon-rmw-mismatch

Conversation

@sylvesterkaczmarek

@sylvesterkaczmarek sylvesterkaczmarek commented Aug 20, 2026

Copy link
Copy Markdown

Summary

Fixes #1009.

Expose the daemon's discovery configuration over XML-RPC and verify it before NodeStrategy uses daemon-backed graph queries.

If the running daemon was started with a different RMW implementation, or its configuration cannot be verified, CLI graph queries warn and fall back to direct discovery instead of silently returning data from the wrong middleware graph.

The configuration currently includes:

  • ROS domain ID
  • RMW implementation identifier

This keeps daemon connectivity checks separate from configuration compatibility and preserves direct discovery as the safe fallback.

Testing

Added focused tests covering:

  • matching daemon configuration
  • mismatched RMW implementation
  • unverifiable daemon configuration
  • NodeStrategy fallback to direct discovery

Full ROS integration testing is left to project CI.

Did you use Generative AI?

Yes. AI was used to assist with tests.

Expose the daemon discovery configuration and verify it before using daemon-backed graph queries. Fall back to direct discovery when the running daemon uses a different or unverifiable configuration.

Signed-off-by: Sylvester Kaczmarek <16242628+sylvesterkaczmarek@users.noreply.github.com>
@mergify

mergify Bot commented Aug 20, 2026

Copy link
Copy Markdown

Tick the box to add this pull request to the merge queue (same as @mergifyio queue).

  • Queue this pull request

@fujitatomoya

Copy link
Copy Markdown
Collaborator

i assume you are using AI agent to create this PR, that is fine. but we have AI guideline: https://discourse.openrobotics.org/t/guidelines-for-ai-assisted-contributions-in-the-ros-project/55903 and please use our PR template to disclose the AI tools.

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.

CLI tools do not check RMW_IMPLEMENTATION

2 participants