Skip to content

Struct inertialsim::sensors::AccelerometerImuComponents

ClassList > inertialsim > sensors > AccelerometerImuComponents

Helper struct to manage lifetime of components extracted from IMU .More...

  • #include <accelerometer.h>

Inherited by the following classes: inertialsim::sensors::Accelerometer

Public Attributes

Type Name
std::optional< AccelerometerModel > owned_model_
std::optional< AccelerometerSpecification > owned_spec_

Public Functions

Type Name
AccelerometerImuComponents () = default
AccelerometerImuComponents (const IMUModel & model, const IMUSpecification & specification)

Detailed Description

This base class ensures the model and specification are constructed and stored locally before the InertialSensor base class is initialized, preventing dangling references when extracting from IMU composites.

Public Attributes Documentation

variable owned_model_

std::optional<AccelerometerModel> inertialsim::sensors::AccelerometerImuComponents::owned_model_;

variable owned_spec_

std::optional<AccelerometerSpecification> inertialsim::sensors::AccelerometerImuComponents::owned_spec_;

Public Functions Documentation

function AccelerometerImuComponents [½]

inertialsim::sensors::AccelerometerImuComponents::AccelerometerImuComponents () = default

function AccelerometerImuComponents [2/2]

inertialsim::sensors::AccelerometerImuComponents::AccelerometerImuComponents (
    const IMUModel & model,
    const IMUSpecification & specification
) 


The documentation for this class was generated from the following file cpp/include/inertialsim/sensors/accelerometer.h