Agrarsense
LidarNoiseModel.h
Go to the documentation of this file.
1// Copyright(c) 2022 FrostBit Software Lab at the Lapland University of Applied Sciences
2//
3// This work is licensed under the terms of the MIT license.
4// For a copy, see <https://opensource.org/licenses/MIT>.
5
6#pragma once
7
8#include "CoreMinimal.h"
9#include "Engine/HitResult.h"
10
12
29class AGRARSENSE_API LidarNoiseModel
30{
31
32public:
33
43 static bool CheckSnowflakeHit(FHitResult& HitInfo, const FVector EndTrace, const FVector LidarLocation, const FWeatherParameters& WeatherParameters);
44
45private:
46
51 static bool CheckSnowflakeHitWinterSim(FHitResult& HitInfo, const float PrecipitationAmount, const float ParticleSize, const FVector EndTrace, const FVector LidarLocation);
52
59 static float CalculatePrecipitationClass(const float PrecipitationAmount, float ParticleSize);
60};