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

Factory in charge of spawning sensors. More...

#include <SensorFactory.h>

+ Inheritance diagram for ASensorFactory:
+ Collaboration diagram for ASensorFactory:

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 SensorFactory.h.

Member Function Documentation

◆ GetDefinitions()

TArray< FActorDefinition > ASensorFactory::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 100 of file SensorFactory.cpp.

References FSensorDefinitionGatherer::GetSensorDefinitions().

+ Here is the call graph for this function:

◆ SpawnActor()

FActorSpawnResult ASensorFactory::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 105 of file SensorFactory.cpp.

References FActorDescription::Class, UCarlaGameInstance::GetCarlaEpisode(), UCarlaStatics::GetGameInstance(), UCarlaGameInstance::GetServer(), and FCarlaServer::OpenStream().

+ Here is the call graph for this function:

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