Skip to content

Commit

Permalink
Change from hand to panda_gripper.
Browse files Browse the repository at this point in the history
  • Loading branch information
MikelBueno committed Mar 1, 2023
1 parent 433b55e commit 5a44a0d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion PandaRobot/panda_ros2_moveit2/config/ompl_planning.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ panda_arm_hand:
- SPARSkConfigDefault
- SPARStwokConfigDefault
- TrajOptDefault
hand:
panda_gripper:
planner_configs:
- SBLkConfigDefault
- ESTkConfigDefault
Expand Down
10 changes: 5 additions & 5 deletions PandaRobot/panda_ros2_moveit2/config/panda.srdf
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
<!--JOINTS: When a joint is specified, the child link of that joint (which will always exist) is automatically included-->
<!--CHAINS: When a chain is specified, all the links along the chain (including endpoints) are included in the group. Additionally, all the joints that are parents to included links are also included. This means that joints along the chain and the parent joint of the base link are included in the group-->
<!--SUBGROUPS: Groups can also be formed by referencing to already defined group names-->
<group name="hand">
<group name="panda_gripper">
<link name="panda_hand"/>
<link name="panda_leftfinger"/>
<link name="panda_rightfinger"/>
Expand All @@ -117,18 +117,18 @@
<!--SUBGROUPS: Groups can also be formed by referencing to already defined group names-->
<group name="panda_arm_hand">
<group name="panda_arm"/>
<group name="hand"/>
<group name="panda_gripper"/>
</group>
<group_state group="hand" name="open">
<group_state group="panda_gripper" name="open">
<joint name="panda_finger_joint1" value="0.035"/>
<joint name="panda_finger_joint2" value="0.035"/>
</group_state>
<group_state group="hand" name="close">
<group_state group="panda_gripper" name="close">
<joint name="panda_finger_joint1" value="0"/>
<joint name="panda_finger_joint2" value="0"/>
</group_state>
<!--END EFFECTOR: Purpose: Represent information about an end effector.-->
<end_effector group="hand" name="hand" parent_group="panda_arm" parent_link="panda_link8"/>
<end_effector group="panda_gripper" name="panda_gripper" parent_group="panda_arm" parent_link="panda_link8"/>
<!--DISABLE COLLISIONS: By default it is assumed that any link of the robot could potentially come into collision with any other link in the robot. This tag disables collision checking between a specified pair of links. -->
<disable_collisions link1="panda_hand" link2="panda_link3" reason="Never"/>
<disable_collisions link1="panda_hand" link2="panda_link4" reason="Never"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ def generate_launch_description():
package="ros2_actions",
executable="moveG_action",
output="screen",
parameters=[robot_description, robot_description_semantic, kinematics_yaml, {"ROB_PARAM": 'hand'}],
parameters=[robot_description, robot_description_semantic, kinematics_yaml, {"ROB_PARAM": 'panda_gripper'}],
)
# MoveXYZW ACTION:
moveXYZW_interface = Node(
Expand Down
3 changes: 1 addition & 2 deletions ros2_actions/scripts/moveG_action.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -150,10 +150,9 @@ class ActionServer : public rclcpp::Node
// Check GRIPPER LIMITS:
double GPupper, GPlower = 0.0;
bool LimitCheck = false;
if (my_param == "hand"){
if (my_param == "panda_gripper"){
GPupper = 0.04;
GPlower = 0.0;
my_param = "Panda Hand";
} else if (my_param == "egp64"){
GPupper = 0.025;
GPlower = 0.0;
Expand Down

0 comments on commit 5a44a0d

Please sign in to comment.