AGX Dynamics 2.42.3.0
Loading...
Searching...
No Matches
agxSensor::ISensorOutputHandler Class Referenceabstract

Common interface for sensor output handlers. More...

#include <SensorOutputHandler.h>

+ Inheritance diagram for agxSensor::ISensorOutputHandler:

Public Member Functions

 ISensorOutputHandler ()=default
 Default constructor.
 
ISensorOutput * get (size_t uniqueId)
 Access sensor output instance given the unique id from when it was added.
 
virtual ISensorOutput * getBase (size_t uniqueId)=0
 Access sensor output instance given the unique id from when it was added.
 
template<typename T >
BinaryOutputView< T > view (size_t uniqueId)
 Directly access an output view of the sensor output instance given the unique id from when it was added.
 

Detailed Description

Common interface for sensor output handlers.

Definition at line 24 of file SensorOutputHandler.h.

Constructor & Destructor Documentation

◆ ISensorOutputHandler()

agxSensor::ISensorOutputHandler::ISensorOutputHandler ( )
default

Default constructor.

Member Function Documentation

◆ get()

ISensorOutput * agxSensor::ISensorOutputHandler::get ( size_t  uniqueId)

Access sensor output instance given the unique id from when it was added.

Parameters
uniqueId- unique id for the output instance
Returns
output instance for the given unique id if it exists, otherwise nullptr

◆ getBase()

virtual ISensorOutput * agxSensor::ISensorOutputHandler::getBase ( size_t  uniqueId)
pure virtual

Access sensor output instance given the unique id from when it was added.

Parameters
uniqueId- unique id for the output instance
Returns
output instance for the given unique id if it exists, otherwise nullptr

Implemented in agxSensor::CameraOutputHandler, agxSensor::EncoderOutputHandler, agxSensor::IMUOutputHandler, agxSensor::OdometerOutputHandler, agxSensor::RtOutputHandler, and agxSensor::TriaxialOutputHandler.

◆ view()

template<typename T >
BinaryOutputView< T > agxSensor::ISensorOutputHandler::view ( size_t  uniqueId)

Directly access an output view of the sensor output instance given the unique id from when it was added.

Parameters
uniqueId- unique id for the output instance
Returns
output view of the sensor output if an output with the given uniqueId exists and if the view type aligns with the data, otherwise an empty output view is returned

Definition at line 65 of file SensorOutputHandler.h.

References LOGGER_ENDL, and LOGGER_WARNING.


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