ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
/cmd_vel is a subscriber itself so you have to publish to it.
provided that you setup everything right, (rosserial), and when you do a rostopic list, you see /cmd_vel in the list of topics, you type
rostopic pub /cmd_vel geometry_msgs/Twist
and hit tab, twice it will show:
rostopic pub /cmd_vel geometry_msgs/Twist "linear:
x: 0.0
y: 0.0
z: 0.0
angular:
x: 0.0
y: 0.0
z: 0.0"
Modify the linear speed, twist.linear.x to be 0.5 for example, and twist.angular.z for the angular speed, for example 0.4 and it will make the robot move in a circle, with speed of 0.5m/s.
Hope this helps, -C.A.