adc_navigation.launch 3.51 KB
Newer Older
Fernando Herrero's avatar
Fernando Herrero committed
1
2
3
4
<?xml version="1.0"?>
<!-- -->
<launch>

5
6
7
8
9
10
11
12
13
14
15
16
17
  <arg name="name"                    default="adc_car"/>
  <arg name="output"                  default="screen" />
  <arg name="launch_prefix"           default="" />
  <arg name="move_base_params"        default="move_base_params.yaml"/>
  <arg name="costmap_common_params"   default="common_params.yaml"/>
  <arg name="costmap_local_params"    default="local_params.yaml"/>
  <arg name="costmap_global_params"   default="global_params.yaml"/>
  <arg name="map_path"                default="$(find iri_adc_launch)/maps"/>
  <arg name="map_name"                default="adc_map" />

  <arg name="global_ekf_config_file"  default="$(find iri_adc_launch)/config/adc_common/adc_global_ekf_odom_imu_amcl.yaml"/>


18
  <arg name="opendrive_file_path"         default="$(find iri_adc_launch)/data"/>
19
  <arg name="opendrive_file_name"         default="sample"/>
Fernando Herrero's avatar
Fernando Herrero committed
20
21

  <arg name="car_x"                       default="0.0"/>
22
  <arg name="car_y"                       default="0.0"/>
Fernando Herrero's avatar
Fernando Herrero committed
23
24
  <arg name="car_yaw"                     default="0.0"/>

25
26
  <include file="$(find iri_rosnav)/launch/nav.launch">
    <arg name="ns"                      value="$(arg name)"/>
27
    <arg name="path"                    value="$(find iri_adc_launch)/config/adc_rosnav"/>
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
    <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="map_frame_id"            value="map"/>
    <arg name="odom_frame_id"           value="$(arg name)/odom"/>
    <arg name="base_frame_id"           value="$(arg name)/base_footprint"/>
    <arg name="map_topic"               value="/$(arg name)/map"/>
    <arg name="map_service"             value="/$(arg name)/static_map"/>
    <arg name="odom_topic"              value="/$(arg name)/local_odom_combined"/>
    <arg name="cmd_vel_topic"           value="/$(arg name)/navigation/cmd_vel"/>
    <arg name="scan_topic"              value="/$(arg name)/sensors/scan"/>
    <arg name="use_map"                 value="true"/>
    <arg name="use_map_server"          value="true"/> 
    <arg name="map_path"                value="$(arg map_path)"/>
    <arg name="map_name"                value="$(arg map_name)"/>
    <arg name="use_amcl"                value="true"/>
45
    <arg name="amcl_config"             value="$(find iri_adc_launch)/config/adc_rosnav/amcl_no_tf.yaml"/>
46
47
48
49
50
51
52
53
54
    <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="use_fake_loc"            value="false"/>
    <arg name="use_gmapping"            value="false"/>
    <arg name="local_planner"           value="ackermann"/>
    <arg name="global_planner"          value="iri_opendrive"/>
    <arg name="output"                  value="$(arg output)" />
    <arg name="launch_prefix"           value="$(arg launch_prefix)" />
Fernando Herrero's avatar
Fernando Herrero committed
55
56
57
  </include>

  <include file="$(find iri_model_car_rosnav)/launch/include/localization.launch">
58
    <arg name="name"                    value="$(arg name)"/>
59
    <arg name="global_ekf_config_file"  value="$(arg global_ekf_config_file)"/>
60
    <arg name="set_pose_topic"          value="/$(arg name)/initialpose"/>
Fernando Herrero's avatar
Fernando Herrero committed
61
62
  </include>

63
  <param name="/$(arg name)/move_base/OpendriveGlobalPlanner/opendrive_file" value="$(arg opendrive_file_path)/$(arg opendrive_file_name).xodr" />
Fernando Herrero's avatar
Fernando Herrero committed
64
65

</launch>