(self, body_id, model, data, scene)
Instance initializer.

    Args:
      body_id: A positive integer, ID of the body to manipulate.
      model: MjModel instance.
      data: MjData instance.
      scene: MjvScene instance.
Instance initializer.
Instance initializer .
def __init__(self, body_id, model, data, scene):
    """Instance initializer.

    Args:
      body_id: A positive integer, ID of the body to manipulate.
      model: MjModel instance.
      data: MjData instance.
      scene: MjvScene instance.
    """
    self._body_id = body_id
    self._model = model
    self._data = data
    self._scene = scene
    self._action = enums.mjtMouse.mjMOUSE_NONE

    self._perturb = wrapper.MjvPerturb()
    self._perturb.select = self._body_id
    self._perturb.active = 0

    mjlib.mjv_initPerturb(self._model.ptr, self._data.ptr, self._scene.ptr,
                          self._perturb.ptr)
def __init__ ( self , body_id , model , data , scene ) : self . _body_id = body_id self . _model = model self . _data = data self . _scene = scene self . _action = enums . mjtMouse . mjMOUSE_NONE self . _perturb = wrapper . MjvPerturb ( ) self . _perturb . select = self . _body_id self . _perturb . active = 0 mjlib . mjv_initPerturb ( self . _model . ptr , self . _data . ptr , self . _scene . ptr , self . _perturb . ptr )