rostopic pub /topic_name sensor_msgs/JointState [arguments]
Hi !
I run this command line:
rostopic pub servo sensor_msgs/JointState '{header: {seq:0, stamp: {secs:0, nsecs:0}, frame_id:""}, name:["art1"],position:[150.0], velocity:[0.0], effort:[0.0]}' --once
and i get the following error:
emilio@emilio-N61Vg:~/catkin_ws$ rostopic pub servo sensor_msgs/JointState '{header: {seq:0, stamp: {secs:0, nsecs:0}, frame_id:""}, name:["art1"],position:[150.0], velocity:[0.0], effort:[0.0]}' --once
Usage: rostopic pub /topic type [args...]
rostopic: error: Argument error: while scanning a plain scalar
in "<string>", line 1, column 11:
{header: {seq:0, stamp: {secs:0, nsecs:0}, ...
^
found unexpected ':'
in "<string>", line 1, column 14:
{header: {seq:0, stamp: {secs:0, nsecs:0}, fr ...
^
Please check http://pyyaml.org/wiki/YAMLColonInFlowContext for details.