Ask Your Question
3

can multiple instances of gazebo and/or roscore run in parallel

asked 2011-10-03 05:52:23 -0500

seth_g gravatar image

Hi, I have a project I am working on that would be incredibly helpful if I could run multiple instances of gazebo or multiple roscore simultaneously. Multiple gazebos would be ideal but if I could run more than 1 roscore that would work and just pass messages between the cores. Does anyone know if this can be done somehow? I haven't seen any documentation on being able to or not being able to run these simultaneously.

Thanks

edit retag flag offensive close merge delete

Comments

1

use <group ns="your_group_name"> in the launch file to have different instances run in parallel on the same roscore

aswin gravatar image aswin  ( 2013-01-22 14:49:48 -0500 )edit

I tried group namespace thing, but it didn't work for me on Ubuntu 16.04 for ROS Kinetic distribution.

RainMan gravatar image RainMan  ( 2018-03-05 07:21:43 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted
3

answered 2011-10-03 06:01:01 -0500

tfoote gravatar image

roscore defaults to use port 11311. If you use the environment variable ROS_MASTER_URI (documented here ) to change that port the 2nd master won't conflict.

You can also run multiple gazebo instances inside ROS if you launch them in different namespaces. However there may be an issue if you try to run them on the same machine and the instances have to share a GPU. Running them on 2 seperate machines will definitely avoid that.

edit flag offensive delete link more

Comments

Can you expand on the different namespaces idea? I've tried giving a different group namespace for each gazebo instance as well as trying to remap the node name with no success. Is the gazebo/gazebo (says this next to my node name) namespace what needs to change?
seth_g gravatar image seth_g  ( 2011-10-04 02:38:11 -0500 )edit
@tfoote : On a lighter vein, why was this port was chosen as the default port ? 11311 ? :-)
Arkapravo gravatar image Arkapravo  ( 2011-10-09 09:14:12 -0500 )edit
0

answered 2018-05-25 08:51:23 -0500

alidemir gravatar image
edit flag offensive delete link more

Comments

Can you please update your answer with a minimum working example so that the question is self-contained? Otherwise, if your repo disappears then this answer becomes useless.

jayess gravatar image jayess  ( 2018-05-26 01:21:43 -0500 )edit

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: 2011-10-03 05:52:23 -0500

Seen: 3,680 times

Last updated: May 25 '18