Grammar of "data:\ true" and "{data: True}"

Hello, I’m on Unit 4 Service calls for ROS2 Basics in 5 Days…

And I’m executing the command
ros2 service call /moving_right std_srvs/srv/SetBool data:\ true

I’m just curious because normally we use:
ros2 service call /moving_right std_srvs/srv/SetBool "{data: True}”

How is "data:\ true" equivalent to the yaml format?

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.