def clear_objects(self, obj):
        """
        Clears objects with name @obj out of the task space. This is useful
        for supporting task modes with single types of objects, as in
        @self.single_object_mode without changing the model definition.
        """
        for obj_name, obj_mjcf in self.mujoco_objects.items():
            if obj_name == obj:
                continue
            else:
                sim_state = self.sim.get_state()
                # print(self.sim.model.get_joint_qpos_addr(obj_name))
                sim_state.qpos[self.sim.model.get_joint_qpos_addr(obj_name)[0]] = 10
                self.sim.set_state(sim_state)
                self.sim.forward()
def clear_objects ( self , obj ) : for obj_name , obj_mjcf in self . mujoco_objects . items ( ) : if obj_name == obj : continue else : sim_state = self . sim . get_state ( ) sim_state . qpos [ self . sim . model . get_joint_qpos_addr ( obj_name ) [ 0 ] ] = 10 self . sim . set_state ( sim_state ) self . sim . forward ( )
Clears objects with name @obj out of the task space. This is useful
        for supporting task modes with single types of objects, as in
        @self.single_object_mode without changing the model definition.