13 PrimaryActorTick.bCanEverTick =
false;
37 Super::EndPlay(EndPlayReason);
55 NormalImpulse *= 1e-2;
56 if (NormalImpulse.Size() > 200)
61 OtherActor->GetName(),
void SendCollisionData(const FString &CollisionDataString)
TSharedPtr< ROSMessages::std_msgs::String > CollisionMessage
void Init(AActor *NewOwner, bool SimulateSensor=true)
ACollisionSensor(const FObjectInitializer &ObjectInitializer)
virtual void BeginPlay() override
void OnCollisionEvent(AActor *Actor, AActor *OtherActor, FVector NormalImpulse, const FHitResult &Hit)
virtual void EndPlay(const EEndPlayReason::Type EndPlayReason) override
TWeakObjectPtr< AActor > CurrentOwner
bool CanSimulateSensor() const
void SetSimulateSensor(bool SimulateSensor)
UTopic * GetROSTopic() const
bool IsROSConnected() const
void WriteToLogFile(const FString &Message)
virtual void CreateROSTopic()
static void Log(const FString &Message, bool LogToTextFile=true, bool LogToROS=true)
FString ToStringHumanReadable()