Skip to content

fix(ros2): slash-normalize available names in entity waiters#801

Merged
maciejmajek merged 1 commit into
RobotecAI:bartok9/fixesfrom
Bartok9:fix/waiters-slash-normalize-available
Jul 22, 2026
Merged

fix(ros2): slash-normalize available names in entity waiters#801
maciejmajek merged 1 commit into
RobotecAI:bartok9/fixesfrom
Bartok9:fix/waiters-slash-normalize-available

Conversation

@Bartok9

@Bartok9 Bartok9 commented Jul 14, 2026

Copy link
Copy Markdown

Purpose

wait_for_ros2_* helpers slash-normalize requested names but compared them to raw discovery names. If the graph lists services/topics/actions without a leading /, waiters treat them as missing and can false-timeout when timeout > 0.

Proposed Changes

  • In get_missing_entities, normalize both requested and available with ensure_slash.
  • Tests for services/topics/actions discovered without slash, and negative timeout ValueError.

Testing

  • tests/communication/ros2/test_waiters.py extensions (monkeypatched DummyConnector; no live ROS).
  • Spec: specs/rai/2026-07-14-2.md.

Duplicate check

No open PR for waiter slash normalization of available entities.

Compare requested and discovered services/topics/actions after ensure_slash
so ROS graph names without a leading slash do not leave waiters missing
and false-timeout. Cover no-slash discovery and negative timeout.
@maciejmajek
maciejmajek changed the base branch from main to bartok9/fixes July 22, 2026 10:04
@maciejmajek
maciejmajek merged commit f672311 into RobotecAI:bartok9/fixes Jul 22, 2026
2 checks passed
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.

2 participants