-
Notifications
You must be signed in to change notification settings - Fork 2
/
master.launch
78 lines (48 loc) · 2.46 KB
/
master.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
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
74
75
76
77
78
<!-- pass argument like: roslaunch truck_master master.launch gamepad_rate:=50.0 -->
<launch>
<arg name="visual" default="true"/>
<arg name="sim" default="true"/>
<arg name="rpi" default="false"/>
<arg name="obstacles" default="true" />
<arg name="path_planning" default="true"/>
<arg name="auto_master" default="true"/>
<arg name="hw_api" default="false"/>
<arg name="gamepad" default="true"/>
<arg name="gamepad_rate" default="50.0" />
<arg name="gamepad_type" default="xbox"/>
<arg name="gamepad_input" default="/dev/input/js0"/>
<arg name="gulliview" default="true"/>
<group if="$(arg sim)">
<node name= "sim" pkg= "truck_automatic_ctrl" type="sim.py"/>
</group>
<group unless="$(arg sim)">
<node if="$(arg gulliview)" name= "gulliview" pkg= "gulliview_server" type="gulliview"/>
<group if="$(arg hw_api)">
<node name="cmd_node" pkg="truck_hw_api" type="cmd_node.py" />
<node name="trailersensor" pkg="truck_hw_api" type="trailersensor.py"/>
</group>
<node name="master" pkg="truck_master" type="master.py" />
<group if="$(arg gamepad)">
<node name="joy_node" pkg="joy" type="joy_node" >
<param name="autorepeat_rate" type="double" value="$(arg gamepad_rate)" />
<param name="coalesce_rate" type="double" value="$(eval 1.0 / arg('gamepad_rate'))" />
<param name="dev" type="string" value="$(arg gamepad_input)"/>
</node>
<node name="gamepad" pkg="truck_manual_ctrl" type="gamepad.py">
<param name="rate" type="double" value="$(arg gamepad_rate)" />
<param name="type" type="string" value="$(arg gamepad_type)" />
</node>
</group>
</group>
<group if="$(arg visual)" >
<node name= "visualization" pkg= "truck_visualization" type="visualization.py"/>
<node name="rviz" pkg="rviz" type="rviz" args="-d $(find truck_visualization)/config.rviz" />
</group>
<node if="$(arg path_planning)" name="path_planning" pkg= "path_planning" type="path_planning_node.py">
<param name="rpi" type="boolean" value="$(arg rpi)"/>
</node>
<node if="$(arg auto_master)" name= "auto_master" pkg= "truck_automatic_ctrl" type="auto_master.py">
<param name="sim" type="boolean" value="$(arg sim)"/>
</node>
<node if="$(arg obstacles)" name="obstacle_node" pkg="truck_map" type="obstacle_node.py"/>
</launch>