Skip to content

Fixed failing ros2 param ... on r2r nodes for Jazzy#120

Merged
m-dahl merged 4 commits intosequenceplanner:set_params_atomicfrom
des256:master
Apr 17, 2025
Merged

Fixed failing ros2 param ... on r2r nodes for Jazzy#120
m-dahl merged 4 commits intosequenceplanner:set_params_atomicfrom
des256:master

Conversation

@des256
Copy link
Contributor

@des256 des256 commented Apr 11, 2025

Jazzy requires an additional /set_parameters_atomically service to be present on the node. If not found, ros2 param ... won't work with a message similar to:

Wait for service timed out waiting for parameter services for node NodeName(name='to_be_replaced', namespace='/to_be_replaced', full_name='/to_be_replaced/to_be_replaced')

I added this service to r2r and now ros2 param ... works again.

@skoudmar
Copy link
Contributor

I think, that the implementation should contain a note or a TODO that the service is not implemented according to specification:

This call will either set all values, or none of the values.

If the request contains multiple parameters, the request will currently set some parameters up to a failing one, (the assignment can fail, e.g., if the parameter does not match the type of a used derived struct).

@des256
Copy link
Contributor Author

des256 commented Apr 14, 2025

Yep. Added a warning message for further implementation.

@m-dahl m-dahl changed the base branch from master to set_params_atomic April 17, 2025 08:12
@m-dahl m-dahl merged commit 9166310 into sequenceplanner:set_params_atomic Apr 17, 2025
7 checks passed
@m-dahl
Copy link
Collaborator

m-dahl commented Apr 17, 2025

Thanks for the fix! I want to change it so it behaves according to the spec before we merge it into main, otherwise we will forget and it will lead to confusion some day. Let's continue here: #121

m-dahl added a commit that referenced this pull request Apr 22, 2025
* Fixed failing `ros2 param ...` on r2r nodes for Jazzy (#120)

Add `/set_parameters_atomically` service to `make_parameter_handler_internal` in `nodes.rs` to fix failing `ros2 param ...` on r2r nodes for Jazzy.

* Atomic behavior for `set_parameters_atomically` (#121).

---------

Co-authored-by: Desmond Germans <desmond@germansmedia.nl>
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.

3 participants