Ask Your Question

How to run Multiple Turtlebot 2/3 in real world?

asked 2019-09-03 20:29:34 -0500

humzaChoudry gravatar image

updated 2019-09-04 02:18:51 -0500

I have the latest ROS recommended distribution and Ubuntu 18.04.

I have been able to run a single turtlebot 3 with no problem. Now how do I go about running more than one turtlebot using a SINGLE ROS MASTER on my laptop. Wether it is a turtlebot 2 or 3 does not matter. In the real world and not the simulation.

I have read multiple answers on this site but do not understand how to fully implement it.

I know the issue has to do with namespace and tf. How do I go about doing this? I need to distinguish between robot one and robot two. Please explain step by step as I'm new to ROS but I have done my reading and have a pretty good understanding of most things in ROS.

Once implemented I will post all my results to help out everyone else.

edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted

answered 2019-09-05 00:21:32 -0500

Pallav gravatar image

updated 2019-09-24 06:57:33 -0500

You can check this video by "The Construct". This should solve your problem. Link:

I had also implemented the same. If you have prior experience with namespaces and launch files then check (Here)

edit flag offensive delete link more

answered 2019-09-04 02:17:28 -0500

duck-development gravatar image

If every turtelbot has it own ros master everything is OK. Then every separate robot is an own unit.

edit flag offensive delete link more


Sorry, I forgot to mention that I want to run using a single ros master on my computer. The question has been updated. Thank you though.

humzaChoudry gravatar image humzaChoudry  ( 2019-09-04 02:19:42 -0500 )edit

Look here there is you setup

duck-development gravatar image duck-development  ( 2019-09-04 02:20:51 -0500 )edit

answered 2019-09-04 06:28:21 -0500

Choco93 gravatar image

You can add <param name="tf_prefix" value="robot_1"/> for adding prefix to your urdf for each of the robots. Similarly you can group the launch files for both of robots in different namespaces. An example can be found here.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2019-09-03 20:29:34 -0500

Seen: 296 times

Last updated: Sep 24 '19