Ask Your Question

Revision history [back]

Try this:

rostopic pub /array_test playground/Arrays "{name:['Foo', 'Bar'], value:[1.1, 2.2]}"

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]}"