8#include "CoreMinimal.h"
11#include "ROSIntegration/Public/std_msgs/String.h"
13#include "CollisionSensor.generated.h"
26 return FString::Printf(TEXT(
"%s, %s, %s, %s, %s"), *
Actor, *
OtherActor, *X, *Y, *Z);
52 UFUNCTION(BlueprintCallable)
53 void Init(AActor* NewOwner,
bool SimulateSensor =
true);
66 virtual void BeginPlay()
override;
68 virtual void EndPlay(
const EEndPlayReason::Type EndPlayReason)
override;
72 void SendCollisionData(
const FString& CollisionDataString);
75 void OnCollisionEvent(AActor* Actor, AActor* OtherActor, FVector NormalImpulse, const FHitResult& Hit);
78 TWeakObjectPtr<AActor> CurrentOwner;
80 TSharedPtr<ROSMessages::std_msgs::String> CollisionMessage;
virtual ESensorTypes GetSensorType() const override
FString ToStringHumanReadable()