8#include "CoreMinimal.h"
9#include "Kismet/BlueprintFunctionLibrary.h"
15#include "SensorFactory.generated.h"
32struct FCameraParameters;
48 UFUNCTION(BlueprintCallable, BlueprintPure, Category =
"Sensor")
60 UFUNCTION(BlueprintCallable, Category =
"Sensor")
61 static ALidar* SpawnLidarSensor(
const FTransform& transform,
const FString sensorIdentifier,
const FString sensorName,
FLidarParameters lidarParameters,
bool SimulateSensor =
true);
72 UFUNCTION(BlueprintCallable, Category =
"Sensor")
73 static ACamera* SpawnCamera(
const FTransform& transform,
const FString sensorIdentifier,
const FString sensorName,
FCameraBaseParameters cameraParameters,
bool SimulateSensor =
true);
84 UFUNCTION(BlueprintCallable, Category =
"Sensor")
85 static AThermalCamera* SpawnThermalCamera(
const FTransform& transform,
const FString sensorIdentifier,
const FString sensorName,
FThermalCameraParameters thermalCameraParameters,
bool SimulateSensor =
true);
96 UFUNCTION(BlueprintCallable, Category =
"Sensor")
97 static ADepthCamera* SpawnDepthCamera(
const FTransform& transform,
const FString sensorIdentifier,
const FString sensorName,
FDepthCameraParameters depthCameraParameters,
bool SimulateSensor =
true);
108 UFUNCTION(BlueprintCallable, Category =
"Sensor")
120 UFUNCTION(BlueprintCallable, Category =
"Sensor")
121 static ADVSCamera* SpawnDVSCamera(
const FTransform& transform,
const FString sensorIdentifier,
const FString sensorName,
FDVSCameraParameters DVSCameraParameters,
bool SimulateSensor);
132 UFUNCTION(BlueprintCallable, Category =
"Sensor")
133 static ARadar* SpawnRadar(
const FTransform& transform,
const FString sensorIdentifier,
const FString sensorName,
FRadarParameters radarParameters,
bool SimulateSensor =
true);
142 UFUNCTION(BlueprintCallable, Category =
"Sensor")
143 static ACollisionSensor* SpawnCollisionSensor(
const FTransform& transform, AActor* Owner,
const FString sensorIdentifier,
const FString sensorName,
bool SimulateSensor =
true);
153 UFUNCTION(BlueprintCallable, Category =
"Sensor")
154 static ATransformSensor* SpawnTransformSensor(
const FTransform& transform, AActor* Owner,
const FString sensorIdentifier,
const FString sensorName,
bool SimulateSensor =
true);
163 UFUNCTION(BlueprintCallable, Category =
"Sensor")
179 template <
typename T>
180 static T* SpawnSensor(
const FTransform& transform,
const FString& sensorIdentifier,
const FString& sensorName,
bool SpawnSensorModel =
true);
188 static void SetSensorIdentifierAndNameWithFallbacks(
ASensor* sensor,
const FString& sensorIdentifier,
const FString& sensorName);
203 static ASensorModel* SpawnModelClass(TSubclassOf<ASensorModel> modelClass,
ASensor* attachTo);
208 static void Initialize();
static TWeakObjectPtr< USensorMapDataAsset > SensorMapDataAsset