Two robots in Gazebo, each with separate ROS
Is it possible to simulate two robots in the same environment, where each robot runs its own ROS?
Asked by zdenekm on 2015-08-12 06:23:18 UTC
Answers
Gazebo can simulate as many robots as you want. The issue you are facing is associated with ROS. You'll get better help on this topic at answers.ros.org.
Asked by nkoenig on 2016-02-17 12:54:16 UTC
Comments
I think that his question relates to the configuration of the gazebo_ros plugins... I'm guessing the question being asked is how to set the ROS_MASTER_URI parameter (or other command line args) for a running gazebo plugin. It might be an easier strategy for the two robots connect to the roscore instance that gazebo_ros is running on.
Asked by SL Remy on 2016-02-22 12:24:38 UTC
You are right. I should formulate my question more precisely... @nkoenig Is it possible to set ROS_MASTER_URI for a gazebo plugin?
Asked by ZdenekM on 2016-03-10 07:17:58 UTC
No. You should go to answers.ros.org, or google 'ros multiple robots' or 'ros multimaster'.
Asked by nkoenig on 2016-03-10 10:03:09 UTC
@nkoenig This is definitely question related to Gazebo. I already have working multimaster setup in the lab with two (real) robots. What I want is to simulate such setup. Right now I'm running two instances of Gazebo - each one with one of the robots and different ROS_MASTER_URI. But it would be great to have both robots simulated in one Gazebo instance (so they could collide with each other etc.). Is it clear now? Sorry for not being specific in the original question.
Asked by ZdenekM on 2016-03-11 03:13:48 UTC
Take a look at answers.ros.org: http://answers.ros.org/question/115396/problem-with-multiple-navigation-on-gazebo/
Asked by nkoenig on 2016-03-11 13:50:27 UTC
Comments
Do you mean that each robot has its own ROS_MASTER?
Asked by SL Remy on 2015-08-20 00:09:01 UTC
Yes, exactly.
Asked by zdenekm on 2016-02-17 09:06:08 UTC