(self, model, surface)
Instance initializer.

    Args:
      model: instance of MjModel.
      surface: instance of dm_control.render.BaseContext.
Instance initializer.
Instance initializer .
def __init__(self, model, surface):
    """Instance initializer.

    Args:
      model: instance of MjModel.
      surface: instance of dm_control.render.BaseContext.
    """
    super().__init__()
    self._surface = surface
    self._model = model
    self._mujoco_context = None

    self._prev_viewport = np.ones(2)
    self._rgb_buffer = np.empty((1, 1, 3), dtype=np.uint8)
    self._pixels = np.zeros((1, 1, 3), dtype=np.uint8)
def __init__ ( self , model , surface ) : super ( ) . __init__ ( ) self . _surface = surface self . _model = model self . _mujoco_context = None self . _prev_viewport = np . ones ( 2 ) self . _rgb_buffer = np . empty ( ( 1 , 1 , 3 ) , dtype = np . uint8 ) self . _pixels = np . zeros ( ( 1 , 1 , 3 ) , dtype = np . uint8 )