8#include "CoreMinimal.h"
9#include "Engine/EngineTypes.h"
10#include "Components/PrimitiveComponent.h"
16#include "ROSIntegration/Public/std_msgs/String.h"
18#include "OverlapSensor.generated.h"
36 UFUNCTION(BlueprintCallable)
51 UFUNCTION(BlueprintCallable)
52 void SetOverlapBounds(
const FVector& NewSize);
57 UFUNCTION(BlueprintCallable)
58 void SetVisualizeOverlapArea(
bool Visualize);
63 UFUNCTION(BlueprintCallable)
64 void SetOverlapRelativePosition(
const FVector& Vector);
73 UFUNCTION(BlueprintCallable)
74 void SetOverlapResponseToAllChannels(
const ECollisionResponse Response);
76 UFUNCTION(BlueprintCallable)
77 bool IsVisualizingOverlapArea()
const
84 return StructToString(Parameters);
90 void OnOverlapBegin(UPrimitiveComponent* OverlappedComponent, AActor* OtherActor, UPrimitiveComponent* OtherComp,
91 int32 OtherBodyIndex,
bool bFromSweep, const FHitResult& SweepResult);
94 void OnOverlapEnd(UPrimitiveComponent* OverlappedComponent, AActor* OtherActor, UPrimitiveComponent* OtherComp,
95 int32 OtherBodyIndex);
97 UPROPERTY(VisibleAnywhere)
98 UBoundsVisualizerComponent* BoundsComponent =
nullptr;
104 virtual
void EndPlay(const EEndPlayReason::Type EndPlayReason) override;
106 void BuildAndSendMessage(const FString& Prefix, AActor* Actor);
108 FString TryGetID(AActor* Actor);
110 TSharedPtr<ROSMessages::std_msgs::String> ROSMessage;
121 bool IsVisible = false;
virtual FString GetParametersAsString() const override
virtual ESensorTypes GetSensorType() const override
virtual void EndPlay(const EEndPlayReason::Type EndPlayReason) override
virtual void BeginPlay() override