Agrarsense
|
#include <DataCapture.h>
Public Member Functions | |
ADataCapture (const FObjectInitializer &ObjectInitializer) | |
void | SetupDataCapture (FCaptureData NewCaptureData) |
Protected Member Functions | |
virtual void | BeginPlay () override |
virtual void | Tick (float DeltaTime) override |
virtual void | EndPlay (const EEndPlayReason::Type EndPlayReason) override |
Private Member Functions | |
void | Capture () |
void | UpdatePositions (const FTransform &Transform) |
void | CaptureDataNow () |
void | DestroySensors () |
void | ComputeAndSetZFromGround (FTransform &Transform) |
Private Attributes | |
FCaptureData | CaptureData |
ECaptureStep | CaptureStep = ECaptureStep::WaitingForPositionUpdate |
int32 | FrameCounter = 0 |
bool | NeedsPositionUpdate = true |
Definition at line 78 of file DataCapture.h.
ADataCapture::ADataCapture | ( | const FObjectInitializer & | ObjectInitializer | ) |
Definition at line 17 of file DataCapture.cpp.
|
overrideprotectedvirtual |
Definition at line 158 of file DataCapture.cpp.
|
private |
Definition at line 177 of file DataCapture.cpp.
References CaptureData, CaptureDataNow(), FCaptureData::CapturePositions, CaptureStep, Capturing, FCaptureData::CurrentCaptureIndex, Destroy, DestroySensors(), FrameCounter, FCaptureData::FramesToKeepInSamePosition, UpdatePositions(), WaitingAfterCapture, WaitingAfterPositionUpdate, and WaitingForPositionUpdate.
Referenced by Tick().
|
private |
Definition at line 266 of file DataCapture.cpp.
References FCaptureData::Cameras, CaptureData, FCaptureData::Lidars, ACamera::SaveCurrentFrameToDisk(), and ALidar::SaveCurrentPointCloudToDisk().
Referenced by Capture().
|
private |
Definition at line 299 of file DataCapture.cpp.
References Transform.
Referenced by SetupDataCapture().
|
private |
Definition at line 287 of file DataCapture.cpp.
References CaptureData, and FCaptureData::Sensors.
Referenced by Capture(), and SetupDataCapture().
|
overrideprotectedvirtual |
Definition at line 169 of file DataCapture.cpp.
References FCaptureData::Cameras, CaptureData, and FCaptureData::CapturePositions.
void ADataCapture::SetupDataCapture | ( | FCaptureData | NewCaptureData | ) |
Definition at line 26 of file DataCapture.cpp.
References FCaptureData::Cameras, CaptureData, FCaptureData::CapturePositions, FCaptureData::CaptureRotatedViews, ACamera::ChangeCameraParameters(), ComputeAndSetZFromGround(), Destroy, DestroySensors(), UCoordinateConversionUtilities::GeographicToUnrealCoordinates(), ACamera::GetCameraParameters(), FCaptureData::Lidars, SimulatorLog::Log(), FCameraBaseParameters::SaveImageToDisk, FCameraBaseParameters::SendDataToROS, FCaptureData::Sensors, UpdatePositions(), FCaptureData::UseGPSLocation, and FCaptureData::UseHeightAboveGround.
Referenced by USimulatorJsonParser::ParseDataCapture().
|
overrideprotectedvirtual |
Definition at line 163 of file DataCapture.cpp.
References Capture().
|
private |
Definition at line 243 of file DataCapture.cpp.
References CaptureData, ALidar::ForceClearContainers(), FCaptureData::Lidars, FCaptureData::Sensors, and Transform.
Referenced by Capture(), and SetupDataCapture().
|
private |
Definition at line 112 of file DataCapture.h.
Referenced by Capture(), CaptureDataNow(), DestroySensors(), EndPlay(), SetupDataCapture(), and UpdatePositions().
|
private |
Definition at line 114 of file DataCapture.h.
Referenced by Capture().
|
private |
Definition at line 116 of file DataCapture.h.
Referenced by Capture().
|
private |
Definition at line 118 of file DataCapture.h.