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

rostopic /teleop/cmd_vel vs /cmd_vel

asked 2020-12-12 12:20:48 -0500

Nbb gravatar image

why is /teleop/cmd_vel not return the same type as /cmd_vel ?

cmd_vel

user:~$ rostopic info cmd_vel
Type: geometry_msgs/Twist

Publishers: None

Subscribers:
 * /cmd_vel_mux (http://2_simulation:38303/)
 * /gazebo (http://2_simulation:34189/)

/teleop/cmd_vel

user:~$ rostopic info /teleop/cmd_vel
Type: unknown type

Publishers: None

Subscribers:
 * /cmd_vel_mux (http://2_simulation:38303/
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2020-12-12 20:20:29 -0500

jayess gravatar image

The message type that's carried by a topic depends on the publisher. cmd_vel isn't a special topic but is rather a convention used by many ROS developers. And remember, a topic can be subscribed to without anything publishing to it which is probably why you get Type: unknown type for the /teleop/cmd_vel topic.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2020-12-12 12:20:48 -0500

Seen: 208 times

Last updated: Dec 12 '20