Closed EwingKang closed 2 weeks ago
This might be related to: https://github.com/ros2/rclcpp/issues/2512
@EwingKang thanks for posting issue. a couple of things i want to confirm.
Call the DescribeParameters service returns fine:
it looks like you are calling GetParameters
service, is this typo?
ros2 service call /my_node/get_parameters rcl_interfaces/srv/GetParameters "{names: [alpha, beta]}"
where is this beta
defined? is this supposed to be lamda
?
can you check the issue description? i just want to be sure the issue description.
@fujitatomoya I'm terribly embarrassed by the mistake! I fixed the description. Thanks for catching the error! It is exactly like what you imagine. Things were lost during copy and paste. Please let me know if there's any confusion, thanks!
@EwingKang thanks for checking this.
as you mentioned, this is similar with https://github.com/ros2/rclcpp/issues/2512 which explains specifically on GetParameterTypes
but the point is inconsistent behavior against documentation.
Here it complains about GetParameter
, the behavior also does not match with https://docs.ros2.org/galactic/api/rcl_interfaces/srv/GetParameterTypes.html.
Note: I think this issue can move to rclcpp
repository since the service server is implemented in rclcpp
that responds the service request via ros2cli.
Thank you for the report! Closing as a duplicate of https://github.com/ros2/rclcpp/issues/2512 🧇
Bug report
Required Info:
Empty/ broken GetParameters service response if any of the parameter is declared but not defined.
Steps to reproduce issue
Call the
GetParameters
service returns fine:However, if any one of the requested parameter has no default parameter, the entire service call returns broken entry
Expected behavior
For parameters with default value, return normally; for parameters without default value, some sort of flag to mark the situation
Actual behavior
As described above
Additional information
I believe this is related to https://github.com/ros-visualization/rqt_reconfigure/issues/142