SensorDeviceTemplate< SensorValueType > Class Template Reference

#include <RobotAPI/components/units/RobotUnit/Devices/SensorDevice.h>

+ Inheritance diagram for SensorDeviceTemplate< SensorValueType >:

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 TgetSensorValue () 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
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...

Detailed Description

template<class SensorValueType>
class armarx::SensorDeviceTemplate< SensorValueType >

Definition at line 111 of file SensorDevice.h.

Constructor & Destructor Documentation

◆ SensorDeviceTemplate()

SensorDeviceTemplate ( const std::string &  name)

Definition at line 117 of file SensorDevice.h.

Member Function Documentation

◆ getSensorValue()

const SensorValueType * getSensorValue ( ) const
The SensorDevice's sensor value

Implements SensorDevice.

Definition at line 144 of file SensorDevice.h.

Member Data Documentation

◆ sensorValue

SensorValueType sensorValue

Definition at line 123 of file SensorDevice.h.

The documentation for this class was generated from the following file: