17 #include "Radar.generated.h" 31 ARadar(const FObjectInitializer &ObjectInitializer);
35 UFUNCTION(BlueprintCallable, Category = "
Radar")
36 void SetHorizontalFOV(
float NewHorizontalFOV);
38 UFUNCTION(BlueprintCallable, Category = "
Radar")
39 void SetVerticalFOV(
float NewVerticalFOV);
41 UFUNCTION(BlueprintCallable, Category = "
Radar")
42 void SetRange(
float NewRange);
44 UFUNCTION(BlueprintCallable, Category = "
Radar")
45 void SetPointsPerSecond(
int NewPointsPerSecond);
49 void BeginPlay() override;
52 virtual
void PostPhysTick(UWorld *World, ELevelTick TickType,
float DeltaTime) override;
54 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category="Detection")
57 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category="Detection")
60 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category="Detection")
63 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category="Detection")
68 void CalculateCurrentVelocity(const
float DeltaTime);
70 void SendLineTraces(
float DeltaTime);
72 float CalculateRelativeVelocity(const FHitResult& OutHit, const FVector& RadarLocation);
76 FCollisionQueryParams TraceParams;
78 FVector CurrentVelocity;
std::vector< RayData > Rays
This file contains definitions of common data structures used in traffic manager. ...
A definition of a Carla Actor with all the variation and attributes.
A ray-cast based Radar sensor.
A description of a Carla Actor with all its variation.
FVector2D AzimuthAndElevation