CARLA
Private Member Functions | List of all members
ATriggerFactory Class Reference

Factory in charge of spawning sensors. More...

#include <TriggerFactory.h>

+ Inheritance diagram for ATriggerFactory:
+ Collaboration diagram for ATriggerFactory:

Private Member Functions

TArray< FActorDefinitionGetDefinitions () final
 Retrieve the definitions of all the sensors registered in the SensorRegistry. More...
 
FActorSpawnResult SpawnActor (const FTransform &SpawnAtTransform, const FActorDescription &ActorDescription) final
 Spawn an actor based on ActorDescription and Transform. More...
 

Additional Inherited Members

- Public Member Functions inherited from ACarlaActorFactory
 ACarlaActorFactory (const FObjectInitializer &ObjectInitializer)
 

Detailed Description

Factory in charge of spawning sensors.

This factory is able to spawn every sensor registered in carla::sensor::SensorRegistry.

Definition at line 17 of file TriggerFactory.h.

Member Function Documentation

◆ GetDefinitions()

TArray< FActorDefinition > ATriggerFactory::GetDefinitions ( )
finalprivatevirtual

Retrieve the definitions of all the sensors registered in the SensorRegistry.

Sensors must implement a GetSensorDefinition() static method.

Reimplemented from ACarlaActorFactory.

Definition at line 21 of file TriggerFactory.cpp.

References FActorDefinition::Class, UActorBlueprintFunctionLibrary::MakeTriggerDefinition(), and Success.

+ Here is the call graph for this function:

◆ SpawnActor()

FActorSpawnResult ATriggerFactory::SpawnActor ( const FTransform &  SpawnAtTransform,
const FActorDescription ActorDescription 
)
finalprivatevirtual

Spawn an actor based on ActorDescription and Transform.

Precondition
ActorDescription is expected to be derived from one of the definitions retrieved with GetDefinitions.

Reimplemented from ACarlaActorFactory.

Definition at line 36 of file TriggerFactory.cpp.

References FActorDescription::Class, UCarlaGameInstance::GetCarlaEpisode(), UCarlaStatics::GetGameInstance(), UActorBlueprintFunctionLibrary::RetrieveActorAttributeToFloat(), and FActorDescription::Variations.

+ Here is the call graph for this function:

The documentation for this class was generated from the following files: