Publishing to topic /joint_angles
I was unsure about how to publish a message to joint_angles topic. These are the commands which I have run till now, all in different terminals:
roscore
~/naoqi/naoqi-sdk-1.12.5-linux32/naoqi --verbose --broker-ip 127.0.0.1
roslaunch nao_description nao_state_publisher.launch
roslaunch nao_driver nao_driver_sim.launch
rosrun rviz rviz
rostopic pub -1 /cmd_vel geometry_msgs/Twist '{linear: {x: 1.0, y: 0.0, z: 0.0}, angular: {x: 0.0, y: 0.0, z: 0.0}}'
After I run all these I can see the Nao model walking in the RViz window. What I wanted was to see different joint movements and I figured I'll have to publish a message to /joint_angles. So I tried this:
rostopic pub -1 /joint_angles nao_msgs/JointAnglesWithSpeed -- '' 'HeadYaw' 2.0 0.5 1
But I got an invalid msg_args error. So obviously I dont know how to publish a message. Any help on how to do that?