|
#include <RobotAPI/components/units/RobotUnit/Devices/SensorDevice.h>
Public Member Functions | |
const SensorValueType * | getSensorValue () const final override |
SensorDeviceTemplate (const std::string &name) | |
Public Member Functions inherited from SensorDevice | |
virtual std::string | getReportingFrame () const |
template<class T > | |
const T * | getSensorValue () const |
std::string | getSensorValueType (bool withoutNamespaceSpecifier=false) const |
Returns the SensorValue's type as a string. More... | |
virtual void | rtReadSensorValues (const IceUtil::Time &sensorValuesTimestamp, const IceUtil::Time &timeSinceLastIteration) |
This is a hook for implementations to read the sensor value from a bus. More... | |
SensorDevice (const std::string &name) | |
Create a SensorDevice with the given name. More... | |
Public Member Functions inherited from DeviceBase | |
DeviceBase (const std::string &name) | |
Create a Device with the given name. More... | |
const std::string & | getDeviceName () const |
const std::set< std::string > & | getTags () const |
virtual bool | hasError () |
bool | hasTag (const std::string &tag) const |
const char * | rtGetDeviceName () const |
virtual | ~DeviceBase ()=default |
Public Attributes | |
SensorValueType | sensorValue |
Additional Inherited Members | |
Static Public Attributes inherited from SensorDevice | |
static const SensorDevicePtr | NullPtr {nullptr} |
A static const nullptr in case a const ref to a nullptr needs to be returned. More... | |
Protected Member Functions inherited from DeviceBase | |
void | addDeviceTag (const std::string &tag) |
adds the given tag to the Device More... | |
Definition at line 111 of file SensorDevice.h.
|
inline |
Definition at line 117 of file SensorDevice.h.
|
inlinefinaloverridevirtual |
Implements SensorDevice.
Definition at line 144 of file SensorDevice.h.
SensorValueType sensorValue |
Definition at line 123 of file SensorDevice.h.