Robotics StackExchange | Archived questions

SDF file as a world in roslaunch

I have a sdf file with all models created in it and I want the turtlebot to be automated so as to do that I need to run it as roslaunch and so I am unable to launch that sdf file as a world any pointers to tutorials is highly appreciated

Asked by ranam on 2014-06-29 21:11:01 UTC

Comments

Answers

You can do something like:

<launch>
  <include file="$(find gazebo_ros)/launch/empty_world.launch">
    <arg name="world_name" value="$(find your_gazebo_package)/worlds/your_world.world"/>
  </include>
</launch>

Asked by ffurrer on 2014-06-30 02:04:51 UTC

Comments

where should i add these lines

Asked by ranam on 2014-06-30 08:10:03 UTC

@ranam You should embed them in your launch file where you load your_world.

Asked by ffurrer on 2014-07-02 03:25:25 UTC