forked from RIVeR-Lab/tentabot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jackal_bringup.launch
58 lines (49 loc) · 2.32 KB
/
jackal_bringup.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
<launch>
<arg name="jackal_port" default="/dev/jackal" />
<arg name="enable_ekf" default="$(optenv ENABLE_EKF true)"/>
<!--include file="$(find jackal_description)/launch/description.launch" /-->
<include file="$(find tentabot)/launch/others/robot_bringup/jackal/jackal_robosense_description.launch" />
<node pkg="jackal_base" type="jackal_node" name="jackal_node">
<rosparam>
# TODO: Specify these in code rather than here.
require:
publishers:
- status
- feedback
- imu/data_raw
- navsat/nmea_sentence
subscribers:
- cmd_drive
- wifi_connected
</rosparam>
<param name="port" value="$(arg jackal_port)" />
<param name="wireless_interface" value="$(optenv JACKAL_WIRELESS_INTERFACE wlp2s0)" />
</node>
<!-- TODO: Eliminate this by compiling the necessary message definitions into jackal_base. -->
<node pkg="rosserial_python" type="message_info_service.py" name="rosserial_message_info" />
<!-- Translate Sentence messages from the MCU to NavSatFix messages -->
<node pkg="nmea_navsat_driver" type="nmea_topic_driver" name="nmea_topic_driver" ns="navsat" />
<!-- Filter raw gyro data into a usable IMU message -->
<node pkg="imu_filter_madgwick" type="imu_filter_node" name="imu_filter">
<rosparam file="$(eval optenv('JACKAL_MAG_CONFIG', find('jackal_base')+'/config/mag_config_default.yaml'))" />
<rosparam>
gain: 0.1
zeta: 0.001
publish_tf: false
</rosparam>
</node>
<!-- Differential controller and basic localization -->
<include file="$(find jackal_control)/launch/control.launch" />
<!-- Teleoperation via joystick and rviz interactive markers -->
<!--include file="$(find jackal_control)/launch/teleop.launch" /-->
<!-- Diagnostic Aggregator for robot monitor usage -->
<node pkg="diagnostic_aggregator" type="aggregator_node" name="diagnostic_aggregator">
<rosparam command="load" file="$(find jackal_base)/config/diagnostic_analyzers.yaml" />
</node>
<!-- Add Diagnostic Analyzers for ekf localization if enabled -->
<group if="$(arg enable_ekf)">
<node pkg="diagnostic_aggregator" type="add_analyzers" name="add_localization_analyzers">
<rosparam command="load" file="$(find jackal_base)/config/localization_analyzers.yaml" />
</node>
</group>
</launch>