Agrarsense
Functions
SimulatorJsonParser.cpp File Reference
#include "SimulatorJsonParser.h"
#include "Agrarsense/AssetLibrary/AssetLibrary.h"
#include "Agrarsense/Utils/MaterialParameterCollectionUtilities.h"
#include "Agrarsense/Utils/PlatformUtilities.h"
#include "Agrarsense/Utils/EnumUtilities.h"
#include "Agrarsense/InstancedRendering/InstancedActor.h"
#include "Agrarsense/Logging/SimulatorLog.h"
#include "Agrarsense/Game/AgrarsenseStatics.h"
#include "Agrarsense/Weather/Weather.h"
#include "Agrarsense/Spectator/Spectator.h"
#include "Agrarsense/Settings/AgrarsenseSettings.h"
#include "Agrarsense/Managers/SimulationLevelManager.h"
#include "Agrarsense/Vehicle/Vehicle.h"
#include "Agrarsense/Vehicle/PIDDrone.h"
#include "Agrarsense/Volume/DeletionVolume.h"
#include "Agrarsense/Sensor/SensorModel.h"
#include "Agrarsense/Sensor/Sensor.h"
#include "Agrarsense/Sensor/Camera/Camera.h"
#include "Agrarsense/Sensor/Camera/DVSCamera.h"
#include "Agrarsense/Sensor/Camera/ThermalCamera.h"
#include "Agrarsense/Sensor/Camera/DepthCamera.h"
#include "Agrarsense/Sensor/Camera/DVSCameraParameters.h"
#include "Agrarsense/Sensor/Camera/SemanticSegmentationCamera.h"
#include "Agrarsense/Sensor/Camera/CameraBaseParameters.h"
#include "Agrarsense/Sensor/SensorsManagerComponent.h"
#include "Agrarsense/Sensor/SensorFactory.h"
#include "Agrarsense/Sensor/Lidar/Lidar.h"
#include "Agrarsense/Sensor/Radar/Radar.h"
#include "Agrarsense/DataCapture/PhotoCapture.h"
#include "Kismet/GameplayStatics.h"
#include "Camera/PlayerCameraManager.h"
#include "GenericPlatform/GenericPlatformFile.h"
#include "Serialization/JsonSerializer.h"
#include "Serialization/JsonWriter.h"
#include "Misc/DefaultValueHelper.h"
#include "HAL/PlatformFileManager.h"
#include "GameFramework/Pawn.h"
#include "Misc/FileHelper.h"
#include "Dom/JsonObject.h"
#include "GameFramework/PlayerController.h"
#include "CollisionQueryParams.h"
#include "Engine/GameViewportClient.h"
#include "Engine/EngineTypes.h"
#include "Engine/Engine.h"
#include "Engine/World.h"
Include dependency graph for SimulatorJsonParser.cpp:

Go to the source code of this file.

Functions

static EDroneAction GetDroneAction (FString actionstring)
 
static EDroneEndAction GetDroneEndAction (FString endActionstring)
 

Function Documentation

◆ GetDroneAction()

static EDroneAction GetDroneAction ( FString  actionstring)
static

Definition at line 609 of file SimulatorJsonParser.cpp.

610{
611 if (actionstring == "stationary") { return EDroneAction::Stationary; }
612 if (actionstring == "manual") { return EDroneAction::Manual; }
613 if (actionstring == "roaming") { return EDroneAction::Roaming; }
614 if (actionstring == "followpath") { return EDroneAction::FollowPath; }
615 else { return EDroneAction::Stationary; }
616}

References FollowPath, Manual, Roaming, and Stationary.

Referenced by USimulatorJsonParser::ParseAndSetDroneParameters().

◆ GetDroneEndAction()

static EDroneEndAction GetDroneEndAction ( FString  endActionstring)
static

Definition at line 618 of file SimulatorJsonParser.cpp.

619{
620 if (endActionstring == "destroy") { return EDroneEndAction::Destroy; }
621 if (endActionstring == "repeatfrombeginning") { return EDroneEndAction::RepeatFromBeginning; }
622 if (endActionstring == "gobackwards") { return EDroneEndAction::GoBackwards; }
623 if (endActionstring == "generaterandomnew") { return EDroneEndAction::GenerateRandomNew; }
624 if (endActionstring == "stop") { return EDroneEndAction::Stop; }
625 else { return EDroneEndAction::Stop; }
626}

References Destroy, GenerateRandomNew, GoBackwards, RepeatFromBeginning, and Stop.

Referenced by USimulatorJsonParser::ParseAndSetDroneParameters().