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)
 
FVector Size = FVector(1.0f, 1.0f, 1.0f)
 
bool CreateROSTopic = true
 

Detailed Description

Definition at line 13 of file OverlapSensorParameters.h.

Member Function Documentation

◆ ToHumanReadable()

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

Definition at line 32 of file OverlapSensorParameters.h.

33 {
34 auto T = TransformToLog.GetTranslation();
35 auto R = TransformToLog.GetRotation();
36 auto S = TransformToLog.GetScale3D();
37
38 FString Output = FString::Printf(TEXT("Translation: %f %f %f\n"), T.X, T.Y, T.Z);
39 Output.Appendf(TEXT("Rotation: X %f Y %f Z %f\n"), R.X, R.Y, R.Z);
40 Output.Appendf(TEXT("Scale3D: %f %f %f"), S.X, S.Y, S.Z);
41
42 return Output;
43 }

Member Data Documentation

◆ CreateROSTopic

bool FOverlapSensorParameters::CreateROSTopic = true

Definition at line 30 of file OverlapSensorParameters.h.

Referenced by AOverlapSensor::Init().

◆ OwningActor

AActor* FOverlapSensorParameters::OwningActor = nullptr

Definition at line 18 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 21 of file OverlapSensorParameters.h.


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