sim_navigation.launch 3.73 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<?xml version="1.0"?>
<!-- -->
<launch>

  <arg name="name"                        default="model_car"/>
  <arg name="circuit"                     default="sample"/>
  <arg name="map_name"                    default="$(arg circuit)005"/>
  <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"/>

  <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_no_tf.yaml"/>
  </include>

  <include file="$(find iri_model_car_rosnav)/launch/include/localization.launch">
    <arg name="local_ekf_yaml_filename"    value="local_ekf_odom_imu"/>
    <arg name="global_loc"                 value="true"/>
    <arg name="global_ekf_yaml_filename"   value="global_ekf_odom_imu_amcl"/>
  </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_opendrive_map.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="sbpl"/>
    <arg name="odom_topic"                  value="/$(arg name)/local_odom_combined"/>
    <arg name="map_path"                    value="$(find iri_adc_circuit_example)/map"/>
    <arg name="map_name"                    value="$(arg map_name)"/>
    <arg name="initial_x"                   value="$(arg car_x)"/>
    <arg name="initial_y"                   value="$(arg car_y)"/>
    <arg name="initial_yaw"                 value="$(arg car_yaw)"/>
    <arg name="output"                      value="$(arg output)" />
    <arg name="launch_prefix"               value="$(arg launch_prefix)" />
    <arg name="opendrive_file_path"         default="$(find iri_adc_circuit_example)/data"/>
    <arg name="opendrive_file_name"         default="$(arg circuit)"/>
  </include>

  <include file="$(find iri_model_car_bringup)/launch/teleop_rqt.launch">
    <arg name="name"                       value="$(arg name)"/>
    <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_adc_launch)/rviz/nav.rviz">
  </node>

</launch>