-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from macmacal/feature/ros2_control
Minimal ros2_control xacro definitions
- Loading branch information
Showing
4 changed files
with
63 additions
and
23 deletions.
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
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"?> | ||
<robot xmlns:xacro="http://www.ros.org/wiki/xacro"> | ||
<xacro:macro name="robotiq_hande_ros2_control" params="name prefix tty use_fake_hardware:=false"> | ||
<ros2_control name="${name}" type="system"> | ||
<hardware> | ||
<xacro:if value="${use_fake_hardware}"> | ||
<plugin>mock_components/GenericSystem</plugin> | ||
</xacro:if> | ||
|
||
<xacro:unless value="${use_fake_hardware}"> | ||
<plugin>robotiq_hande_driver/RobotiqHandeHardwareInterface</plugin> | ||
<param name="tty">${tty}</param> | ||
</xacro:unless> | ||
</hardware> | ||
|
||
<!-- The right finger joint uses the mimic feature --> | ||
<joint name="${prefix}robotiq_hande_left_finger_joint"> | ||
<command_interface name="position"> | ||
<param name="min">0</param> | ||
<param name="max">0.025</param> | ||
</command_interface> | ||
<state_interface name="position"> | ||
<param name="initial_value">0.025</param> | ||
</state_interface> | ||
<state_interface name="velocity"/> | ||
</joint> | ||
</ros2_control> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
<?xml version="1.0"?> | ||
<robot xmlns:xacro="http://ros.org/wiki/xacro" name="robotiq_hande_gripper"> | ||
<xacro:arg name="parent" default="tool0"/> | ||
<xacro:arg name="tty" default="/dev/ttyXXX"/> | ||
<xacro:arg name="use_fake_hardware" default="true"/> | ||
|
||
<xacro:include filename="$(find robotiq_hande_description)/urdf/robotiq_hande_gripper.xacro"/> | ||
|
||
<link name="tool0"/> | ||
<xacro:robotiq_hande_gripper parent="tool0" prefix=""/> | ||
<link name="$(arg parent)"/> | ||
<xacro:robotiq_hande_gripper name="robotiq_hande_gripper" prefix="" parent="$(arg parent)" tty="$(arg tty)" use_fake_hardware="$(arg use_fake_hardware)"/> | ||
</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