|
1 | 1 | <?xml version="1.0"?>
|
2 | 2 | <robot xmlns:xacro="http://www.ros.org/wiki/xacro">
|
3 | 3 |
|
4 |
| - <xacro:macro name="crane_x7_gazebo_ros2_control_settings" |
5 |
| - params="name |
6 |
| - name_joint_1 |
7 |
| - name_joint_2 |
8 |
| - name_joint_3 |
9 |
| - name_joint_4 |
10 |
| - name_joint_5 |
11 |
| - name_joint_6 |
12 |
| - name_joint_7 |
13 |
| - name_joint_gripper_finger_a |
14 |
| - name_joint_gripper_finger_b |
15 |
| - joint_1_lower_limit |
16 |
| - joint_1_upper_limit |
17 |
| - joint_2_lower_limit |
18 |
| - joint_2_upper_limit |
19 |
| - joint_3_lower_limit |
20 |
| - joint_3_upper_limit |
21 |
| - joint_4_lower_limit |
22 |
| - joint_4_upper_limit |
23 |
| - joint_5_lower_limit |
24 |
| - joint_5_upper_limit |
25 |
| - joint_6_lower_limit |
26 |
| - joint_6_upper_limit |
27 |
| - joint_7_lower_limit |
28 |
| - joint_7_upper_limit |
29 |
| - joint_hand_lower_limit |
30 |
| - joint_hand_upper_limit |
31 |
| - "> |
| 4 | + <xacro:macro name="crane_x7_gazebo_ros2_control_settings"> |
32 | 5 |
|
33 |
| - <ros2_control name="${name}" type="system"> |
| 6 | + <ros2_control name="crane_x7" type="system"> |
34 | 7 | <hardware>
|
35 | 8 | <plugin>gz_ros2_control/GazeboSimSystem</plugin>
|
36 | 9 | </hardware>
|
37 | 10 |
|
38 |
| - <joint name="${name_joint_1}"> |
| 11 | + <joint name="${NAME_JOINT_1}"> |
39 | 12 | <command_interface name="position">
|
40 |
| - <param name="min">${joint_1_lower_limit}</param> |
41 |
| - <param name="max">${joint_1_upper_limit}</param> |
| 13 | + <param name="min">${JOINT_1_LOWER_LIMIT}</param> |
| 14 | + <param name="max">${JOINT_1_UPPER_LIMIT}</param> |
42 | 15 | </command_interface>
|
43 | 16 | <state_interface name="position"/>
|
44 | 17 | <state_interface name="velocity"/>
|
45 | 18 | <state_interface name="effort"/>
|
46 | 19 | </joint>
|
47 | 20 |
|
48 |
| - <joint name="${name_joint_2}"> |
| 21 | + <joint name="${NAME_JOINT_2}"> |
49 | 22 | <command_interface name="position">
|
50 |
| - <param name="min">${joint_2_lower_limit}</param> |
51 |
| - <param name="max">${joint_2_upper_limit}</param> |
| 23 | + <param name="min">${JOINT_2_LOWER_LIMIT}</param> |
| 24 | + <param name="max">${JOINT_2_UPPER_LIMIT}</param> |
52 | 25 | </command_interface>
|
53 | 26 | <state_interface name="position"/>
|
54 | 27 | <state_interface name="velocity"/>
|
55 | 28 | <state_interface name="effort"/>
|
56 | 29 | </joint>
|
57 | 30 |
|
58 |
| - <joint name="${name_joint_3}"> |
| 31 | + <joint name="${NAME_JOINT_3}"> |
59 | 32 | <command_interface name="position">
|
60 |
| - <param name="min">${joint_3_lower_limit}</param> |
61 |
| - <param name="max">${joint_3_upper_limit}</param> |
| 33 | + <param name="min">${JOINT_3_LOWER_LIMIT}</param> |
| 34 | + <param name="max">${JOINT_3_UPPER_LIMIT}</param> |
62 | 35 | </command_interface>
|
63 | 36 | <state_interface name="position"/>
|
64 | 37 | <state_interface name="velocity"/>
|
65 | 38 | <state_interface name="effort"/>
|
66 | 39 | </joint>
|
67 | 40 |
|
68 |
| - <joint name="${name_joint_4}"> |
| 41 | + <joint name="${NAME_JOINT_4}"> |
69 | 42 | <command_interface name="position">
|
70 |
| - <param name="min">${joint_4_lower_limit}</param> |
71 |
| - <param name="max">${joint_4_upper_limit}</param> |
| 43 | + <param name="min">${JOINT_4_LOWER_LIMIT}</param> |
| 44 | + <param name="max">${JOINT_4_UPPER_LIMIT}</param> |
72 | 45 | </command_interface>
|
73 | 46 | <state_interface name="position"/>
|
74 | 47 | <state_interface name="velocity"/>
|
75 | 48 | <state_interface name="effort"/>
|
76 | 49 | </joint>
|
77 | 50 |
|
78 |
| - <joint name="${name_joint_5}"> |
| 51 | + <joint name="${NAME_JOINT_5}"> |
79 | 52 | <command_interface name="position">
|
80 |
| - <param name="min">${joint_5_lower_limit}</param> |
81 |
| - <param name="max">${joint_5_upper_limit}</param> |
| 53 | + <param name="min">${JOINT_5_LOWER_LIMIT}</param> |
| 54 | + <param name="max">${JOINT_5_UPPER_LIMIT}</param> |
82 | 55 | </command_interface>
|
83 | 56 | <state_interface name="position"/>
|
84 | 57 | <state_interface name="velocity"/>
|
85 | 58 | <state_interface name="effort"/>
|
86 | 59 | </joint>
|
87 | 60 |
|
88 |
| - <joint name="${name_joint_6}"> |
| 61 | + <joint name="${NAME_JOINT_6}"> |
89 | 62 | <command_interface name="position">
|
90 |
| - <param name="min">${joint_6_lower_limit}</param> |
91 |
| - <param name="max">${joint_6_upper_limit}</param> |
| 63 | + <param name="min">${JOINT_6_LOWER_LIMIT}</param> |
| 64 | + <param name="max">${JOINT_6_UPPER_LIMIT}</param> |
92 | 65 | </command_interface>
|
93 | 66 | <state_interface name="position"/>
|
94 | 67 | <state_interface name="velocity"/>
|
95 | 68 | <state_interface name="effort"/>
|
96 | 69 | </joint>
|
97 | 70 |
|
98 |
| - <joint name="${name_joint_7}"> |
| 71 | + <joint name="${NAME_JOINT_7}"> |
99 | 72 | <command_interface name="position">
|
100 |
| - <param name="min">${joint_7_lower_limit}</param> |
101 |
| - <param name="max">${joint_7_upper_limit}</param> |
| 73 | + <param name="min">${JOINT_7_LOWER_LIMIT}</param> |
| 74 | + <param name="max">${JOINT_7_UPPER_LIMIT}</param> |
102 | 75 | </command_interface>
|
103 | 76 | <state_interface name="position"/>
|
104 | 77 | <state_interface name="velocity"/>
|
105 | 78 | <state_interface name="effort"/>
|
106 | 79 | </joint>
|
107 | 80 |
|
108 |
| - <joint name="${name_joint_gripper_finger_a}"> |
| 81 | + <joint name="${NAME_JOINT_GRIPPER_FINGER_A}"> |
109 | 82 | <command_interface name="position">
|
110 |
| - <param name="min">${joint_hand_lower_limit}</param> |
111 |
| - <param name="max">${joint_hand_upper_limit}</param> |
| 83 | + <param name="min">${JOINT_HAND_LOWER_LIMIT}</param> |
| 84 | + <param name="max">${JOINT_HAND_UPPER_LIMIT}</param> |
112 | 85 | </command_interface>
|
113 | 86 | <state_interface name="position"/>
|
114 | 87 | <state_interface name="velocity"/>
|
115 | 88 | <state_interface name="effort"/>
|
116 | 89 | </joint>
|
117 | 90 |
|
118 |
| - <joint name="${name_joint_gripper_finger_b}"> |
119 |
| - <param name="mimic">${name_joint_gripper_finger_a}</param> |
| 91 | + <joint name="${NAME_JOINT_GRIPPER_FINGER_B}"> |
| 92 | + <param name="mimic">${NAME_JOINT_GRIPPER_FINGER_A}</param> |
120 | 93 | <param name="multiplier">1</param>
|
121 | 94 | <state_interface name="position"/>
|
122 | 95 | <state_interface name="velocity"/>
|
|
0 commit comments