-
Notifications
You must be signed in to change notification settings - Fork 6
/
control.launch
45 lines (37 loc) · 1.85 KB
/
control.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
<?xml version="1.0"?>
<launch>
<arg name="simulation" default="true"/>
<arg name="robot_namespace" default=""/>
<arg name="enable_ekf" default="true"/>
<arg name="robot_description" default="robot_description"/>
<arg name="description_file" default="$(find smb_description)/urdf/smb_standalone.urdf.xacro"/>
<!-- Load robot description -->
<!-- Load robot description for gazebo -->
<include file="$(find smb_description)/launch/load.launch">
<arg name="simulation" value="$(arg simulation)"/>
<arg name="description_name" value="$(arg robot_description)"/>
<arg name="description_file" value="$(arg description_file)"/>
<arg name="wheel_joint_type" value="continuous"/>
<arg name="robot_namespace" value="$(arg robot_namespace)"/>
</include>
<!-- Load controller configuration -->
<rosparam command="load" file="$(find smb_control)/config/control.yaml" />
<!-- Spawn controllers -->
<node name="base_controller_spawner" pkg="controller_manager" type="spawner"
args="smb_joint_publisher smb_velocity_controller"/>
<node name="smb_robot_state_publisher" pkg="robot_state_publisher" type="robot_state_publisher" output="screen">
<param name="publish_frequency" value="50"/>
<param name="use_tf_static" value="true"/>
<remap from="robot_description" to="$(arg robot_description)"/>
</node>
<node pkg="twist_mux" type="twist_mux" name="twist_mux">
<rosparam command="load" file="$(find smb_control)/config/twist_mux.yaml" />
<remap from="cmd_vel_out" to="smb_velocity_controller/cmd_vel"/>
</node>
<!-- Start EKF for localization -->
<group if="$(arg enable_ekf)" >
<node pkg="robot_localization" type="ekf_localization_node" name="ekf_localization">
<rosparam command="load" file="$(find smb_control)/config/localization.yaml" />
</node>
</group>
</launch>