|
CARLA
|
Factory in charge of spawning sensors. More...
#include <SensorFactory.h>
Inheritance diagram for ASensorFactory:Private Member Functions | |
| TArray< FActorDefinition > | GetDefinitions () final |
| Retrieve the definitions of all the sensors registered in the SensorRegistry. | |
| FActorSpawnResult | SpawnActor (const FTransform &SpawnAtTransform, const FActorDescription &ActorDescription) final |
| Spawn an actor based on ActorDescription and Transform. | |
Additional Inherited Members | |
Public Member Functions inherited from ACarlaActorFactory | |
| ACarlaActorFactory (const FObjectInitializer &ObjectInitializer) | |
| virtual void | ReleaseContentPack (const FString &MountPoint) |
| Drop every cached definition, parameter and loaded asset that refers to content under MountPoint ("/<Pack>/"), so a content pack can be unmounted; the dropped blueprints are gone until the next episode. | |
Static Public Member Functions inherited from ACarlaActorFactory | |
| static bool | DefinitionReferencesPath (const FActorDefinition &Definition, const FString &MountPoint) |
| True when the definition's class or any attribute/variation value points at content under MountPoint. | |
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 98 of file SensorFactory.cpp.
References FSensorDefinitionGatherer::GetSensorDefinitions().
|
finalprivatevirtual |
Spawn an actor based on ActorDescription and Transform.
Reimplemented from ACarlaActorFactory.
Definition at line 103 of file SensorFactory.cpp.
References FActorDescription::Class, UCarlaGameInstance::GetCarlaEpisode(), UCarlaStatics::GetGameInstance(), UCarlaGameInstance::GetServer(), and FCarlaServer::OpenStream().