Agrarsense
|
#include <LidarNoiseModel.h>
Static Public Member Functions | |
static bool | CheckSnowflakeHit (FHitResult &HitInfo, const FVector EndTrace, const FVector LidarLocation, const FWeatherParameters &WeatherParameters) |
Static Private Member Functions | |
static bool | CheckSnowflakeHitWinterSim (FHitResult &HitInfo, const float PrecipitationAmount, const float ParticleSize, const FVector EndTrace, const FVector LidarLocation) |
static float | CalculatePrecipitationClass (const float PrecipitationAmount, float ParticleSize) |
LidarNoiseModel is a static class for checking whether linetrace "hit" snowflake based on certain Simulation weather parameters and selected noise model formula.
WinterSim formula: Wintersim Lidar noise model formula was originally created in WinterSim project during the project in 2020-2022. See more about the project and Lidar analysis here: https://a3s.fi/swift/v1/AUTH_8811c563a60e4395828a2393f44e064b/website_documents/wintersim/WinterSim_LidarAnalysis.pdf https://www.frostbit.fi/en/portfolio/wintersim-2/ https://wintersim.fi/ The WinterSim formula was created by analysing gathered Lidar, camera and weather data during winter 2021-2022 with Ouster OS1 Lidar sensor in various weather conditions. The noise model creates noise to the end Lidar pointcloud output when following simulation weather conditions are met: 1) Temperature is below zero 2) Precipitation is over zero
Definition at line 29 of file LidarNoiseModel.h.
|
staticprivate |
Calculates "precipitation class" based on rain and particle size.
PrecipitationAmount | The amount of rain affecting the precipitation class, ranging from 0.0 to 100.0. |
ParticleSize | The size of the precipitation particles, ranging from 0.0 to 100.0. |
Definition at line 57 of file LidarNoiseModel.cpp.
Referenced by CheckSnowflakeHitWinterSim().
|
static |
Evaluates whether a linetrace "intersects" with a snowflake within specific weather conditions, utilizing a designated noise model.
NoiseModel | The noise model formula used to simulate lidar detection inaccuracies. |
HitInfo | Reference to store the hit result details. |
EndTrace | The end point of the linetrace. |
LidarLocation | The starting point of the linetrace from the lidar device. |
WeatherParameters | The environmental conditions affecting the detection probability. |
Definition at line 12 of file LidarNoiseModel.cpp.
References CheckSnowflakeHitWinterSim(), FWeatherParameters::Precipitation, and FWeatherParameters::PrecipitationParticleSize.
Referenced by ALidar::ShootLaser().
|
staticprivate |
Check snowflake hit using the WinterSim noise formula.
Definition at line 17 of file LidarNoiseModel.cpp.
References CalculatePrecipitationClass().
Referenced by CheckSnowflakeHit().