ravens/gripper.py
def release(self):
        """
        If suction off, detect contact between gripper and objects.
        If suction on, detect contact between picked object and other objects.
        """
        if self.activated:
            self.activated = False

            # Release gripped rigid object (if any).
            if self.contact_constraint is not None:
                try:
                    p.removeConstraint(self.contact_constraint)
                    self.contact_constraint = None
                except:
                    pass
                self.init_grip_distance = None
                self.init_grip_item = None

            # Release gripped deformable object (if any).
            if self.def_grip_anchors is not None:
                for anchorId in self.def_grip_anchors:
                    p.removeConstraint(anchorId)
                self.def_grip_anchors = None
                self.def_grip_item = None
                self.def_min_vetex = None
                self.def_min_distance = None

        If suction off, detect contact between gripper and objects.
        If suction on, detect contact between picked object and other objects.
        
If suction off, detect contact between gripper and objects.
If suction on, detect contact between picked object and other objects.
If suction off detect contact between gripper and objects . If suction on detect contact between picked object and other objects .
def release(self):
        if self.activated:
            self.activated = False
            if self.contact_constraint is not None:
                try:
                    p.removeConstraint(self.contact_constraint)
                    self.contact_constraint = None
                except:
                    pass
                self.init_grip_distance = None
                self.init_grip_item = None
            if self.def_grip_anchors is not None:
                for anchorId in self.def_grip_anchors:
                    p.removeConstraint(anchorId)
                self.def_grip_anchors = None
                self.def_grip_item = None
                self.def_min_vetex = None
                self.def_min_distance = None
def release ( self ) : if self . activated : self . activated = False if self . contact_constraint is not None : try : p . removeConstraint ( self . contact_constraint ) self . contact_constraint = None except : pass self . init_grip_distance = None self . init_grip_item = None if self . def_grip_anchors is not None : for anchorId in self . def_grip_anchors : p . removeConstraint ( anchorId ) self . def_grip_anchors = None self . def_grip_item = None self . def_min_vetex = None self . def_min_distance = None
If suction off, detect contact between gripper and objects.
If suction off detect contact between gripper and objects .
"""
        If suction off, detect contact between gripper and objects.
        If suction on, detect contact between picked object and other objects.
        """ # Release gripped rigid object (if any). # Release gripped deformable object (if any).
self