CARLA
Classes | Macros | Functions
ActorBlueprintFunctionLibrary.cpp File Reference
#include "Carla.h"
#include "Carla/Actor/ActorBlueprintFunctionLibrary.h"
#include "Carla/Sensor/LidarDescription.h"
#include "Carla/Sensor/SceneCaptureSensor.h"
#include "Carla/Sensor/ShaderBasedSensor.h"
#include "Carla/Util/ScopedStack.h"
#include <algorithm>
#include <limits>
#include <stack>
+ Include dependency graph for ActorBlueprintFunctionLibrary.cpp:

Go to the source code of this file.

Classes

class  FActorDefinitionValidator
 Checks validity of FActorDefinition. More...
 

Macros

#define CARLA_ABFL_CHECK_ACTOR(ActorPtr)   check((ActorPtr != nullptr) && !ActorPtr->IsPendingKill());
 ============================================================================

– Helpers to set Actors ------------------------------------------------—

More...
 

Functions

static void AddRecommendedValuesForActorRoleName (FActorDefinition &Definition, TArray< FString > &&RecommendedValues)
 
static void AddRecommendedValuesForSensorRoleNames (FActorDefinition &Definition)
 
static void AddVariationsForSensor (FActorDefinition &Def)
 
static void AddVariationsForTrigger (FActorDefinition &Def)
 
static FString ColorToFString (const FColor &Color)
 
template<typename T , typename Functor >
static void FillActorDefinitionArray (const TArray< T > &ParameterArray, TArray< FActorDefinition > &Definitions, Functor Maker)
 
template<typename ... TStrs>
static void FillIdAndTags (FActorDefinition &Def, TStrs &&... Strings)
 ============================================================================

– Helpers to create actor definitions ----------------------------------—

More...
 
template<typename ... ARGS>
static FString JoinStrings (const FString &Separator, ARGS &&... Args)
 

Macro Definition Documentation

◆ CARLA_ABFL_CHECK_ACTOR

#define CARLA_ABFL_CHECK_ACTOR (   ActorPtr)    check((ActorPtr != nullptr) && !ActorPtr->IsPendingKill());

============================================================================

– Helpers to set Actors ------------------------------------------------—

Definition at line 1532 of file ActorBlueprintFunctionLibrary.cpp.

Referenced by UActorBlueprintFunctionLibrary::SetCamera(), UActorBlueprintFunctionLibrary::SetGnss(), UActorBlueprintFunctionLibrary::SetIMU(), and UActorBlueprintFunctionLibrary::SetRadar().

Function Documentation

◆ AddRecommendedValuesForActorRoleName()

static void AddRecommendedValuesForActorRoleName ( FActorDefinition Definition,
TArray< FString > &&  RecommendedValues 
)
static

Definition at line 216 of file ActorBlueprintFunctionLibrary.cpp.

References FActorDefinition::Variations.

Referenced by AddRecommendedValuesForSensorRoleNames(), UActorBlueprintFunctionLibrary::MakePedestrianDefinition(), UActorBlueprintFunctionLibrary::MakePropDefinition(), and UActorBlueprintFunctionLibrary::MakeVehicleDefinition().

+ Here is the caller graph for this function:

◆ AddRecommendedValuesForSensorRoleNames()

static void AddRecommendedValuesForSensorRoleNames ( FActorDefinition Definition)
static

Definition at line 230 of file ActorBlueprintFunctionLibrary.cpp.

References AddRecommendedValuesForActorRoleName().

Referenced by UActorBlueprintFunctionLibrary::MakeCameraDefinition(), UActorBlueprintFunctionLibrary::MakeGenericSensorDefinition(), UActorBlueprintFunctionLibrary::MakeLidarDefinition(), and UActorBlueprintFunctionLibrary::MakeNormalsCameraDefinition().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ AddVariationsForSensor()

static void AddVariationsForSensor ( FActorDefinition Def)
static

◆ AddVariationsForTrigger()

static void AddVariationsForTrigger ( FActorDefinition Def)
static

Definition at line 248 of file ActorBlueprintFunctionLibrary.cpp.

References FActorVariation::bRestrictToRecommended, Float, FActorVariation::Id, JoinStrings(), FActorVariation::RecommendedValues, FActorVariation::Type, and FActorDefinition::Variations.

Referenced by UActorBlueprintFunctionLibrary::MakeTriggerDefinition().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ColorToFString()

static FString ColorToFString ( const FColor &  Color)
static

Definition at line 164 of file ActorBlueprintFunctionLibrary.cpp.

References JoinStrings().

Referenced by UActorBlueprintFunctionLibrary::MakeVehicleDefinition().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FillActorDefinitionArray()

template<typename T , typename Functor >
static void FillActorDefinitionArray ( const TArray< T > &  ParameterArray,
TArray< FActorDefinition > &  Definitions,
Functor  Maker 
)
static

Definition at line 1182 of file ActorBlueprintFunctionLibrary.cpp.

References Success.

Referenced by UActorBlueprintFunctionLibrary::MakePedestrianDefinitions(), UActorBlueprintFunctionLibrary::MakePropDefinitions(), UActorBlueprintFunctionLibrary::MakeTriggerDefinitions(), and UActorBlueprintFunctionLibrary::MakeVehicleDefinitions().

+ Here is the caller graph for this function:

◆ FillIdAndTags()

template<typename ... TStrs>
static void FillIdAndTags ( FActorDefinition Def,
TStrs &&...  Strings 
)
static

◆ JoinStrings()

template<typename ... ARGS>
static FString JoinStrings ( const FString &  Separator,
ARGS &&...  Args 
)
static

Definition at line 159 of file ActorBlueprintFunctionLibrary.cpp.

Referenced by AddVariationsForTrigger(), ColorToFString(), and FillIdAndTags().

+ Here is the caller graph for this function: