robosuite_task_zoo/environments/manipulation/hammer_place.py
def _check_success(self):
        """
        Check if drawer has been opened.

        Returns:
            bool: True if drawer has been opened
        """
        object_pos = self.sim.data.body_xpos[self.sorting_object_id]
        object_in_drawer = 1.0 > object_pos[2] > 0.94 and object_pos[1] > 0.22

        cabinet_closed = self.sim.data.qpos[self.cabinet_qpos_addrs] > -0.01

        return object_in_drawer and cabinet_closed

        Check if drawer has been opened.

        Returns:
            bool: True if drawer has been opened
        
Check if drawer has been opened.
Check if drawer has been opened .
def _check_success(self):
        object_pos = self.sim.data.body_xpos[self.sorting_object_id]
        object_in_drawer = 1.0 > object_pos[2] > 0.94 and object_pos[1] > 0.22
        cabinet_closed = self.sim.data.qpos[self.cabinet_qpos_addrs] > -0.01
        return object_in_drawer and cabinet_closed
def _check_success ( self ) : object_pos = self . sim . data . body_xpos [ self . sorting_object_id ] object_in_drawer = 1.0 > object_pos [ 2 ] > 0.94 and object_pos [ 1 ] > 0.22 cabinet_closed = self . sim . data . qpos [ self . cabinet_qpos_addrs ] > - 0.01 return object_in_drawer and cabinet_closed
Check if drawer has been opened.
Check if drawer has been opened .
"""
        Check if drawer has been opened.

        Returns:
            bool: True if drawer has been opened
        """
True if drawer has been opened
True if drawer has been opened
bool
self