Ask Your Question
0

how to run multirobot simulation

asked 2017-04-04 15:45:01 -0600

hornacekz gravatar image

Hi guys, I'm new to ROS, I did a couple of tutorials so i understand the basics. I want to make a simulation with 2 robots where one is navigating to the goal position and the other one is following him. I found turtlebot_stage package which seems quite appropriate for the navigation task but i have difficulties adding 2nd robot.

So my questions are: is there a way to run multiple robots with this package and if so how? is there a better option for this task?

Thanks for your help. I appreciate it.

edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted
0

answered 2018-02-16 22:35:54 -0600

Usman Arif gravatar image

updated 2018-02-16 22:37:12 -0600

Hopefully you have found the answer and solved your problem. In case you are still struggling, please do pay attention to the naming of both the robots. Same names would mean that one robot will be dumped by ROS while starting other. Different robot name will allow you to start both of them. Once done the navigation stack should also be started under the same name. You can use ROS namespace feature for this purpose. Last but not the least, in the transformation published for the whole thing you will need to have a single transform something like "map" connecting both the robots to your world. So map should be the root node in tf and both robot's base should be connected to it, tf_veiw can help you visualize this.

edit flag offensive delete link more
0

answered 2017-06-28 04:10:16 -0600

Foo gravatar image

You might follow this link link text for more info

Regards Foo

edit flag offensive delete link more
0

answered 2017-06-28 08:24:22 -0600

alpha gravatar image

write a gazebo plugin, and load the sdf file of the 2nd robot in the plugin.

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

2 followers

Stats

Asked: 2017-04-04 15:45:01 -0600

Seen: 618 times

Last updated: Feb 16 '18