|
9 | 9 | sim_isaac:=false
|
10 | 10 | use_fake_hardware:=false
|
11 | 11 | fake_sensor_commands:=false
|
| 12 | + include_ros2_control:=true |
12 | 13 | com_port:=/dev/ttyUSB0">
|
13 | 14 |
|
14 | 15 | <!-- ros2 control include -->
|
15 | 16 | <xacro:include filename="$(find robotiq_description)/urdf/robotiq_gripper.ros2_control.xacro" />
|
16 |
| - <!-- ros2 control instance --> |
17 |
| - <xacro:robotiq_gripper_ros2_control |
18 |
| - name="${name}" prefix="${prefix}" |
19 |
| - sim_ignition="${sim_ignition}" |
20 |
| - sim_isaac="${sim_isaac}" |
21 |
| - use_fake_hardware="${use_fake_hardware}" |
22 |
| - fake_sensor_commands="${fake_sensor_commands}" |
23 |
| - com_port="${com_port}" |
24 |
| - /> |
| 17 | + <!-- if we are simulating or directly communicating with the gripper we need a ros2 control instance --> |
| 18 | + <xacro:if value="${include_ros2_control}"> |
| 19 | + <xacro:robotiq_gripper_ros2_control |
| 20 | + name="${name}" prefix="${prefix}" |
| 21 | + sim_ignition="${sim_ignition}" |
| 22 | + sim_isaac="${sim_isaac}" |
| 23 | + use_fake_hardware="${use_fake_hardware}" |
| 24 | + fake_sensor_commands="${fake_sensor_commands}" |
| 25 | + com_port="${com_port}"/> |
| 26 | + </xacro:if> |
25 | 27 |
|
26 | 28 | <link name="${prefix}robotiq_85_base_link">
|
27 | 29 | <visual>
|
28 | 30 | <geometry>
|
29 |
| - <mesh filename="package://robotiq_description/meshes/visual/robotiq_base.dae" /> |
| 31 | + <mesh filename="file://$(find robotiq_description)/meshes/visual/robotiq_base.dae" /> |
30 | 32 | </geometry>
|
31 | 33 | </visual>
|
32 | 34 | <collision>
|
33 | 35 | <geometry>
|
34 |
| - <mesh filename="package://robotiq_description/meshes/collision/robotiq_base.stl" /> |
| 36 | + <mesh filename="file://$(find robotiq_description)/meshes/collision/robotiq_base.stl" /> |
35 | 37 | </geometry>
|
36 | 38 | </collision>
|
37 | 39 | <inertial>
|
|
44 | 46 | <link name="${prefix}robotiq_85_left_knuckle_link">
|
45 | 47 | <visual>
|
46 | 48 | <geometry>
|
47 |
| - <mesh filename="package://robotiq_description/meshes/visual/left_knuckle.dae" /> |
| 49 | + <mesh filename="file://$(find robotiq_description)/meshes/visual/left_knuckle.dae" /> |
48 | 50 | </geometry>
|
49 | 51 | </visual>
|
50 | 52 | <collision>
|
51 | 53 | <geometry>
|
52 |
| - <mesh filename="package://robotiq_description/meshes/collision/left_knuckle.stl" /> |
| 54 | + <mesh filename="file://$(find robotiq_description)/meshes/collision/left_knuckle.stl" /> |
53 | 55 | </geometry>
|
54 | 56 | </collision>
|
55 | 57 | <inertial>
|
|
62 | 64 | <link name="${prefix}robotiq_85_right_knuckle_link">
|
63 | 65 | <visual>
|
64 | 66 | <geometry>
|
65 |
| - <mesh filename="package://robotiq_description/meshes/visual/right_knuckle.dae" /> |
| 67 | + <mesh filename="file://$(find robotiq_description)/meshes/visual/right_knuckle.dae" /> |
66 | 68 | </geometry>
|
67 | 69 | </visual>
|
68 | 70 | <collision>
|
69 | 71 | <geometry>
|
70 |
| - <mesh filename="package://robotiq_description/meshes/collision/right_knuckle.stl" /> |
| 72 | + <mesh filename="file://$(find robotiq_description)/meshes/collision/right_knuckle.stl" /> |
71 | 73 | </geometry>
|
72 | 74 | </collision>
|
73 | 75 | <inertial>
|
|
80 | 82 | <link name="${prefix}robotiq_85_left_finger_link">
|
81 | 83 | <visual>
|
82 | 84 | <geometry>
|
83 |
| - <mesh filename="package://robotiq_description/meshes/visual/left_finger.dae" /> |
| 85 | + <mesh filename="file://$(find robotiq_description)/meshes/visual/left_finger.dae" /> |
84 | 86 | </geometry>
|
85 | 87 | </visual>
|
86 | 88 | <collision>
|
87 | 89 | <geometry>
|
88 |
| - <mesh filename="package://robotiq_description/meshes/collision/left_finger.stl" /> |
| 90 | + <mesh filename="file://$(find robotiq_description)/meshes/collision/left_finger.stl" /> |
89 | 91 | </geometry>
|
90 | 92 | </collision>
|
91 | 93 | <inertial>
|
|
98 | 100 | <link name="${prefix}robotiq_85_right_finger_link">
|
99 | 101 | <visual>
|
100 | 102 | <geometry>
|
101 |
| - <mesh filename="package://robotiq_description/meshes/visual/right_finger.dae" /> |
| 103 | + <mesh filename="file://$(find robotiq_description)/meshes/visual/right_finger.dae" /> |
102 | 104 | </geometry>
|
103 | 105 | </visual>
|
104 | 106 | <collision>
|
105 | 107 | <geometry>
|
106 |
| - <mesh filename="package://robotiq_description/meshes/collision/right_finger.stl" /> |
| 108 | + <mesh filename="file://$(find robotiq_description)/meshes/collision/right_finger.stl" /> |
107 | 109 | </geometry>
|
108 | 110 | </collision>
|
109 | 111 | <inertial>
|
|
116 | 118 | <link name="${prefix}robotiq_85_left_inner_knuckle_link">
|
117 | 119 | <visual>
|
118 | 120 | <geometry>
|
119 |
| - <mesh filename="package://robotiq_description/meshes/visual/left_inner_knuckle.dae" /> |
| 121 | + <mesh filename="file://$(find robotiq_description)/meshes/visual/left_inner_knuckle.dae" /> |
120 | 122 | </geometry>
|
121 | 123 | </visual>
|
122 | 124 | <collision>
|
123 | 125 | <geometry>
|
124 |
| - <mesh filename="package://robotiq_description/meshes/collision/left_inner_knuckle.stl" /> |
| 126 | + <mesh filename="file://$(find robotiq_description)/meshes/collision/left_inner_knuckle.stl" /> |
125 | 127 | </geometry>
|
126 | 128 | </collision>
|
127 | 129 | <inertial>
|
|
134 | 136 | <link name="${prefix}robotiq_85_right_inner_knuckle_link">
|
135 | 137 | <visual>
|
136 | 138 | <geometry>
|
137 |
| - <mesh filename="package://robotiq_description/meshes/visual/right_inner_knuckle.dae" /> |
| 139 | + <mesh filename="file://$(find robotiq_description)/meshes/visual/right_inner_knuckle.dae" /> |
138 | 140 | </geometry>
|
139 | 141 | </visual>
|
140 | 142 | <collision>
|
141 | 143 | <geometry>
|
142 |
| - <mesh filename="package://robotiq_description/meshes/collision/right_inner_knuckle.stl" /> |
| 144 | + <mesh filename="file://$(find robotiq_description)/meshes/collision/right_inner_knuckle.stl" /> |
143 | 145 | </geometry>
|
144 | 146 | </collision>
|
145 | 147 | <inertial>
|
|
152 | 154 | <link name="${prefix}robotiq_85_left_finger_tip_link">
|
153 | 155 | <visual>
|
154 | 156 | <geometry>
|
155 |
| - <mesh filename="package://robotiq_description/meshes/visual/left_finger_tip.dae" /> |
| 157 | + <mesh filename="file://$(find robotiq_description)/meshes/visual/left_finger_tip.dae" /> |
156 | 158 | </geometry>
|
157 | 159 | </visual>
|
158 | 160 | <collision>
|
159 | 161 | <geometry>
|
160 |
| - <mesh filename="package://robotiq_description/meshes/collision/left_finger_tip.stl" /> |
| 162 | + <mesh filename="file://$(find robotiq_description)/meshes/collision/left_finger_tip.stl" /> |
161 | 163 | </geometry>
|
162 | 164 | <surface>
|
163 | 165 | <friction>
|
|
188 | 190 | <link name="${prefix}robotiq_85_right_finger_tip_link">
|
189 | 191 | <visual>
|
190 | 192 | <geometry>
|
191 |
| - <mesh filename="package://robotiq_description/meshes/visual/right_finger_tip.dae" /> |
| 193 | + <mesh filename="file://$(find robotiq_description)/meshes/visual/right_finger_tip.dae" /> |
192 | 194 | </geometry>
|
193 | 195 | </visual>
|
194 | 196 | <collision>
|
195 | 197 | <geometry>
|
196 |
| - <mesh filename="package://robotiq_description/meshes/collision/right_finger_tip.stl" /> |
| 198 | + <mesh filename="file://$(find robotiq_description)/meshes/collision/right_finger_tip.stl" /> |
197 | 199 | </geometry>
|
198 | 200 | <surface>
|
199 | 201 | <friction>
|
|
0 commit comments