Skip to content

Commit 878b636

Browse files
committed
Add sim_isaac ros2_control xacro arg
1 parent 5c30ecc commit 878b636

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

robotiq_description/urdf/robotiq_sim_gripper.ros2_control.xacro

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,23 @@
11
<?xml version="1.0"?>
22
<robot xmlns:xacro="http://www.ros.org/wiki/xacro">
33

4-
<xacro:macro name="robotiq_sim_gripper_ros2_control" params="name">
4+
<xacro:macro name="robotiq_sim_gripper_ros2_control" params="
5+
name
6+
sim_isaac:=false
7+
use_fake_hardware:=false">
8+
59
<ros2_control name="${name}" type="system">
610
<hardware>
7-
<plugin>fake_components/GenericSystem</plugin>
11+
<xacro:if value="${sim_isaac}">
12+
<plugin>isaac_ros2_control/IsaacSystem</plugin>
13+
<param name="joint_commands_topic">/isaac_joint_commands</param>
14+
<param name="joint_states_topic">/isaac_joint_states</param>
15+
</xacro:if>
16+
<xacro:if value="${use_fake_hardware}">
17+
<plugin>mock_components/GenericSystem</plugin>
18+
<param name="fake_sensor_commands">${fake_sensor_commands}</param>
19+
<param name="state_following_offset">0.0</param>
20+
</xacro:if>
821
</hardware>
922
<joint name="robotiq_85_left_knuckle_joint">
1023
<param name="initial_position">0.7929</param>

0 commit comments

Comments
 (0)