|
AGX Dynamics 2.42.2.1
|
Common interface for sensor output data. More...
#include <SensorOutput.h>
Inheritance diagram for agxSensor::ISensorOutput:Public Member Functions | |
| ISensorOutput ()=default | |
| Default constructor. | |
| virtual const BinaryOutputBuffer & | getData ()=0 |
| Returns access to the sensor output data. | |
| virtual size_t | getElementSize () const =0 |
| "Element size" is the summed data size of the currently added sensor output fields. | |
| virtual bool | hasUnreadData (bool markAsRead=true)=0 |
| template<typename T > | |
| BinaryOutputView< T > | view () |
| View over data. | |
Static Public Member Functions | |
| template<typename T > | |
| static bool | verifySize (size_t elementSize) |
| Checks whether sizeof(T) == elementSize and issues a warning if it is not. | |
Common interface for sensor output data.
Definition at line 26 of file SensorOutput.h.
|
default |
Default constructor.
|
pure virtual |
Returns access to the sensor output data.
This call blocks until the sensor data is fully assembled and available.
Implemented in agxSensor::CameraColorOutput, agxSensor::CameraDepthOutput, agxSensor::EncoderOutput, agxSensor::IMUOutput, agxSensor::OdometerOutput, agxSensor::RtOutput, agxSensor::TriaxialOutput, and agxSensor::ICameraOutput.
|
pure virtual |
"Element size" is the summed data size of the currently added sensor output fields.
Implemented in agxSensor::CameraColorOutput, agxSensor::CameraDepthOutput, agxSensor::EncoderOutput, agxSensor::IMUOutput, agxSensor::OdometerOutput, agxSensor::RtOutput, agxSensor::TriaxialOutput, and agxSensor::ICameraOutput.
|
pure virtual |
| markAsRead | - true to reset unread state, resulting in hasUnreadData returning false until new data is available. False to not mark the current data as read. |
Implemented in agxSensor::CameraColorOutput, agxSensor::CameraDepthOutput, agxSensor::EncoderOutput, agxSensor::IMUOutput, agxSensor::OdometerOutput, agxSensor::RtOutput, agxSensor::TriaxialOutput, and agxSensor::ICameraOutput.
|
static |
Checks whether sizeof(T) == elementSize and issues a warning if it is not.
Definition at line 81 of file SensorOutput.h.
References LOGGER_ENDL, and LOGGER_WARNING.
| BinaryOutputView< T > agxSensor::ISensorOutput::view |
View over data.
The size of type T has to match the element size of the added sensor output fields. If the size doesn't match, an empty view is returned. This call blocks until the sensor data is fully assembled and available.
Definition at line 93 of file SensorOutput.h.