Skip to content

fix(codegen): hash CancelGoal as action_msgs/srv so rmw_zenoh can match cancel - #354

Open
richardw347 wants to merge 1 commit into
ZettaScaleLabs:mainfrom
richardw347:fix/action-cancel-goal-hash
Open

richardw347 wants to merge 1 commit into
ZettaScaleLabs:mainfrom
richardw347:fix/action-cancel-goal-hash

Conversation

@richardw347

@richardw347 richardw347 commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Codegen treated CancelGoal as a per-action /action/ type and omitted goals_canceling (and the nested UUID) from the type description, so the advertised RIHS was 022cb8eb… instead of ROS 573d8b0a….
  • rmw_zenoh keys the cancel service by that hash, so ROS cancel requests never reached a hiroz server.
  • Also advertise the matching hash on the FFI raw cancel client/server (they previously used an empty type hash).

Test plan

  • cargo test -p hiroz-codegen test_cancel_goal_hash_matches_ros (pins RIHS01_573d8b0a534451d7bc2ac8c5ffde8ac14b8593b7001175d0cd6516dcbeb8689a)
  • Regen/check in-tree generated action hashes if CI expects them
  • ros2 action send_goal + cancel against a hiroz server: cancel query should arrive (companion of the server liveness PR)

…ch cancel

Treating CancelGoal as an action type (and omitting goals_canceling) produced a
RIHS that diverges from ROS, so cancel queries never reached the server.
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