_get_interface

Module Contents

Functions

get_interface(...)

Get the interface for the given hardware type.

get_interface(hardware_type: modular_robot_physical._hardware_type.HardwareType, debug: bool, dry: bool) modular_robot_physical.physical_interfaces._physical_interface.PhysicalInterface

Get the interface for the given hardware type.

Parameters:
  • hardware_type – The type of hardware.

  • debug – If debugging messages are activated.

  • dry – If servo outputs are not propagated to the physical servos.:

Returns:

The interface.

Raises:
  • NotImplementedError – If the hardware type is not supported or if careful is enabled and not supported for the hardware type.

  • ModuleNotFoundError – If some required package are not installed.