Agrarsense
Public Member Functions | Public Attributes | List of all members
FOverlapSensorParameters Struct Reference

#include <OverlapSensorParameters.h>

Public Member Functions

FString ToHumanReadable (const FTransform &TransformToLog) const
 

Public Attributes

AActor * OwningActor = nullptr
 
FTransform Transform
 
FVector RelativePosition = FVector(0.0f, 0.0f, 0.0f)
 
ETriggerShape TriggerShape = ETriggerShape::Sphere
 
FVector Size = FVector(1.0f, 1.0f, 1.0f)
 
bool CreateROSTopic = true
 

Detailed Description

Definition at line 20 of file OverlapSensorParameters.h.

Member Function Documentation

◆ ToHumanReadable()

FString FOverlapSensorParameters::ToHumanReadable ( const FTransform &  TransformToLog) const
inline

Definition at line 42 of file OverlapSensorParameters.h.

43 {
44 auto T = TransformToLog.GetTranslation();
45 auto R = TransformToLog.GetRotation();
46 auto S = TransformToLog.GetScale3D();
47
48 FString Output = FString::Printf(TEXT("Translation: %f %f %f\n"), T.X, T.Y, T.Z);
49 Output.Appendf(TEXT("Rotation: X %f Y %f Z %f\n"), R.X, R.Y, R.Z);
50 Output.Appendf(TEXT("Scale3D: %f %f %f"), S.X, S.Y, S.Z);
51
52 return Output;
53 }

Member Data Documentation

◆ CreateROSTopic

bool FOverlapSensorParameters::CreateROSTopic = true

Definition at line 40 of file OverlapSensorParameters.h.

Referenced by AOverlapSensor::Init().

◆ OwningActor

AActor* FOverlapSensorParameters::OwningActor = nullptr

Definition at line 25 of file OverlapSensorParameters.h.

Referenced by AVehicle::BeginPlay(), and AOverlapSensor::Init().

◆ RelativePosition

FVector FOverlapSensorParameters::RelativePosition = FVector(0.0f, 0.0f, 0.0f)

◆ Size

FVector FOverlapSensorParameters::Size = FVector(1.0f, 1.0f, 1.0f)

◆ Transform

FTransform FOverlapSensorParameters::Transform

Definition at line 28 of file OverlapSensorParameters.h.

◆ TriggerShape

ETriggerShape FOverlapSensorParameters::TriggerShape = ETriggerShape::Sphere

Definition at line 34 of file OverlapSensorParameters.h.

Referenced by AVehicle::BeginPlay(), and AOverlapSensor::Init().


The documentation for this struct was generated from the following file: