-
Notifications
You must be signed in to change notification settings - Fork 0
/
ecm.base.ros2_control.xacro
61 lines (50 loc) · 1.94 KB
/
ecm.base.ros2_control.xacro
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
<?xml version="1.0"?>
<robot xmlns:xacro="http://www.ros.org/wiki/xacro">
<!-- ROS2 Control Macro for the ECM base -->
<xacro:macro name="ecm_base_ros2_control" params="prefix">
<!-- Command Joint 0 -->
<joint name="${prefix}_yaw">
<command_interface name="position" />
<state_interface name="position" />
<state_interface name="velocity" />
</joint>
<!-- Command Joint 1 -->
<joint name="${prefix}_pitch">
<command_interface name="position" />
<state_interface name="position" />
<state_interface name="velocity" />
</joint>
<!-- Command Joint 2 -->
<joint name="${prefix}_insertion">
<command_interface name="position" />
<state_interface name="position" />
<state_interface name="velocity" />
</joint>
<!-- Command Joint 3 -->
<joint name="${prefix}_roll">
<command_interface name="position" />
<state_interface name="position" />
<state_interface name="velocity" />
</joint>
<!-- Mimic Joint 0: Command Joint 1 -->
<joint name="${prefix}_pitch_bottom">
<state_interface name="position" />
<state_interface name="velocity" />
</joint>
<!-- Mimic Joint 1: Command Joint 1 -->
<joint name="${prefix}_pitch_end">
<state_interface name="position" />
<state_interface name="velocity" />
</joint>
<!-- Mimic Joint 2: Command Joint 1 -->
<joint name="${prefix}_pitch_top">
<state_interface name="position" />
<state_interface name="velocity" />
</joint>
<!-- Mimic Joint 3: Command Joint 1 -->
<joint name="${prefix}_pitch_back">
<state_interface name="position" />
<state_interface name="velocity" />
</joint>
</xacro:macro>
</robot>