|
5 | 5 | -->
|
6 | 6 |
|
7 | 7 | <xacro:include filename="$(find robotiq_hande_description)/urdf/materials.xacro"/>
|
| 8 | + <xacro:include filename="$(find robotiq_hande_description)/urdf/robotiq_hande_gripper.ros2_control.xacro"/> |
| 9 | + |
| 10 | + <xacro:macro name="robotiq_hande_gripper" params="name prefix parent tty use_fake_hardware"> |
| 11 | + <!-- ros2_control parameters --> |
| 12 | + <xacro:robotiq_hande_ros2_control name="${name}" prefix="${prefix}" tty="${tty}" use_fake_hardware="${use_fake_hardware}"/> |
8 | 13 |
|
9 |
| - <xacro:macro name="robotiq_hande_gripper" params="prefix parent"> |
10 | 14 | <!-- Robotiq Coupler -->
|
11 |
| - <!-- + Height added by the coupler: 13.9mm --> |
12 |
| - <!-- + Reference frame: at the middle (6.95mm) --> |
| 15 | + <!-- + Height added by the coupler (13.9mm) --> |
| 16 | + <!-- + Reference frame at the middle (6.95mm) --> |
13 | 17 |
|
14 |
| - <joint name="robotiq_coupler_joint" type="fixed"> |
| 18 | + <joint name="${prefix}robotiq_hande_coupler_joint" type="fixed"> |
15 | 19 | <origin xyz="0 0 0.00695" rpy="0 0 ${-pi/2.0}"/>
|
16 | 20 | <parent link="${parent}"/>
|
17 |
| - <child link="${prefix}robotiq_coupler"/> |
| 21 | + <child link="${prefix}robotiq_hande_coupler"/> |
18 | 22 | </joint>
|
19 | 23 |
|
20 |
| - <link name="${prefix}robotiq_coupler"> |
| 24 | + <link name="${prefix}robotiq_hande_coupler"> |
21 | 25 | <inertial>
|
22 | 26 | <mass value="0.168"/>
|
23 | 27 | <inertia ixx="6.17674E-05" ixy="0.0" ixz="0.0" iyy="6.17674E-05" iyz="0.0" izz="1.18125E-04"/>
|
|
39 | 43 |
|
40 | 44 | <joint name="${prefix}robotiq_hande_base_joint" type="fixed">
|
41 | 45 | <origin rpy="0 0 0" xyz="0 0 0.055"/>
|
42 |
| - <parent link="${prefix}robotiq_coupler"/> |
43 |
| - <child link="${prefix}hande_link"/> |
| 46 | + <parent link="${prefix}robotiq_hande_coupler"/> |
| 47 | + <child link="${prefix}robotiq_hande_link"/> |
44 | 48 | </joint>
|
45 | 49 |
|
46 |
| - <link name="${prefix}hande_link"> |
| 50 | + <link name="${prefix}robotiq_hande_link"> |
47 | 51 | <inertial>
|
48 | 52 | <mass value="0.86387"/>
|
49 | 53 | <inertia ixx="0.001" ixy="0.0" ixz="0.0" iyy="0.001" iyz="0.0" izz="0.0006"/>
|
|
64 | 68 | </visual>
|
65 | 69 | </link>
|
66 | 70 |
|
67 |
| - <joint name="${prefix}hande_left_finger_joint" type="prismatic"> |
| 71 | + <joint name="${prefix}robotiq_hande_left_finger_joint" type="prismatic"> |
68 | 72 | <origin rpy="0 0 0" xyz="0 -0.025 0.0345"/>
|
69 |
| - <parent link="${prefix}hande_link"/> |
70 |
| - <child link="${prefix}hande_left_finger"/> |
| 73 | + <parent link="${prefix}robotiq_hande_link"/> |
| 74 | + <child link="${prefix}robotiq_hande_left_finger"/> |
71 | 75 | <axis xyz="0 1 0"/>
|
72 | 76 | <limit effort="130" lower="0" upper="0.025" velocity="0.15"/>
|
73 | 77 | </joint>
|
74 | 78 |
|
75 |
| - <link name="${prefix}hande_left_finger"> |
| 79 | + <link name="${prefix}robotiq_hande_left_finger"> |
76 | 80 | <inertial>
|
77 | 81 | <origin rpy="0 0 0" xyz="0 0 0"/>
|
78 | 82 | <mass value="0.03804"/>
|
|
95 | 99 | </visual>
|
96 | 100 | </link>
|
97 | 101 |
|
98 |
| - <joint name="${prefix}hande_right_finger_joint" type="prismatic"> |
| 102 | + <joint name="${prefix}robotiq_hande_right_finger_joint" type="prismatic"> |
99 | 103 | <origin rpy="0 0 0" xyz="0 0.025 0.0345"/>
|
100 |
| - <parent link="${prefix}hande_link"/> |
101 |
| - <child link="${prefix}hande_right_finger"/> |
| 104 | + <parent link="${prefix}robotiq_hande_link"/> |
| 105 | + <child link="${prefix}robotiq_hande_right_finger"/> |
102 | 106 | <axis xyz="0 -1 0"/>
|
103 | 107 | <limit effort="130" lower="0" upper="0.025" velocity="0.15"/>
|
104 |
| - <mimic joint="${prefix}hande_left_finger_joint" multiplier="1" offset="0"/> |
| 108 | + <mimic joint="${prefix}robotiq_hande_left_finger_joint" multiplier="1" offset="0"/> |
105 | 109 | </joint>
|
106 | 110 |
|
107 |
| - <link name="${prefix}hande_right_finger"> |
| 111 | + <link name="${prefix}robotiq_hande_right_finger"> |
108 | 112 | <inertial>
|
109 | 113 | <origin rpy="0 0 0" xyz="0 0 0"/>
|
110 | 114 | <mass value="0.03804"/>
|
|
129 | 133 |
|
130 | 134 | <joint name="${prefix}robotiq_hande_end_joint" type="fixed">
|
131 | 135 | <origin rpy="0 0 0" xyz="0 0 0.095"/>
|
132 |
| - <parent link="${prefix}hande_link"/> |
133 |
| - <child link="${prefix}hande_end"/> |
| 136 | + <parent link="${prefix}robotiq_hande_link"/> |
| 137 | + <child link="${prefix}robotiq_hande_end"/> |
134 | 138 | </joint>
|
135 | 139 |
|
136 |
| - <link name="${prefix}hande_end"/> |
| 140 | + <link name="${prefix}robotiq_hande_end"/> |
137 | 141 | </xacro:macro>
|
138 | 142 | </robot>
|
0 commit comments