-
Modify the
/usr/share/gazebo/setup.sh
and replaceexport GAZEBO_MASTER_URI=http://localhost:11345
with
`export GAZEBO_MASTER_URI=${GAZEBO_MASTER_URI:-"http://localhost:11345"}`
-
In the a new shell, set a new port for the rosmaster:
export ROS_MASTER_URI=http://localhost:11315
-
You also need to update a new port for gazebo:
export GAZEBO_MASTER_URI=http://localhost:11355
-
Now, if you launch a new process from this shell, you'll have a complete separate environment from what's already running on your machine.