Device
======

Devices allow for direct real-time interfacing with the MuJoCo simulation. The current support devices are Keyboard and Spacemouse.

Base Device
-----------

.. autoclass:: robosuite.devices.device.Device

  .. automethod:: start_control
  .. automethod:: get_controller_state


Keyboard Device
---------------

.. autoclass:: robosuite.devices.keyboard.Keyboard

  .. automethod:: get_controller_state
  .. automethod:: on_press
  .. automethod:: on_release
  .. automethod:: _display_controls


Spacemouse Device
-----------------

.. autoclass:: robosuite.devices.spacemouse.SpaceMouse

  .. automethod:: get_controller_state
  .. automethod:: run
  .. autoproperty:: control
  .. autoproperty:: control_gripper
  .. automethod:: _display_controls
