Skip to content

Commit

Permalink
Merge pull request cram2#239 from sunava/picku-up-action
Browse files Browse the repository at this point in the history
[PickUpAction] open gripper before move to the prepose
  • Loading branch information
Tigul authored Dec 9, 2024
2 parents f5bffc2 + 111f7c0 commit 51b41d6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pycram/designators/action_designator.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,8 +298,9 @@ def plan(self) -> None:

# Perform the motion with the prepose and open gripper
World.current_world.add_vis_axis(prepose)
MoveTCPMotion(prepose, self.arm, allow_gripper_collision=True).perform()
MoveGripperMotion(motion=GripperState.OPEN, gripper=self.arm).perform()
MoveTCPMotion(prepose, self.arm, allow_gripper_collision=True).perform()


# Perform the motion with the adjusted pose -> actual grasp and close gripper
World.current_world.add_vis_axis(adjusted_oTm)
Expand Down

0 comments on commit 51b41d6

Please sign in to comment.