Skip to content

Commit 6242137

Browse files
authored
Merge pull request #1225 from tue-robotics/fix/open_gripper_remove_object
check goal not state
2 parents c1c7715 + 83bc4e8 commit 6242137

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

robot_skills/src/robot_skills/arm/gripper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,10 @@ def send_goal(self, state, timeout=5.0, max_torque=0.1): #Todo: should send goal
103103

104104
self._ac_gripper.send_goal(goal)
105105

106-
if state == GripperState.OPEN:
106+
if goal.command.direction == GripperState.OPEN:
107107
if self.occupied_by is not None:
108108
rospy.logerr("ParrallelGripper.send_goal open is called but there is still an entity with id '%s' \
109-
occupying the gripper, please update the world model and remove this entity" % self.occupied_by.uuid)
109+
occupying the gripper, removing this entity from the robot interface." % self.occupied_by.uuid)
110110
self.occupied_by = None
111111

112112
goal_status = GoalStatus.SUCCEEDED

0 commit comments

Comments
 (0)