Factory in charge of spawning sensors. More...
#include <TriggerFactory.h>
Private Member Functions | |
TArray< FActorDefinition > | GetDefinitions () 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) | |
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.
|
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.
|
finalprivatevirtual |
Spawn an actor based on ActorDescription and Transform.
Reimplemented from ACarlaActorFactory.
Definition at line 36 of file TriggerFactory.cpp.
References FActorDescription::Class, UCarlaGameInstance::GetCarlaEpisode(), UCarlaStatics::GetGameInstance(), UActorBlueprintFunctionLibrary::RetrieveActorAttributeToFloat(), and FActorDescription::Variations.