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

A small confusion about topics

asked 2021-02-03 16:52:07 -0500

Momit gravatar image

Hello I am new to ros, I See people always use cmd_vel topic for geometry msgs. My confusion is, what is the reason of always using cmd_vel? Can't we use other topic name? Or there are some existing topics like msg, such as ros have existing msg type like Twist, odom, pose etc. If ros 2 also have some existing topics, what are they? how to find them? (Sorry for bad English).

edit retag flag offensive close merge delete

Comments

I didn't get the second part of your question. ('or there are .....')

skpro19 gravatar image skpro19  ( 2021-02-04 15:08:14 -0500 )edit

Thanks everyone 😊

Momit gravatar image Momit  ( 2021-02-06 14:22:47 -0500 )edit

2 Answers

Sort by » oldest newest most voted
1

answered 2021-02-04 15:07:16 -0500

First of all, there's a small correction. People usually used cmd_vel topic for [geometry_msgs/Twist] messages.

We can use any topic name we want. Using the name cmd_vel is sort of a ROS convention.

edit flag offensive delete link more
1

answered 2021-02-04 09:20:12 -0500

crnewton gravatar image

controllers subscribe to /cmd_vel to read their velocity command. you can use whatever topic name you want, but the controller is most likely not subscribed to the topicname you came up with. You can view all the topics with rostopic list as described in the documentation.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2021-02-03 16:52:07 -0500

Seen: 119 times

Last updated: Feb 06 '21