Skip to content

Struct inertialsim::sensors::GyroImuComponents

ClassList > inertialsim > sensors > GyroImuComponents

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

  • #include <gyro.h>

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

Public Attributes

Type Name
std::optional< GyroModel > owned_model_
std::optional< GyroSpecification > owned_spec_

Public Functions

Type Name
GyroImuComponents () = default
GyroImuComponents (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<GyroModel> inertialsim::sensors::GyroImuComponents::owned_model_;

variable owned_spec_

std::optional<GyroSpecification> inertialsim::sensors::GyroImuComponents::owned_spec_;

Public Functions Documentation

function GyroImuComponents [½]

inertialsim::sensors::GyroImuComponents::GyroImuComponents () = default

function GyroImuComponents [2/2]

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


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