chrono::sensor::ChFilterGPSUpdate Class Reference

Description

Class for generating GPS data for a GPS sensor.

#include <ChFilterGPSUpdate.h>

Inheritance diagram for chrono::sensor::ChFilterGPSUpdate:
Collaboration diagram for chrono::sensor::ChFilterGPSUpdate:

Public Member Functions

 ChFilterGPSUpdate (ChVector< double > gps_reference, std::shared_ptr< ChGPSNoiseModel > noise_model)
 Class constructor. More...
 
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...
 
- 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

◆ ChFilterGPSUpdate()

chrono::sensor::ChFilterGPSUpdate::ChFilterGPSUpdate ( ChVector< double >  gps_reference,
std::shared_ptr< ChGPSNoiseModel noise_model 
)

Class constructor.

Parameters
gps_referenceThe GPS location of the simulation origin
noise_modelThe noise model for augmenting the GPS data

Member Function Documentation

◆ Apply()

CH_SENSOR_API void chrono::sensor::ChFilterGPSUpdate::Apply ( std::shared_ptr< ChSensor pSensor,
std::shared_ptr< SensorBuffer > &  bufferInOut 
)
virtual

Apply function.

Generates GPS data.

Parameters
pSensorA pointer to the sensor on which the filter is attached.
bufferInOutA buffer that is passed into the filter.

Implements chrono::sensor::ChFilter.

◆ Initialize()

virtual void chrono::sensor::ChFilterGPSUpdate::Initialize ( std::shared_ptr< ChSensor pSensor)
inlinevirtual

Initializes all data needed by the filter access apply function.

Parameters
pSensorA pointer to the sensor.

Implements chrono::sensor::ChFilter.


The documentation for this class was generated from the following files:
  • /builds/uwsbel/chrono/src/chrono_sensor/filters/ChFilterGPSUpdate.h
  • /builds/uwsbel/chrono/src/chrono_sensor/filters/ChFilterGPSUpdate.cpp