ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Your first line (the one that works) is valid yaml. The second one isn't (I believe you can't put the value for a key on a different line).

Unfortunately I don't believe you can influence this. There is a way to configure PyYaml such that it uses the condensed version for lists, but I'm not sure that is being used in rostopic / the script that generates the auto-complete suggestions.

Your first line (the one that works) is valid yaml. The second one isn't (I believe you can't put the value for a key on a different line).

Unfortunately I don't believe you can influence this. There is a way to configure PyYaml such that it uses the condensed version for lists, but I'm not sure that is being used in rostopic / the script that generates the auto-complete suggestions.


Edit: note also that geometry_msgs/Twist contains dictionaries, not plain arrays or lists. That is why you see the key-value pairs in the auto-complete suggestion.