forked from UBC-Snowbots/Snowflake
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathload_world_and_robot.launch
28 lines (23 loc) · 1003 Bytes
/
load_world_and_robot.launch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<launch>
<!--
Opens a give world from "sb_gazebo/worlds" and
places a robot with a given name with ".xacro" and ".gazebo" files
in "sb_gazebo/robots" in it at a given x,y and with a given rotation
-->
<arg name="world_name"/>
<arg name="x_start_coordinate"/>
<arg name="y_start_coordinate"/>
<arg name="initial_rotation"/>
<arg name="robot_name"/>
<!-- Start up the world -->
<include file="$(find sb_gazebo)/launch/load_world.launch">
<arg name="world_name" value="$(arg world_name)"/>
</include>
<!-- Load the robot -->
<include file="$(find sb_gazebo)/launch/load_robot.launch">
<arg name="x_start_coordinate" value="$(arg x_start_coordinate)"/>
<arg name="y_start_coordinate" value="$(arg y_start_coordinate)"/>
<arg name="initial_rotation" value="$(arg initial_rotation)"/>
<arg name="robot_name" value="$(arg robot_name)"/>
</include>
</launch>