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

5
  <arg name="name"                        default="adc_car"/>
Fernando Herrero's avatar
Fernando Herrero committed
6
7
8
  <arg name="output"                      default="screen"/>
  <arg name="launch_prefix"               default=""/>

9
10


Fernando Herrero's avatar
Fernando Herrero committed
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
  <arg name="world"                       default="empty"/>
  <arg name="gazebo_gui"                  default="True"/>
  <arg name="car_x"                       default="0.0"/>
  <arg name="car_y"                       default="0.0"/>
  <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)"/>
26
27
28
29
30
31
    <arg name="sim_config_path"            value="$(find iri_adc_launch)/config/$(arg name)"/>
    <arg name="car_controller_config_file" value="$(find iri_adc_launch)/config/$(arg name)_controller_config.yaml"/>
    <arg name="control_config_file"        value="$(find iri_adc_launch)/config/$(arg name)_control_params.yaml"/>
    <arg name="odometry_config_file"       value="$(find iri_adc_launch)/config/$(arg name)_odometry_params_no_tf.yaml"/>
    <arg name="cmd_vel_mux_config_file"    value="$(find iri_adc_launch)/config/$(arg name)_mux.yaml"/>
    <arg name="standalone"                 value="True"/>
Fernando Herrero's avatar
Fernando Herrero committed
32
33
34
  </include>

  <include file="$(find iri_model_car_rosnav)/launch/include/localization.launch">
35
36
37
38
    <arg name="name" value="$(arg name)"/>
    <arg name="local_ekf_yaml_file"  default="$(find iri_adc_launch)/config/$(arg name)_local_ekf.yaml"/>
    <arg name="global_ekf_yaml_file" default="$(find iri_adc_launch)/config/$(arg name)_global_ekf.yaml"/>
    <arg name="global_loc" default="false"/>
Fernando Herrero's avatar
Fernando Herrero committed
39
40
  </include>

41
42
<!--  <node pkg="tf2_ros" type="static_transform_publisher" name="static_tf_map_odom"
        args="0 0 0 0 0 0 map $(arg name)/odom"/>-->
Fernando Herrero's avatar
Fernando Herrero committed
43

Fernando Herrero's avatar
Fernando Herrero committed
44
45
  <include file="$(find iri_teleop_launch)/launch/rqt_teleop.launch">
    <arg name="ns"               value="$(arg name)"/>
46
    <arg name="twist_topic"      value="/$(arg name)/teleop/cmd_vel"/>
Fernando Herrero's avatar
Fernando Herrero committed
47
48
49
    <arg name="config_file"      value="$(find iri_teleop_launch)/config/rqt_teleop.yaml" />
    <arg name="output"           value="$(arg output)"/>
    <arg name="launch_prefix"    value="$(arg launch_prefix)"/>
Fernando Herrero's avatar
Fernando Herrero committed
50
51
52
53
54
  </include>
  
  <node name="rviz"
        pkg="rviz"
        type="rviz"
55
        args="-d $(find iri_adc_launch)/rviz/localization_local.rviz">
Fernando Herrero's avatar
Fernando Herrero committed
56
57
58
  </node>

</launch>