ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Try this:
rostopic pub /array_test playground/Arrays "{name:['Foo', 'Bar'], value:[1.1, 2.2]}"
2 | No.2 Revision |
Try this:
rostopic pub /array_test playground/Arrays "{name:['Foo', 'Bar'], value:[1.1, 2.2]}"
EDIT - the inner quotes don't seem to be required, even with spaces in the string, so this also works:
rostopic pub /array_test playground/Arrays "{name:[Some words, More words], value:[1.1, 2.2]}"