-
Notifications
You must be signed in to change notification settings - Fork 195
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename fake_components to mock_components (#470)
(cherry picked from commit 215c771) # Conflicts: # doc/examples/dual_arms/dual_arm_panda_moveit_config/config/panda.ros2_control.xacro # doc/examples/dual_arms/dual_arm_panda_moveit_config/config/panda_hand.ros2_control.xacro
- Loading branch information
1 parent
80a7b61
commit 68f113c
Showing
3 changed files
with
102 additions
and
0 deletions.
There are no files selected for viewing
62 changes: 62 additions & 0 deletions
62
doc/examples/dual_arms/dual_arm_panda_moveit_config/config/panda.ros2_control.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,62 @@ | ||
<?xml version="1.0"?> | ||
<robot xmlns:xacro="http://www.ros.org/wiki/xacro"> | ||
|
||
<xacro:macro name="panda_arm_ros2_control" params="name initial_positions_file prefix"> | ||
<xacro:property name="initial_positions" value="${load_yaml(initial_positions_file)['initial_positions']}"/> | ||
|
||
<ros2_control name="${prefix}${name}" type="system"> | ||
<hardware> | ||
<plugin>mock_components/GenericSystem</plugin> | ||
</hardware> | ||
<joint name="${prefix}panda_joint1"> | ||
<command_interface name="position"/> | ||
<state_interface name="position"> | ||
<param name="initial_value">${initial_positions['panda_joint1']}</param> | ||
</state_interface> | ||
<state_interface name="velocity"/> | ||
</joint> | ||
<joint name="${prefix}panda_joint2"> | ||
<command_interface name="position"/> | ||
<state_interface name="position"> | ||
<param name="initial_value">${initial_positions['panda_joint2']}</param> | ||
</state_interface> | ||
<state_interface name="velocity"/> | ||
</joint> | ||
<joint name="${prefix}panda_joint3"> | ||
<command_interface name="position"/> | ||
<state_interface name="position"> | ||
<param name="initial_value">${initial_positions['panda_joint3']}</param> | ||
</state_interface> | ||
<state_interface name="velocity"/> | ||
</joint> | ||
<joint name="${prefix}panda_joint4"> | ||
<command_interface name="position"/> | ||
<state_interface name="position"> | ||
<param name="initial_value">${initial_positions['panda_joint4']}</param> | ||
</state_interface> | ||
<state_interface name="velocity"/> | ||
</joint> | ||
<joint name="${prefix}panda_joint5"> | ||
<command_interface name="position"/> | ||
<state_interface name="position"> | ||
<param name="initial_value">${initial_positions['panda_joint5']}</param> | ||
</state_interface> | ||
<state_interface name="velocity"/> | ||
</joint> | ||
<joint name="${prefix}panda_joint6"> | ||
<command_interface name="position"/> | ||
<state_interface name="position"> | ||
<param name="initial_value">${initial_positions['panda_joint6']}</param> | ||
</state_interface> | ||
<state_interface name="velocity"/> | ||
</joint> | ||
<joint name="${prefix}panda_joint7"> | ||
<command_interface name="position"/> | ||
<state_interface name="position"> | ||
<param name="initial_value">${initial_positions['panda_joint7']}</param> | ||
</state_interface> | ||
<state_interface name="velocity"/> | ||
</joint> | ||
</ros2_control> | ||
</xacro:macro> | ||
</robot> |
28 changes: 28 additions & 0 deletions
28
doc/examples/dual_arms/dual_arm_panda_moveit_config/config/panda_hand.ros2_control.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,28 @@ | ||
<?xml version="1.0"?> | ||
<robot xmlns:xacro="http://www.ros.org/wiki/xacro"> | ||
|
||
<xacro:macro name="panda_hand_ros2_control" params="name prefix"> | ||
<ros2_control name="${name}" type="system"> | ||
<hardware> | ||
<plugin>mock_components/GenericSystem</plugin> | ||
</hardware> | ||
<joint name="${prefix}panda_finger_joint1"> | ||
<command_interface name="position" /> | ||
<state_interface name="position"> | ||
<param name="initial_value">0.0</param> | ||
</state_interface> | ||
<state_interface name="velocity"/> | ||
</joint> | ||
<joint name="${prefix}panda_finger_joint2"> | ||
<param name="mimic">${prefix}panda_finger_joint1</param> | ||
<param name="multiplier">1</param> | ||
<command_interface name="position" /> | ||
<state_interface name="position"> | ||
<param name="initial_value">0.0</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