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

I have not yet had the chance to try this out, but using !!str on the command line should enforce the argument to be treated as a string, as described here:

YAML uses "tags" to override types, where the YAML syntax may be ambiguous. Common tags are: !!str, !!int, !!float, !!seq and !!map. Most likely you will just need to know about !!str. YAML tags are difficult because ! has its own meaning in Bash, so you have to use single-quotes.

e.g.

./bin/testnode _rotations:='!!str 270'
./bin/testnode _rotations:='!!str 90 -90 0'