[Documentation] [TitleIndex] [WordIndex

(!) Please ask about problems and questions regarding this tutorial on answers.ros.org. Don't forget to include in your question the link to this page, the versions of your OS & ROS, and also add appropriate tags.

Publishing a Topic

Description: Publishing a Topic

Tutorial Level: BEGINNER

Next Tutorial: Applications

Publishing cmd_vel

Figure shows publishing data to cmd_vel topic. Firstly connect to ROS. Then, create a publisher with parameter topic name and message type. Then, send data. In this example cmd_vel value is sent. This data takes linear and angular velocities in x, y, z directions.

pub_cmd_vel.jpg


2019-04-20 12:39