Description
template<class BufferType, class UserBufferType>
class chrono::sensor::ChFilterAccess< BufferType, UserBufferType >
Filter for accessing data from the sensor.
#include <ChFilterAccess.h>
Public Member Functions | |
ChFilterAccess (std::string name={}) | |
Class constructor. More... | |
virtual | ~ChFilterAccess () |
Virtual class destructor. | |
virtual void | Apply (std::shared_ptr< ChSensor > pSensor, std::shared_ptr< SensorBuffer > &bufferInOut) |
Apply function. More... | |
virtual void | Initialize (std::shared_ptr< ChSensor > pSensor) |
Initializes all data needed by the filter access apply function. More... | |
UserBufferType | GetBuffer () |
User calls this to get access and owndership of the buffer memory on the host. More... | |
template<> | |
CH_SENSOR_API void | Apply (std::shared_ptr< ChSensor > pSensor, std::shared_ptr< SensorBuffer > &bufferInOut) |
Virtual apply function. More... | |
template<> | |
CH_SENSOR_API void | Apply (std::shared_ptr< ChSensor > pSensor, std::shared_ptr< SensorBuffer > &bufferInOut) |
Virtual apply function. More... | |
template<> | |
CH_SENSOR_API void | Apply (std::shared_ptr< ChSensor > pSensor, std::shared_ptr< SensorBuffer > &bufferInOut) |
Virtual apply function. More... | |
template<> | |
CH_SENSOR_API void | Apply (std::shared_ptr< ChSensor > pSensor, std::shared_ptr< SensorBuffer > &bufferInOut) |
Virtual apply function. More... | |
template<> | |
CH_SENSOR_API void | Apply (std::shared_ptr< ChSensor > pSensor, std::shared_ptr< SensorBuffer > &bufferInOut) |
Virtual apply function. More... | |
template<> | |
CH_SENSOR_API void | Apply (std::shared_ptr< ChSensor > pSensor, std::shared_ptr< SensorBuffer > &bufferInOut) |
Virtual apply function. More... | |
Public Member Functions inherited from chrono::sensor::ChFilter | |
virtual | ~ChFilter () |
Virtual class desctructor. | |
std::string & | Name () |
Accesses the name of the filter. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from chrono::sensor::ChFilter | |
ChFilter (std::string name) | |
protected constructor for the filter which requires a name as input. More... | |
Constructor & Destructor Documentation
◆ ChFilterAccess()
|
inline |
Class constructor.
- Parameters
-
name String name of the filter. Defaults to empty.
Member Function Documentation
◆ Apply() [1/7]
|
virtual |
Virtual apply function.
This will be called sequentially for all filters in a filter list. This should contain the necessary processing during the simulation. This must be threadsafe when applied to a ChOptixSensor.
- Parameters
-
pSensor A pointer to the sensor to which it is attached bufferInOut The pointer that is passed from one filter to the next. Can be changed by the filter when augmentation does not happen in place.
Implements chrono::sensor::ChFilter.
◆ Apply() [2/7]
|
virtual |
Apply function.
Moves data from the device into the lag buffer and presents data to the user if the data is ready based on the time.
- Parameters
-
pSensor A pointer to the sensor on which the filter is attached. bufferInOut A buffer that is passed into the filter. This data is what will be made available for the user.
Implements chrono::sensor::ChFilter.
◆ Apply() [3/7]
|
virtual |
Virtual apply function.
This will be called sequentially for all filters in a filter list. This should contain the necessary processing during the simulation. This must be threadsafe when applied to a ChOptixSensor.
- Parameters
-
pSensor A pointer to the sensor to which it is attached bufferInOut The pointer that is passed from one filter to the next. Can be changed by the filter when augmentation does not happen in place.
Implements chrono::sensor::ChFilter.
◆ Apply() [4/7]
|
virtual |
Virtual apply function.
This will be called sequentially for all filters in a filter list. This should contain the necessary processing during the simulation. This must be threadsafe when applied to a ChOptixSensor.
- Parameters
-
pSensor A pointer to the sensor to which it is attached bufferInOut The pointer that is passed from one filter to the next. Can be changed by the filter when augmentation does not happen in place.
Implements chrono::sensor::ChFilter.
◆ Apply() [5/7]
|
virtual |
Virtual apply function.
This will be called sequentially for all filters in a filter list. This should contain the necessary processing during the simulation. This must be threadsafe when applied to a ChOptixSensor.
- Parameters
-
pSensor A pointer to the sensor to which it is attached bufferInOut The pointer that is passed from one filter to the next. Can be changed by the filter when augmentation does not happen in place.
Implements chrono::sensor::ChFilter.
◆ Apply() [6/7]
|
virtual |
Virtual apply function.
This will be called sequentially for all filters in a filter list. This should contain the necessary processing during the simulation. This must be threadsafe when applied to a ChOptixSensor.
- Parameters
-
pSensor A pointer to the sensor to which it is attached bufferInOut The pointer that is passed from one filter to the next. Can be changed by the filter when augmentation does not happen in place.
Implements chrono::sensor::ChFilter.
◆ Apply() [7/7]
|
virtual |
Virtual apply function.
This will be called sequentially for all filters in a filter list. This should contain the necessary processing during the simulation. This must be threadsafe when applied to a ChOptixSensor.
- Parameters
-
pSensor A pointer to the sensor to which it is attached bufferInOut The pointer that is passed from one filter to the next. Can be changed by the filter when augmentation does not happen in place.
Implements chrono::sensor::ChFilter.
◆ GetBuffer()
|
inline |
User calls this to get access and owndership of the buffer memory on the host.
user can store the returned pointer or modify as desired, user has the ownership of the memory. Underlying framework has released all ownership. Filter graph will create new memory during the next run. Returns a user buffer that is safe for the user to access.
◆ Initialize()
|
inlinevirtual |
Initializes all data needed by the filter access apply function.
- Parameters
-
pSensor A pointer to the sensor.
Implements chrono::sensor::ChFilter.
The documentation for this class was generated from the following file:
- /builds/uwsbel/chrono/src/chrono_sensor/filters/ChFilterAccess.h