26 void SetParams(
const float GenCamMin,
const float GenCamMax,
const bool FixedRate);
31 const float noise_lon_stddev,
32 const float noise_alt_stddev,
33 const float noise_head_stddev,
34 const float noise_lat_bias,
35 const float noise_lon_bias,
36 const float noise_alt_bias,
37 const float noise_head_bias);
38 bool Trigger(
float DeltaSeconds);
Base class for CARLA wheeled vehicles.
void CreateITSPduHeader(CAM_t &message)
const carla::geom::Vector3D ComputeAccelerometerNoise(const FVector &Accelerometer)
FVector GetReferencePosition()
void SetGNSSDeviation(const float noise_lat_stddev, const float noise_lon_stddev, const float noise_alt_stddev, const float noise_head_stddev, const float noise_lat_bias, const float noise_lon_bias, const float noise_alt_bias, const float noise_head_bias)
UCarlaEpisode * mCarlaEpisode
void SetVelDeviation(const float noise_vel_stddev_x)
float mGenerationInterval
const long mProtocolVersion
void SetOwner(UWorld *world, AActor *Owner)
bool Trigger(float DeltaSeconds)
void SetAccelerationStandardDeviation(const FVector &Vec)
void SetYawrateDeviation(const float noise_yawrate_stddev, const float noise_yawrate_bias)
unsigned int mGenCamLowDynamicsCounter
bool CheckHeadingDelta(float DeltaSeconds)
carla::geom::Vector3D ComputeAccelerometer(const float DeltaTime)
ITSContainer::StationType_t GetStationType()
std::array< FVector, 2 > PrevLocation
Used to compute the acceleration
std::chrono::milliseconds mGenerationDelta0
FVector StdDevAccel
Standard deviation for acceleration settings.
CaService(URandomEngine *random_engine)
FCarlaActor * mCarlaActor
unsigned int mGenCamLowDynamicsLimit
carla::geom::GeoLocation CurrentGeoReference
bool CheckPositionDelta(float DeltaSeconds)
void AddLowFrequencyContainer(CAMContainer::LowFrequencyContainer_t &lfc)
void AddBasicVehicleContainerHighFrequency(CAMContainer::HighFrequencyContainer_t &hfc, float DeltaTime)
URandomEngine * mRandomEngine
ITSContainer::SpeedValue_t BuildSpeedValue(const float vel)
void GenerateCamMessage(float DeltaTime)
bool CheckSpeedDelta(float DeltaSeconds)
ACarlaWheeledVehicle * mVehicle
const float ComputeYawNoise(const FVector &Gyroscope)
float PrevDeltaTime
Used to compute the acceleration
void SetParams(const float GenCamMin, const float GenCamMax, const bool FixedRate)
void AddRSUContainerHighFrequency(CAMContainer::HighFrequencyContainer_t &hfc)
double GetFVectorAngle(const FVector &a, const FVector &b)
CAM_t CreateCooperativeAwarenessMessage(float DeltaTime)
bool CheckTriggeringConditions(float DeltaSeconds)
float mLastLowCamTimeStamp
void AddCooperativeAwarenessMessage(CAMContainer::CoopAwareness_t &CoopAwarenessMessage, float DeltaTime)
void AddBasicContainer(CAMContainer::BasicContainer_t &BasicContainer)
A view over an actor and its properties.