#include <ActorBlueprintFunctionLibrary.h>
Static Public Member Functions | |
Actor definition validators | |
static bool | CheckActorDefinition (const FActorDefinition &ActorDefinitions) |
Return whether the actor definition is valid. Prints all the errors found. More... | |
static bool | CheckActorDefinitions (const TArray< FActorDefinition > &ActorDefinitions) |
Return whether the list of actor definitions is valid. More... | |
Helpers to create actor definitions | |
static FActorDefinition | MakeGenericDefinition (const FString &Category, const FString &Type, const FString &Id) |
static FActorDefinition | MakeGenericSensorDefinition (const FString &Type, const FString &Id) |
static FActorDefinition | MakeCameraDefinition (const FString &Id, bool bEnableModifyingPostProcessEffects=false) |
static void | MakeCameraDefinition (const FString &Id, bool bEnableModifyingPostProcessEffects, bool &Success, FActorDefinition &Definition) |
static FActorDefinition | MakeNormalsCameraDefinition () |
static void | MakeNormalsCameraDefinition (bool &Success, FActorDefinition &Definition) |
static FActorDefinition | MakeLidarDefinition (const FString &Id) |
static void | MakeLidarDefinition (const FString &Id, bool &Success, FActorDefinition &Definition) |
static FActorDefinition | MakeGnssDefinition () |
static void | MakeGnssDefinition (bool &Success, FActorDefinition &Definition) |
static FActorDefinition | MakeIMUDefinition () |
static void | MakeIMUDefinition (bool &Success, FActorDefinition &Definition) |
static FActorDefinition | MakeRadarDefinition () |
static void | MakeRadarDefinition (bool &Success, FActorDefinition &Definition) |
static void | MakeVehicleDefinition (const FVehicleParameters &Parameters, bool &Success, FActorDefinition &Definition) |
static void | MakeVehicleDefinitions (const TArray< FVehicleParameters > &ParameterArray, TArray< FActorDefinition > &Definitions) |
static void | MakePedestrianDefinition (const FPedestrianParameters &Parameters, bool &Success, FActorDefinition &Definition) |
static void | MakePedestrianDefinitions (const TArray< FPedestrianParameters > &ParameterArray, TArray< FActorDefinition > &Definitions) |
static void | MakeTriggerDefinitions (const TArray< FString > &ParameterArray, TArray< FActorDefinition > &Definitions) |
static void | MakeTriggerDefinition (const FString &Id, bool &Success, FActorDefinition &Definition) |
static void | MakePropDefinition (const FPropParameters &Parameters, bool &Success, FActorDefinition &Definition) |
static void | MakePropDefinitions (const TArray< FPropParameters > &ParameterArray, TArray< FActorDefinition > &Definitions) |
static void | MakeObstacleDetectorDefinitions (const FString &Type, const FString &Id, FActorDefinition &Definition) |
Helpers to retrieve attribute values | |
static bool | ActorAttributeToBool (const FActorAttribute &ActorAttribute, bool Default) |
============================================================================ – Helpers to retrieve attribute values ---------------------------------—More... | |
static int32 | ActorAttributeToInt (const FActorAttribute &ActorAttribute, int32 Default) |
static float | ActorAttributeToFloat (const FActorAttribute &ActorAttribute, float Default) |
static FString | ActorAttributeToString (const FActorAttribute &ActorAttribute, const FString &Default) |
static FColor | ActorAttributeToColor (const FActorAttribute &ActorAttribute, const FColor &Default) |
static bool | RetrieveActorAttributeToBool (const FString &Id, const TMap< FString, FActorAttribute > &Attributes, bool Default) |
static int32 | RetrieveActorAttributeToInt (const FString &Id, const TMap< FString, FActorAttribute > &Attributes, int32 Default) |
static float | RetrieveActorAttributeToFloat (const FString &Id, const TMap< FString, FActorAttribute > &Attributes, float Default) |
static FString | RetrieveActorAttributeToString (const FString &Id, const TMap< FString, FActorAttribute > &Attributes, const FString &Default) |
static FColor | RetrieveActorAttributeToColor (const FString &Id, const TMap< FString, FActorAttribute > &Attributes, const FColor &Default) |
Helpers to set Actors | |
static void | SetCamera (const FActorDescription &Description, ASceneCaptureSensor *Camera) |
static void | SetCamera (const FActorDescription &Description, AShaderBasedSensor *Camera) |
static void | SetLidar (const FActorDescription &Description, FLidarDescription &Lidar) |
static void | SetGnss (const FActorDescription &Description, AGnssSensor *Gnss) |
static void | SetIMU (const FActorDescription &Description, AInertialMeasurementUnit *IMU) |
static void | SetRadar (const FActorDescription &Description, ARadar *Radar) |
Definition at line 27 of file ActorBlueprintFunctionLibrary.h.
|
static |
============================================================================
Definition at line 1378 of file ActorBlueprintFunctionLibrary.cpp.
References Bool, FActorAttribute::Id, FActorAttribute::Type, and FActorAttribute::Value.
Referenced by FSparseHighDetailMap::SaveMap().
|
static |
Definition at line 1426 of file ActorBlueprintFunctionLibrary.cpp.
References FActorAttribute::Id, RGBColor, FActorAttribute::Type, and FActorAttribute::Value.
|
static |
Definition at line 1402 of file ActorBlueprintFunctionLibrary.cpp.
References Float, FActorAttribute::Id, FActorAttribute::Type, and FActorAttribute::Value.
Referenced by ASensor::Set().
|
static |
Definition at line 1390 of file ActorBlueprintFunctionLibrary.cpp.
References FActorAttribute::Id, Int, FActorAttribute::Type, and FActorAttribute::Value.
|
static |
Definition at line 1414 of file ActorBlueprintFunctionLibrary.cpp.
References FActorAttribute::Id, String, FActorAttribute::Type, and FActorAttribute::Value.
|
static |
Return whether the actor definition is valid. Prints all the errors found.
============================================================================
Definition at line 177 of file ActorBlueprintFunctionLibrary.cpp.
References FActorDefinitionValidator::SingleIsValid().
Referenced by UActorDispatcher::Bind().
|
static |
Return whether the list of actor definitions is valid.
Prints all the errors found.
Definition at line 183 of file ActorBlueprintFunctionLibrary.cpp.
References FActorDefinitionValidator::AreValid().
|
static |
Definition at line 294 of file ActorBlueprintFunctionLibrary.cpp.
References Success.
Referenced by AOpticalFlowCamera::GetSensorDefinition(), ASemanticSegmentationCamera::GetSensorDefinition(), ADepthCamera::GetSensorDefinition(), AInstanceSegmentationCamera::GetSensorDefinition(), ASceneCaptureCamera::GetSensorDefinition(), and ADVSCamera::GetSensorDefinition().
|
static |
Definition at line 305 of file ActorBlueprintFunctionLibrary.cpp.
References AddRecommendedValuesForSensorRoleNames(), AddVariationsForSensor(), Bool, FActorVariation::bRestrictToRecommended, FillIdAndTags(), Float, FActorVariation::Id, Int, FActorVariation::RecommendedValues, String, FActorVariation::Type, and FActorDefinition::Variations.
|
static |
Definition at line 275 of file ActorBlueprintFunctionLibrary.cpp.
References FillIdAndTags().
|
static |
Definition at line 285 of file ActorBlueprintFunctionLibrary.cpp.
References AddRecommendedValuesForSensorRoleNames().
Referenced by ALaneInvasionSensor::GetSensorDefinition(), ARssSensor::GetSensorDefinition(), and ACollisionSensor::GetSensorDefinition().
|
static |
Definition at line 1017 of file ActorBlueprintFunctionLibrary.cpp.
References Success.
Referenced by AGnssSensor::GetSensorDefinition().
|
static |
Definition at line 1026 of file ActorBlueprintFunctionLibrary.cpp.
References AddVariationsForSensor(), FActorVariation::bRestrictToRecommended, FillIdAndTags(), Float, FActorVariation::Id, Int, FActorVariation::RecommendedValues, FActorVariation::Type, and FActorDefinition::Variations.
|
static |
Definition at line 744 of file ActorBlueprintFunctionLibrary.cpp.
References Success.
Referenced by AInertialMeasurementUnit::GetSensorDefinition().
|
static |
Definition at line 753 of file ActorBlueprintFunctionLibrary.cpp.
References AddVariationsForSensor(), FActorVariation::bRestrictToRecommended, FillIdAndTags(), Float, FActorVariation::Id, Int, FActorVariation::RecommendedValues, FActorVariation::Type, and FActorDefinition::Variations.
|
static |
Definition at line 899 of file ActorBlueprintFunctionLibrary.cpp.
References Success.
Referenced by ARayCastLidar::GetSensorDefinition(), and ARayCastSemanticLidar::GetSensorDefinition().
|
static |
Definition at line 909 of file ActorBlueprintFunctionLibrary.cpp.
References AddRecommendedValuesForSensorRoleNames(), AddVariationsForSensor(), FActorVariation::bRestrictToRecommended, DEBUG_ASSERT, FillIdAndTags(), Float, FActorVariation::Id, Int, FActorVariation::RecommendedValues, FActorVariation::Type, and FActorDefinition::Variations.
|
static |
Definition at line 658 of file ActorBlueprintFunctionLibrary.cpp.
References Success.
Referenced by ANormalsCamera::GetSensorDefinition().
|
static |
Definition at line 667 of file ActorBlueprintFunctionLibrary.cpp.
References AddRecommendedValuesForSensorRoleNames(), AddVariationsForSensor(), FActorVariation::bRestrictToRecommended, FillIdAndTags(), Float, FActorVariation::Id, Int, FActorVariation::RecommendedValues, FActorVariation::Type, and FActorDefinition::Variations.
|
static |
Definition at line 1334 of file ActorBlueprintFunctionLibrary.cpp.
References AddVariationsForSensor(), Bool, FActorVariation::bRestrictToRecommended, Float, FActorVariation::Id, FActorVariation::RecommendedValues, FActorVariation::Type, and FActorDefinition::Variations.
Referenced by AObstacleDetectionSensor::GetSensorDefinition().
|
static |
Definition at line 1206 of file ActorBlueprintFunctionLibrary.cpp.
References AddRecommendedValuesForActorRoleName(), FPedestrianParameters::Age, FActorDefinition::Attributes, Bool, FActorVariation::bRestrictToRecommended, FActorDefinition::Class, FPedestrianParameters::Class, FillIdAndTags(), Float, FPedestrianParameters::Gender, FPedestrianParameters::Generation, FPedestrianParameters::Id, FActorVariation::Id, Int, FActorVariation::RecommendedValues, FPedestrianParameters::Speed, String, FActorVariation::Type, and FActorDefinition::Variations.
|
static |
Definition at line 1273 of file ActorBlueprintFunctionLibrary.cpp.
References FillActorDefinitionArray().
|
static |
Definition at line 1298 of file ActorBlueprintFunctionLibrary.cpp.
References AddRecommendedValuesForActorRoleName(), FActorDefinition::Attributes, FillIdAndTags(), UOpenDriveMap_Private::GetSize(), FPropParameters::Name, FPropParameters::Size, and String.
|
static |
Definition at line 1327 of file ActorBlueprintFunctionLibrary.cpp.
References FillActorDefinitionArray().
|
static |
Definition at line 842 of file ActorBlueprintFunctionLibrary.cpp.
References Success.
Referenced by ARadar::GetSensorDefinition().
|
static |
Definition at line 851 of file ActorBlueprintFunctionLibrary.cpp.
References AddVariationsForSensor(), FActorVariation::bRestrictToRecommended, FillIdAndTags(), Float, FActorVariation::Id, Int, FActorVariation::RecommendedValues, FActorVariation::Type, and FActorDefinition::Variations.
|
static |
Definition at line 1287 of file ActorBlueprintFunctionLibrary.cpp.
References AddVariationsForTrigger(), and FillIdAndTags().
Referenced by ATriggerFactory::GetDefinitions().
|
static |
Definition at line 1280 of file ActorBlueprintFunctionLibrary.cpp.
References FillActorDefinitionArray().
|
static |
Definition at line 1088 of file ActorBlueprintFunctionLibrary.cpp.
References AddRecommendedValuesForActorRoleName(), FActorDefinition::Attributes, FVehicleParameters::BaseType, Bool, FActorVariation::bRestrictToRecommended, FVehicleParameters::Class, FActorDefinition::Class, ColorToFString(), FillIdAndTags(), FVehicleParameters::Generation, FVehicleParameters::HasDynamicDoors, FVehicleParameters::HasLights, FActorVariation::Id, Int, FVehicleParameters::Make, FVehicleParameters::Model, FVehicleParameters::NumberOfWheels, FVehicleParameters::ObjectType, FVehicleParameters::RecommendedColors, FActorVariation::RecommendedValues, RGBColor, FVehicleParameters::SpecialType, String, FVehicleParameters::SupportedDrivers, FActorVariation::Type, and FActorDefinition::Variations.
|
static |
Definition at line 1199 of file ActorBlueprintFunctionLibrary.cpp.
References FillActorDefinitionArray().
|
static |
Definition at line 1468 of file ActorBlueprintFunctionLibrary.cpp.
Referenced by AObstacleDetectionSensor::Set(), and ADVSCamera::Set().
|
static |
Definition at line 1508 of file ActorBlueprintFunctionLibrary.cpp.
|
static |
Definition at line 1488 of file ActorBlueprintFunctionLibrary.cpp.
Referenced by AObstacleDetectionSensor::Set(), ADVSCamera::Set(), and ATriggerFactory::SpawnActor().
|
static |
Definition at line 1478 of file ActorBlueprintFunctionLibrary.cpp.
Referenced by ADVSCamera::Set().
|
static |
Definition at line 1498 of file ActorBlueprintFunctionLibrary.cpp.
|
static |
Definition at line 1536 of file ActorBlueprintFunctionLibrary.cpp.
References CARLA_ABFL_CHECK_ACTOR, ASceneCaptureSensor::EnablePostProcessingEffects(), ASceneCaptureSensor::SetAperture(), ASceneCaptureSensor::SetBladeCount(), ASceneCaptureSensor::SetBloomIntensity(), ASceneCaptureSensor::SetChromAberrIntensity(), ASceneCaptureSensor::SetChromAberrOffset(), ASceneCaptureSensor::SetDepthBlurAmount(), ASceneCaptureSensor::SetDepthBlurRadius(), ASceneCaptureSensor::SetDepthOfFieldMinFstop(), ASceneCaptureSensor::SetExposureCalibrationConstant(), ASceneCaptureSensor::SetExposureCompensation(), ASceneCaptureSensor::SetExposureMaxBrightness(), ASceneCaptureSensor::SetExposureMethod(), ASceneCaptureSensor::SetExposureMinBrightness(), ASceneCaptureSensor::SetExposureSpeedDown(), ASceneCaptureSensor::SetExposureSpeedUp(), ASceneCaptureSensor::SetFilmBlackClip(), ASceneCaptureSensor::SetFilmShoulder(), ASceneCaptureSensor::SetFilmSlope(), ASceneCaptureSensor::SetFilmToe(), ASceneCaptureSensor::SetFilmWhiteClip(), ASceneCaptureSensor::SetFocalDistance(), ASceneCaptureSensor::SetFOVAngle(), ASceneCaptureSensor::SetImageSize(), ASceneCaptureSensor::SetISO(), ASceneCaptureSensor::SetLensFlareIntensity(), ASceneCaptureSensor::SetMotionBlurIntensity(), ASceneCaptureSensor::SetMotionBlurMaxDistortion(), ASceneCaptureSensor::SetMotionBlurMinObjectScreenSize(), ASceneCaptureSensor::SetShutterSpeed(), ASceneCaptureSensor::SetTargetGamma(), ASceneCaptureSensor::SetWhiteTemp(), ASceneCaptureSensor::SetWhiteTint(), and FActorDescription::Variations.
Referenced by AShaderBasedSensor::Set(), and ASceneCaptureSensor::Set().
|
static |
Definition at line 1627 of file ActorBlueprintFunctionLibrary.cpp.
References CARLA_ABFL_CHECK_ACTOR, AShaderBasedSensor::SetFloatShaderParameter(), and FActorDescription::Variations.
|
static |
Definition at line 1679 of file ActorBlueprintFunctionLibrary.cpp.
References CARLA_ABFL_CHECK_ACTOR, URandomEngine::GenerateRandomSeed(), ASensor::GetRandomEngine(), AGnssSensor::SetAltitudeBias(), AGnssSensor::SetAltitudeDeviation(), AGnssSensor::SetLatitudeBias(), AGnssSensor::SetLatitudeDeviation(), AGnssSensor::SetLongitudeBias(), AGnssSensor::SetLongitudeDeviation(), ASensor::SetSeed(), and FActorDescription::Variations.
Referenced by AGnssSensor::Set().
|
static |
Definition at line 1708 of file ActorBlueprintFunctionLibrary.cpp.
References CARLA_ABFL_CHECK_ACTOR, URandomEngine::GenerateRandomSeed(), ASensor::GetRandomEngine(), AInertialMeasurementUnit::SetAccelerationStandardDeviation(), AInertialMeasurementUnit::SetGyroscopeBias(), AInertialMeasurementUnit::SetGyroscopeStandardDeviation(), ASensor::SetSeed(), and FActorDescription::Variations.
Referenced by AInertialMeasurementUnit::Set().
|
static |
Definition at line 1646 of file ActorBlueprintFunctionLibrary.cpp.
References FLidarDescription::AtmospAttenRate, FLidarDescription::Channels, FLidarDescription::DropOffAtZeroIntensity, FLidarDescription::DropOffGenRate, FLidarDescription::DropOffIntensityLimit, FLidarDescription::HorizontalFov, FLidarDescription::LowerFovLimit, FLidarDescription::NoiseStdDev, FLidarDescription::PointsPerSecond, FLidarDescription::RandomSeed, FLidarDescription::Range, FLidarDescription::RotationFrequency, FLidarDescription::UpperFovLimit, and FActorDescription::Variations.
Referenced by ARayCastLidar::Set(), and ARayCastSemanticLidar::Set().
|
static |
Definition at line 1739 of file ActorBlueprintFunctionLibrary.cpp.
References CARLA_ABFL_CHECK_ACTOR, URandomEngine::GenerateRandomSeed(), ASensor::GetRandomEngine(), ARadar::SetHorizontalFOV(), ARadar::SetPointsPerSecond(), ARadar::SetRange(), ASensor::SetSeed(), ARadar::SetVerticalFOV(), and FActorDescription::Variations.
Referenced by ARadar::Set().