Skip to content

Commit 59eb733

Browse files
committed
parametrized collision cylinders with hande_radius
1 parent f44fe42 commit 59eb733

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

urdf/robotiq_hande_gripper.xacro

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0"?>
22
<robot xmlns:xacro="http://ros.org/wiki/xacro">
33
<!--
4-
Based on the URDF file by Cristian C Beltran-Hernandez
4+
Original URDF file by Cristian C Beltran-Hernandez
55
-->
66

77
<xacro:include filename="$(find robotiq_hande_description)/urdf/robotiq_hande_gripper.ros2_control.xacro"/>
@@ -51,7 +51,7 @@
5151
<collision>
5252
<origin xyz="0 0 ${$(arg coupler_shell_height)/2 - $(arg coupler_parent_cutoff)}" rpy="0 0 0"/>
5353
<geometry>
54-
<cylinder length="$(arg coupler_shell_height)" radius="0.039"/>
54+
<cylinder length="$(arg coupler_shell_height)" radius="${$(arg hande_radius) + 0.001}"/>
5555
</geometry>
5656
</collision>
5757

@@ -75,7 +75,7 @@
7575
<collision>
7676
<origin xyz="0 0 ${($(arg hande_height) + $(arg coupler_hande_cutoff) + 0.005) / 2}" rpy="0 0 0"/>
7777
<geometry>
78-
<cylinder length="${($(arg hande_height) + $(arg coupler_hande_cutoff) + 0.005) / 1}" radius="0.039"/>
78+
<cylinder length="${$(arg hande_height) + $(arg coupler_hande_cutoff) + 0.005}" radius="${$(arg hande_radius) + 0.001}"/>
7979
</geometry>
8080
</collision>
8181

0 commit comments

Comments
 (0)