(self,
               model,
               data,
               options,
               settings=None,
               zoom_factor=_FULL_SCENE_ZOOM_FACTOR)
Instance initializer.

    Args:
      model: MjModel instance.
      data: MjData instance.
      options: RenderSettings instance.
      settings: Optional, internal camera settings obtained from another
        SceneCamera instance using 'settings' property.
      zoom_factor: The initial zoom factor for zooming into the scene.
Instance initializer.
Instance initializer .
def __init__(self,
               model,
               data,
               options,
               settings=None,
               zoom_factor=_FULL_SCENE_ZOOM_FACTOR):
    """Instance initializer.

    Args:
      model: MjModel instance.
      data: MjData instance.
      options: RenderSettings instance.
      settings: Optional, internal camera settings obtained from another
        SceneCamera instance using 'settings' property.
      zoom_factor: The initial zoom factor for zooming into the scene.
    """
    # Design notes:
    # We need to recreate the camera for each new model, because each model
    # defines different fixed cameras and objects to track, and therefore
    # severely the parameters of this class.
    self._scene = wrapper.MjvScene(model)
    self._data = data
    self._model = model
    self._options = options

    self._camera = wrapper.MjvCamera()
    self._camera.trackbodyid = _NO_BODY_TRACKED_INDEX
    self._camera.fixedcamid = _FREE_CAMERA_INDEX
    self._camera.type_ = enums.mjtCamera.mjCAMERA_FREE
    self._zoom_factor = zoom_factor

    if settings is not None:
      self._settings = settings
      self.settings = settings
    else:
      self._settings = self._camera
def __init__ ( self , model , data , options , settings = None , zoom_factor = _FULL_SCENE_ZOOM_FACTOR ) : # Design notes: # We need to recreate the camera for each new model, because each model # defines different fixed cameras and objects to track, and therefore # severely the parameters of this class. self . _scene = wrapper . MjvScene ( model ) self . _data = data self . _model = model self . _options = options self . _camera = wrapper . MjvCamera ( ) self . _camera . trackbodyid = _NO_BODY_TRACKED_INDEX self . _camera . fixedcamid = _FREE_CAMERA_INDEX self . _camera . type_ = enums . mjtCamera . mjCAMERA_FREE self . _zoom_factor = zoom_factor if settings is not None : self . _settings = settings self . settings = settings else : self . _settings = self . _camera