My turtlebot3 burger do not move when I publish to /cmd_vel

asked 2019-10-23 09:31:27 -0500

oovidiustr gravatar image


I have a turtlebot3 burger and I want to play with it. I established ssh connection with robot successfully and I can see /cmd_vel topic when I run rostopic list command.

However, when I try to publish in /cmd_vel the robot do not do anything. I tried to run roslaunch turtlebot3_teleop turtlebot3_teleop_key.launch to control the robot from keyboard but still not working.

This is my .bashrc file:

export TURTLEBOT3_MODEL=burger

source /opt/ros/kinetic/setup.bash
source /home/ovidiu/catkin_ws/devel/setup.bash
source /home/ovidiu/perception_catikin_ws/devel/setup.bash

I use Kinetic ROS on Ubuntu 16.04 LTS.

I don't receive any error in console, just the robot do not move.

Am I missing something?

edit retag flag offensive close merge delete


Whats the output of rostopic list? do you see a /cmd_vel topic that it might read?

stevemacenski gravatar image stevemacenski  ( 2019-10-23 11:59:55 -0500 )edit

Yes. There are all topics that i can see:

oovidiustr gravatar image oovidiustr  ( 2019-10-24 02:32:21 -0500 )edit

What's cmd_vel_rc100? That seems suspiciously what you might need to be publishing to. Check rostopic info on both of the cmd_vel_* topics and make sure that your base is even subscribing to them.

stevemacenski gravatar image stevemacenski  ( 2019-10-24 13:19:59 -0500 )edit

Ok.. Here are the infos about topics:

~$ rostopic info /cmd_vel
Type: geometry_msgs/Twist

Publishers: None

 * /turtlebot3_core (

~$ rostopic info /cmd_vel_rc100 
Type: geometry_msgs/Twist

 * /turtlebot3_core (

Subscribers: None
oovidiustr gravatar image oovidiustr  ( 2019-10-25 02:17:38 -0500 )edit

I also tried to reinstall ROS but i still have the same problem.

oovidiustr gravatar image oovidiustr  ( 2019-10-25 04:22:35 -0500 )edit

If you look, both topics have no connections. One node is subscribing or publishing, but there's not both nodes in either topic. You need to have someone publishing to the topic the base is subscribing to. Also make sure if you just rostopic pub something that the base actually responds so that things are setup

stevemacenski gravatar image stevemacenski  ( 2019-10-25 11:06:14 -0500 )edit

I tried rostopic pub /cmd_vel [...] and in other console rostopic echo /cmd_vel:

oovidiustr gravatar image oovidiustr  ( 2019-10-28 03:23:55 -0500 )edit

console_1 output:

~$ rostopic pub /cmd_vel geometry_msgs/Twist "linear:
  x: 0.0
  y: 0.0
  z: 0.0
  x: 0.0
  y: 0.0
  z: 0.5" 
publishing and latching message. Press ctrl-C to terminate
oovidiustr gravatar image oovidiustr  ( 2019-10-28 03:24:12 -0500 )edit