Agrarsense
SensorUtilities.h
Go to the documentation of this file.
1// Copyright (c) 2023 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 "Kismet/BlueprintFunctionLibrary.h"
10
11#include "SensorUtilities.generated.h"
12
13class AVehicle;
14class UPrimitiveComponent;
15
19UCLASS()
20class AGRARSENSE_API USensorUtilities : public UBlueprintFunctionLibrary
21{
22 GENERATED_BODY()
23
24public:
25
29 UFUNCTION(BlueprintCallable, meta = (WorldContext = "WorldContextObject"), Category = "Sensor")
30 static void EnableAllSensors(const UObject* WorldContextObject);
31
35 UFUNCTION(BlueprintCallable, meta = (WorldContext = "WorldContextObject"), Category = "Sensor")
36 static void DisableAllSensors(const UObject* WorldContextObject);
37
41 UFUNCTION(BlueprintCallable, meta = (WorldContext = "WorldContextObject"), Category = "Sensor")
42 static void SetSimulateAllSensors(const UObject* WorldContextObject, bool SimulateSensors);
43
48 UFUNCTION(BlueprintCallable, meta = (WorldContext = "WorldContextObject"), Category = "Sensor")
49 static void DestroyAllSensors(const UObject* WorldContextObject, bool DestroyDefaultVehicleSensors = false);
50
54 UFUNCTION(BlueprintCallable, Category = "Sensor")
55 static void EnableSensorsAttachedToVehicle(AVehicle* Vehicle);
56
60 UFUNCTION(BlueprintCallable, Category = "Sensor")
61 static void DisableSensorsAttachedToVehicle(AVehicle* Vehicle);
62
66 UFUNCTION(BlueprintCallable, Category = "Sensor")
67 static void SetSimulateSensorsAttachedToVehicle(AVehicle* Vehicle, bool SimulateSensors);
68
74 UFUNCTION(BlueprintCallable, Category = "Sensor")
75 static void HideComponentForAllCameraSensors(UPrimitiveComponent* PrimitiveComponent);
76
77};