#include </home/runner/work/mars_lib/mars_lib/source/mars/include/mars/sensors/imu/imu_sensor_class.h>
◆ ImuSensorClass()
EIGEN_MAKE_ALIGNED_OPERATOR_NEW mars::ImuSensorClass::ImuSensorClass |
( |
const std::string & |
name | ) |
|
|
inline |
30 std::cout <<
"Created: [" << this->
name_ <<
"] Sensor" << std::endl;
std::string name_
Name of the individual sensor instance.
Definition: sensor_abs_class.h:23
◆ ~ImuSensorClass()
virtual mars::ImuSensorClass::~ImuSensorClass |
( |
| ) |
|
|
virtualdefault |
◆ get_covariance()
Eigen::MatrixXd mars::ImuSensorClass::get_covariance |
( |
const std::shared_ptr< void > & |
sensor_data | ) |
|
|
inlinevirtual |
get_covariance Resolves a void pointer to the covariance matrix of the corresponding sensor type Each sensor is responsible to cast its own data type
- Parameters
-
- Returns
- Covariance matrix contained in the sensor data struct
Implements mars::SensorInterface.
◆ set_initial_calib()
void mars::ImuSensorClass::set_initial_calib |
( |
std::shared_ptr< void > |
calibration | ) |
|
|
inlinevirtual |
set_initial_calib Sets the calibration of an individual sensor
- Parameters
-
Implements mars::SensorInterface.
◆ Initialize()
BufferDataType mars::ImuSensorClass::Initialize |
( |
const Time & |
timestamp, |
|
|
std::shared_ptr< void > |
measurement, |
|
|
std::shared_ptr< CoreType > |
latest_core_data |
|
) |
| |
|
inlinevirtual |
Initialize the state of an individual sensor.
- Parameters
-
timestamp | current timestamp |
measurement | current sensor measurement |
latest_core_data | |
- Returns
Implements mars::SensorInterface.
◆ CalcUpdate()
bool mars::ImuSensorClass::CalcUpdate |
( |
const Time & |
timestamp, |
|
|
std::shared_ptr< void > |
measurement, |
|
|
const CoreStateType & |
prior_core_state_data, |
|
|
std::shared_ptr< void > |
latest_sensor_data, |
|
|
const Eigen::MatrixXd & |
prior_cov, |
|
|
BufferDataType * |
new_state_data |
|
) |
| |
|
inlinevirtual |
CalcUpdate Calculates the update for an individual sensor definition.
- Parameters
-
timestamp | current timestamp |
measurement | current sensor measurement |
prior_core_state_data | |
latest_sensor_data | |
prior_cov | Prior covariance containing core, sensor and sensor cross covariance |
new_state_data | Updated state data |
- Returns
- True if the update was successful, false if the update was rejected
Implements mars::SensorInterface.
The documentation for this class was generated from the following file: