ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Thanks! I managed to get inside it and now I'm trying to publish manually info into cmd_vel. I checked with rosmsg show what type it is and I get it's a vector:

alonsoj1@aut-228:~/ros_workspace$ rosmsg show geometry_msgs/Twist
geometry_msgs/Vector3 linear
  float64 x
  float64 y
  float64 z
geometry_msgs/Vector3 angular
  float64 x
  float64 y
  float64 z

I try the following ways:

alonsoj1@aut-228:~/ros_workspace$ rostopic pub /cmd_vel geometry_msgs/Twist -- 2,3,1 0,0,0
ERROR: No key named [2,3,1]
Args are: [linear.x linear.y linear.z angular.x angular.y angular.z]

Then like this:

  • 2.0 3.0 1.0 0.0 0.0 0.0
  • 2 3 1 0 0 0
  • [2 3 1] [0 0 0]

But none of them work, any ideas?

Thanks!