68 virtual void begin() = 0;
69 virtual bool isEnabled() = 0;
70 virtual bool shouldMatchRobotState() = 0;
71 virtual bool shouldDisableWithWatchdog() = 0;
72 virtual void enable() = 0;
73 virtual void disable() = 0;
75 bool initialized =
false;
76 std::string deviceName;
80 void lockDevice(
Action *action);
82 void releaseDevice(
Action *action);
86 std::mutex actionLock;
91 Action *lockingAction =
nullptr;
Definition: Action.hpp:41
Definition: BaseDevice.hpp:35
bool isLockedByAction(std::shared_ptr< Action > action=nullptr)
Check if a given action locks the device.
virtual std::string getDeviceName()
bool isLockedByAction(Action &action)
Check if a given action locks the device.
Definition: BaseRobot.hpp:40
Definition: ArduinoDevice.hpp:27