Factory in charge of spawning sensors. More...
#include <SensorFactory.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 SensorFactory.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 100 of file SensorFactory.cpp.
References FSensorDefinitionGatherer::GetSensorDefinitions().
|
finalprivatevirtual |
Spawn an actor based on ActorDescription and Transform.
Reimplemented from ACarlaActorFactory.
Definition at line 105 of file SensorFactory.cpp.
References FActorDescription::Class, UCarlaGameInstance::GetCarlaEpisode(), UCarlaStatics::GetGameInstance(), UCarlaGameInstance::GetServer(), and FCarlaServer::OpenStream().