20 #include "InertialMeasurementUnit.generated.h" 35 void SetOwner(
AActor *Owner)
override;
37 virtual void PostPhysTick(UWorld *World, ELevelTick TickType,
float DeltaTime)
override;
40 const FVector &Accelerometer);
43 const FVector &Gyroscope);
52 float ComputeCompass();
54 void SetAccelerationStandardDeviation(
const FVector &Vec);
56 void SetGyroscopeStandardDeviation(
const FVector &Vec);
58 void SetGyroscopeBias(
const FVector &Vec);
60 const FVector &GetAccelerationStandardDeviation()
const;
62 const FVector &GetGyroscopeStandardDeviation()
const;
64 const FVector &GetGyroscopeBias()
const;
71 void BeginPlay()
override;
FVector StdDevGyro
Standard deviation for gyroscope settings.
A definition of a Carla Actor with all the variation and attributes.
std::array< FVector, 2 > PrevLocation
Used to compute the acceleration.
FVector BiasGyro
Bias for gyroscope settings.
A description of a Carla Actor with all its variation.
float PrevDeltaTime
Used to compute the acceleration.
static const FVector CarlaNorthVector
Based on OpenDRIVE's lon and lat, North is in (0.0f, -1.0f, 0.0f)
FVector StdDevAccel
Standard deviation for acceleration settings.