'rostopic pub' command doesn't work as expected. Probably quote-command-line argument issue.
Dear all,
One simple (I think) question regarding rostopic pub command sending message to 2 joints.
I have a robot with 4 wheels and would like to send velocity commands to the 2 front wheel joints (FLJ=Front Left Joint, FRJ=Front Right Joint) using the following command:
rostopic pub -1 /joint_states sensor_msgs/JointState '{header: auto, name: ['FLJ','FLJ'], position: [0,0], velocity: [1,0], effort: [0,0]}'
After running the command at another terminal (having Gazebo with my robot online), I get:
publishing and latching message for 3.0 seconds
but the robot is not moving...Why?
My configuration is : ROS Kinetic Kame UBUNTU 16.04 Gazebo-7
Edit: If I do not quote:
rostopic pub -1 /joint_states sensor_msgs/JointState {header: auto, name: [FLJ,FLJ], position: [0,0], velocity: [1,0], effort: [0,0]}
Result:
rostopic: error: Argument error: while parsing a flow node
expected the node content, but found '<stream end>'
in "<string>", line 1, column 9:
{header:
If I do quote:
rostopic pub -1 /joint_states sensor_msgs/JointState '{header: auto, name: ["FLJ","FLJ"], position: [0,0], velocity: [1,0], effort: [0,0]}'
Result:
publishing and latching message for 3.0 seconds
But no movement...
BTW I have changed the title of the questing reflecting your Answer.
Note: you list
FLJ
twice, while I believe you meant to write:FRJ
.