sim_mapping.launch 2.66 KB
Newer Older
Fernando Herrero's avatar
Fernando Herrero committed
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?xml version="1.0"?>
<!-- -->
<launch>

  <arg name="name"                        default="model_car"/>
  <arg name="circuit"                     default="sample"/>
  <arg name="output"                      default="screen"/>
  <arg name="launch_prefix"               default=""/>
  <arg name="world"                       default="empty"/>
  <arg name="gazebo_gui"                  default="True"/>
  <arg name="car_x"                       default="0.0"/>
  <arg name="car_y"                       default="-0.22"/>
  <arg name="car_yaw"                     default="0.0"/>
  <arg name="resolution"                 default="0.05"/>

  <include file="$(find iri_model_car_gazebo)/launch/sim.launch">
    <arg name="name"                       value="$(arg name)"/>
    <arg name="output"                     value="$(arg output)"/>
    <arg name="launch_prefix"              value="$(arg launch_prefix)"/>
    <arg name="world"                      value="$(arg world)"/>
    <arg name="gazebo_gui"                 value="$(arg gazebo_gui)"/>
    <arg name="car_x"                      value="$(arg car_x)"/>
    <arg name="car_y"                      value="$(arg car_y)"/>
    <arg name="car_yaw"                    value="$(arg car_yaw)"/>
    <arg name="sim_config_path"            value="$(find iri_model_car_gazebo)/config"/>
    <arg name="car_controller_config_file" value="$(find iri_model_car_controller)/config/control.yaml"/>
    <arg name="control_config_file"        value="$(find iri_model_car_control)/config/params.yaml"/>
    <arg name="odometry_config_file"       value="$(find iri_model_car_odometry)/config/params.yaml"/>
  </include>

  <include file="$(find iri_adc_circuit_example)/launch/spawn.launch">
    <arg name="name" value="$(arg circuit)"/>
  </include>

  <include file="$(find iri_model_car_rosnav)/launch/nav_mapping.launch">
    <arg name="move_base_params"        value="move_base_params.yaml"/>
    <arg name="costmap_common_params"   value="common_params.yaml"/>
    <arg name="costmap_local_params"    value="local_params.yaml"/>
    <arg name="costmap_global_params"   value="global_params.yaml"/>
    <arg name="local_planner"           value="ackermann"/>
    <arg name="global_planner"          value="global_planner"/>
    <arg name="odom_topic"              value="/$(arg name)/local_odom_combined"/>
    <arg name="resolution"              value="$(arg resolution)"/>
    <arg name="output"                  value="$(arg output)" />
    <arg name="launch_prefix"           value="$(arg launch_prefix)" />
  </include>

  <node name="rviz"
        pkg="rviz"
        type="rviz"
        args="-d $(find iri_model_car_rosnav)/rviz/model_car_gmapping.rviz">
  </node>

</launch>