What must I do to use my code on a turtlebot?

asked 2014-01-14 23:34:18 -0500

MAKL gravatar image

updated 2014-01-24 02:07:58 -0500


I want to write some code for my turtlebots and I am an absolute beginner I did some of the tutorials but I haven't found anything (or my English is not good enough), that describes what I need to do if I have got an own code? What do I need to do if I have a my code, what is the next step? Are there any tutorials for that I haven't seen yet?

Thanks for your help ;-)


Hello again,

so now I finished all the tutorials and I want to start writing my own code for the turtlebot. First thing I want do is to give it a value for the forward speed with a certain time, before I was going to start coding. I tried this:


In a new terminal ssh turtlebo@tb1 roslaunch turtlebot_bringup minimal.launch

Neither on my Laptop nor on the turtlebot this was working, the turtlebot wasn't moving at all

rostopic pub /mobile_base/commands/velocity geometry_msgs/Twist -r -- '[2.0, 0.0, 0.0]' '[0.0, 0.0, 2.0]

Where is my mistake, what did I do wrong?


'[x, 0.0, 0.0]' '[0.0, 0.0, z]' I did solve it, I do not know why, but it works if x < 1.7

Does anybody know why?

edit retag flag offensive close merge delete


What tutorials have you used?

Tim Sweet gravatar image Tim Sweet  ( 2014-01-15 08:31:10 -0500 )edit

Well I did the installation, follower, mapping and so on tutorials. And then I wanted to use my own code for those things, but I did not see andy tutorials, that explain how to do it or at least I haven't seen any

MAKL gravatar image MAKL  ( 2014-01-15 23:14:24 -0500 )edit

Ok I might have found something, I am doing the catkin tutorial, I guess that how I can use my own codes can't I?

MAKL gravatar image MAKL  ( 2014-01-17 01:30:28 -0500 )edit

I suggest you to learn how to program in ROS. Then you would get to know how to control turtlebot with your own code.

jihoonl gravatar image jihoonl  ( 2014-01-19 11:44:30 -0500 )edit

Thank you, that was the problem I did not know how to program in ROS. Luckily I did find it ^^

MAKL gravatar image MAKL  ( 2014-01-20 20:29:43 -0500 )edit

@MAKL did you really solve it? If so you could post your own answer below. Or are you still stuck?

pitosalas gravatar image pitosalas  ( 2018-08-07 15:16:08 -0500 )edit

@pitosalas this question is four years old, you're best off posting a new question. The answer to this question was "work through the catkin tutorial" but that is long since out of date.

Tim Sweet gravatar image Tim Sweet  ( 2018-08-07 20:18:40 -0500 )edit

Duh: I was just trying to close this one with an answer. He had a legit question IMO.

pitosalas gravatar image pitosalas  ( 2018-08-08 09:53:02 -0500 )edit