#include <arpirobot/core/device/BaseDevice.hpp>
|
virtual void | begin ()=0 |
|
virtual bool | isEnabled ()=0 |
|
virtual bool | shouldMatchRobotState ()=0 |
|
virtual bool | shouldDisableWithWatchdog ()=0 |
|
virtual void | enable ()=0 |
|
virtual void | disable ()=0 |
|
|
bool | initialized = false |
|
std::string | deviceName |
|
|
class | Action |
|
class | BaseRobot |
|
Base class for any device connected to the raspberry pi.
◆ getDeviceName()
virtual std::string arpirobot::BaseDevice::getDeviceName |
( |
| ) |
|
|
virtual |
Get the human-readable name of the device
- Returns
- the devices human readable name
◆ isLockedByAction() [1/2]
bool arpirobot::BaseDevice::isLockedByAction |
( |
Action & |
action | ) |
|
Check if a given action locks the device.
- Parameters
-
action | The action to compare to. |
- Returns
- true If the device is locked by the action
-
false If the device is not locked the action
◆ isLockedByAction() [2/2]
bool arpirobot::BaseDevice::isLockedByAction |
( |
std::shared_ptr< Action > |
action = nullptr | ) |
|
Check if a given action locks the device.
- Parameters
-
action | The action to compare to. If nullptr this function checks if any action locks the device |
- Returns
- true If the device is locked by the action
-
false If the device is not locked the action
The documentation for this class was generated from the following file: