(self)
Creates a new Physics using the latest MJCF model from the task.
Creates a new Physics using the latest MJCF model from the task.
Creates a new Physics using the latest MJCF model from the task .
def _recompile_physics(self):
    """Creates a new Physics using the latest MJCF model from the task."""
    if getattr(self, '_physics', None):
      self._physics.free()
    self._physics = mjcf.Physics.from_mjcf_model(
        self._task.root_entity.mjcf_model)
def _recompile_physics ( self ) : if getattr ( self , '_physics' , None ) : self . _physics . free ( ) self . _physics = mjcf . Physics . from_mjcf_model ( self . _task . root_entity . mjcf_model )