Skip to content

Implement rcl_interfaces::srv::ListParameters service#64

Merged
m-dahl merged 1 commit intosequenceplanner:masterfrom
wentasah:list-parameters
Sep 7, 2023
Merged

Implement rcl_interfaces::srv::ListParameters service#64
m-dahl merged 1 commit intosequenceplanner:masterfrom
wentasah:list-parameters

Conversation

@wentasah
Copy link
Contributor

@wentasah wentasah commented Sep 4, 2023

With this, one can list node parameters by ros2 param list. It also allows modifying the parameters with rig_reconfigure 1. Without this change, none of these was possible.

The functionality should match the corresponding code from rclcpp 2.

Note that ros2 param list --param-type and ros2 param describe still doesn't work, because it needs rcl_interfaces::srv::DescribeParameters to be implemented.

With this, one can list node parameters by `ros2 param list`. It also
allows modifying the parameters with rig_reconfigure [1]. Without this
change, none of these was possible.

The functionality should match the corresponding code from rclcpp [2].

Note that `ros2 param list --param-type` and `ros2 param describe`
still doesn't work, because it needs
`rcl_interfaces::srv::DescribeParameters` to be implemented.

[1]: https://github.com/teamspatzenhirn/rig_reconfigure
[2]: https://github.com/ros2/rclcpp/blob/689e510cf0d58257752127750b6460f1f66872c5/rclcpp/src/rclcpp/node_interfaces/node_parameters.cpp#L922-L964
@m-dahl
Copy link
Collaborator

m-dahl commented Sep 7, 2023

Looks good! Thank you for the contribution. Do you want me to make a release which includes this, or are you planning on doing more work wrt parameters soon? If so we can wait a bit with a release.

@m-dahl m-dahl merged commit 70d5b1b into sequenceplanner:master Sep 7, 2023
@wentasah
Copy link
Contributor Author

wentasah commented Sep 7, 2023

Hi, I don't need a release immediately. I'm thinking about implementing a derive macro for parameter structures, but I've never implemented derive macros, so I'm not sure how much time I'll need (and I'm also busy with other stuff).

If I don't send further PRs in upcomming weeks, feel free to make a release.

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