chrono::sensor::ChMagnetometerSensor Class Reference
Description
Magnetometer class.
The data is collected from the physical quantities computed for the parent object accounting for the offset pose. This sensor operates in lock-step with the Chrono simulation.
#include <ChIMUSensor.h>
Inherits chrono::sensor::ChDynamicSensor.
Public Member Functions | |
ChMagnetometerSensor (std::shared_ptr< chrono::ChBody > parent, float updateRate, chrono::ChFrame< double > offsetPose, std::shared_ptr< ChNoiseModel > noise_model, ChVector3d gps_reference) | |
Class constructor for a magnetometer. More... | |
~ChMagnetometerSensor () | |
Class destructor. | |
virtual void | PushKeyFrame () |
virtual void | ClearKeyFrames () |
const ChVector3d | GetGPSReference () const |
Get the GPS reference location. | |
Friends | |
class | ChFilterMagnetometerUpdate |
Constructor & Destructor Documentation
◆ ChMagnetometerSensor()
CH_SENSOR_API chrono::sensor::ChMagnetometerSensor::ChMagnetometerSensor | ( | std::shared_ptr< chrono::ChBody > | parent, |
float | updateRate, | ||
chrono::ChFrame< double > | offsetPose, | ||
std::shared_ptr< ChNoiseModel > | noise_model, | ||
ChVector3d | gps_reference | ||
) |
Class constructor for a magnetometer.
- Parameters
-
parent Body to which the sensor is attached. updateRate Rate at which the sensor should update. offsetPose Relative position and orientation of the sensor with respect to its parent object. noise_model Noise model for the sensor to use when augmentating data gps_reference the GPS reference location for the simulation origin
The documentation for this class was generated from the following files:
- /builds/uwsbel/chrono/src/chrono_sensor/sensors/ChIMUSensor.h
- /builds/uwsbel/chrono/src/chrono_sensor/sensors/ChIMUSensor.cpp