forked from xArm-Developer/xarm_ros
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[feat] add gripper.urdf.xacro/vacuum_gripper.urdf.xacro
- Loading branch information
Showing
5 changed files
with
81 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?xml version='1.0' encoding='utf-8'?> | ||
<robot xmlns:xacro="http://ros.org/wiki/xacro" name="UF_GRIPPER"> | ||
<xacro:arg name="robot_type" default="xarm"/> | ||
<xacro:arg name="prefix" default=""/> | ||
<xacro:arg name="mesh_suffix" default="stl"/> | ||
|
||
<xacro:include filename="$(find xarm_description)/urdf/gripper/gripper_macro.xacro" /> | ||
|
||
<xacro:gripper_device robot_type="$(arg robot_type)" prefix="$(arg prefix)" mesh_suffix="$(arg mesh_suffix)" /> | ||
|
||
</robot> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?xml version='1.0' encoding='utf-8'?> | ||
<robot xmlns:xacro="http://ros.org/wiki/xacro" name="UF_GRIPPER"> | ||
<xacro:macro name="gripper_device" params="prefix:='' robot_type:='xarm' mesh_suffix:='stl' "> | ||
|
||
<!-- Load Common Material --> | ||
<xacro:include filename="$(find xarm_description)/urdf/_private_macro.xacro" /> | ||
<xacro:device_macro_begin /> | ||
|
||
<!-- Load Common Material --> | ||
<xacro:include filename="$(find xarm_description)/urdf/common/common.material.xacro" /> | ||
<xacro:common_material prefix="${prefix}"/> | ||
|
||
<xacro:property name="mesh_path" value="package://xarm_description/meshes" scope="parent"/> | ||
|
||
<!-- include common.link.xacro --> | ||
<xacro:include filename="$(find xarm_description)/urdf/common/common.link.xacro" /> | ||
|
||
<xacro:if value="${robot_type == 'lite'}"> | ||
<!-- Load Lite Gripper Model URDF --> | ||
<xacro:include filename="$(find xarm_description)/urdf/gripper/lite_gripper.urdf.xacro" /> | ||
<xacro:uflite_gripper_urdf prefix="${prefix}" /> | ||
</xacro:if> | ||
<xacro:unless value="${robot_type == 'lite'}"> | ||
<!-- Load XArm Gripper Model URDF --> | ||
<xacro:include filename="$(find xarm_description)/urdf/gripper/xarm_gripper_macro.xacro" /> | ||
<xacro:xarm_gripper_macro prefix="${prefix}" /> | ||
</xacro:unless> | ||
</xacro:macro> | ||
</robot> |
11 changes: 11 additions & 0 deletions
11
xarm_description/urdf/vacuum_gripper/vacuum_gripper.urdf.xacro
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?xml version='1.0' encoding='utf-8'?> | ||
<robot xmlns:xacro="http://ros.org/wiki/xacro" name="UF_VACUUM_GRIPPER"> | ||
<xacro:arg name="robot_type" default="xarm"/> | ||
<xacro:arg name="prefix" default=""/> | ||
<xacro:arg name="mesh_suffix" default="stl"/> | ||
|
||
<xacro:include filename="$(find xarm_description)/urdf/vacuum_gripper/vacuum_gripper_macro.xacro" /> | ||
|
||
<xacro:vacuum_gripper_device robot_type="$(arg robot_type)" prefix="$(arg prefix)" mesh_suffix="$(arg mesh_suffix)" /> | ||
|
||
</robot> |
29 changes: 29 additions & 0 deletions
29
xarm_description/urdf/vacuum_gripper/vacuum_gripper_macro.xacro
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?xml version='1.0' encoding='utf-8'?> | ||
<robot xmlns:xacro="http://ros.org/wiki/xacro" name="UF_VACUUM_GRIPPER"> | ||
<xacro:macro name="vacuum_gripper_device" params="prefix:='' robot_type:='xarm' mesh_suffix:='stl' "> | ||
|
||
<!-- Load Common Material --> | ||
<xacro:include filename="$(find xarm_description)/urdf/_private_macro.xacro" /> | ||
<xacro:device_macro_begin /> | ||
|
||
<!-- Load Common Material --> | ||
<xacro:include filename="$(find xarm_description)/urdf/common/common.material.xacro" /> | ||
<xacro:common_material prefix="${prefix}"/> | ||
|
||
<xacro:property name="mesh_path" value="package://xarm_description/meshes" scope="parent"/> | ||
|
||
<!-- include common.link.xacro --> | ||
<xacro:include filename="$(find xarm_description)/urdf/common/common.link.xacro" /> | ||
|
||
<xacro:if value="${robot_type == 'lite'}"> | ||
<!-- Load Lite Gripper Model URDF --> | ||
<xacro:include filename="$(find xarm_description)/urdf/vacuum_gripper/lite_vacuum_gripper.urdf.xacro" /> | ||
<xacro:uflite_vacuum_gripper_urdf prefix="${prefix}" /> | ||
</xacro:if> | ||
<xacro:unless value="${robot_type == 'lite'}"> | ||
<!-- Load XArm Gripper Model URDF --> | ||
<xacro:include filename="$(find xarm_description)/urdf/vacuum_gripper/xarm_vacuum_gripper.urdf.xacro" /> | ||
<xacro:xarm_vacuum_gripper_urdf prefix="${prefix}" /> | ||
</xacro:unless> | ||
</xacro:macro> | ||
</robot> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters