20#include "InertialMeasurementUnit.generated.h"
35 void SetOwner(
AActor *Owner)
override;
41 virtual void PostPhysTick(UWorld *World, ELevelTick TickType,
float DeltaTime)
override;
44 const FVector &Accelerometer);
47 const FVector &Gyroscope);
56 float ComputeCompass();
58 void SetAccelerationStandardDeviation(
const FVector &Vec);
60 void SetGyroscopeStandardDeviation(
const FVector &Vec);
62 void SetGyroscopeBias(
const FVector &Vec);
64 const FVector &GetAccelerationStandardDeviation()
const;
66 const FVector &GetGyroscopeStandardDeviation()
const;
68 const FVector &GetGyroscopeBias()
const;
74 float GetCompassValue()
const;
81 void BeginPlay()
override;
carla::geom::Vector3D GyroscopeValue
Gyroscope value calculated after each PostPhysTick.
carla::geom::Vector3D AccelerometerValue
Accelerometer value calculated after each PostPhysTick.
float CompassValue
Magnetometer value calculated after each PostPhysTick.
FVector StdDevAccel
Standard deviation for acceleration settings.
static const FVector CarlaNorthVector
Based on OpenDRIVE's lon and lat, North is in (0.0f, -1.0f, 0.0f)
FVector BiasGyro
Bias for gyroscope settings.
FVector StdDevGyro
Standard deviation for gyroscope settings.
TOptional< FQuat > MirroredLocalRotation
Multi-GPU secondary: the primary IMU's rotation relative to its parent.
float PrevDeltaTime
Used to compute the acceleration.
std::array< FVector, 2 > PrevLocation
Used to compute the acceleration.
A definition of a Carla Actor with all the variation and attributes.
A description of a Carla Actor with all its variation.
One record of frame data packet 27: the runtime state a sensor of the primary starts this frame's tic...