How to set gazebo master uri in roslaunch file?

asked 2016-04-19 15:34:18 -0500

rahul gravatar image

updated 2019-05-21 00:09:59 -0500

I know that there are bunch of parameters we can define for gazebo in ros launch file

For example:

<launch>
  <!-- We resume the logic in empty_world.launch, changing only the name of the world to be launched -->
  <include file="$(find gazebo_ros)/launch/empty_world.launch">
    <arg name="world_name" value="worlds/mud.world"/> <!-- Note: the world_name is with respect to GAZEBO_RESOURCE_PATH environmental variable -->
    <arg name="paused" value="false"/>
    <arg name="use_sim_time" value="true"/>
    <arg name="gui" value="true"/>
    <arg name="headless" value="false"/>
    <arg name="debug" value="false"/>
  </include>
</launch>

On a similar line, is there anyway to define GAZEBO_MASTER_URI in launch file?

Please not that setting GAZEBO_MASTER_URI in shell using export command is not starting gzserver in specified URI.

edit retag flag offensive close merge delete

Comments

I'm surprised that setting GAZEBO_MASTER_URI on the shell is not working. Are you exporting the variable? Can you provide the command you ran?

azeey gravatar imageazeey ( 2019-05-30 10:42:49 -0500 )edit