[ROS2 eloquent] Print ParameterValue as string

asked 2020-04-08 00:35:52 -0500

Andreas Ziegler gravatar image

I'm working with ROS2 parameters and looked at this example (https://github.com/ros2/demos/blob/ma...). Next to the new_parameter.name I would also like to print new_parameter.value as a string. As ParameterValuecan represent different data types (https://github.com/ros2/rcl_interface...) this doesn't seem to be so straight forward. I'm wondering if there is any helper function to get the value as a string?

edit retag flag offensive close merge delete