CARLA
Loading...
Searching...
No Matches
FSensorDefinitionGatherer Class Reference

Retrieve the definitions of all the sensors registered in the SensorRegistry by calling their static method SensorType::GetSensorDefinition(). More...

Classes

struct  is_spawnable
struct  is_spawnable< T, typename void_type< typename T::not_spawnable >::type >
struct  void_type

Static Public Member Functions

static auto GetSensorDefinitions ()

Private Types

using Registry = carla::sensor::SensorRegistry

Static Private Member Functions

template<typename SensorType>
static std::enable_if<!is_spawnable< SensorType >::value, void >::type AppendDefinitions (TArray< FActorDefinition > &)
template<size_t Index>
static void AppendDefinitions (TArray< FActorDefinition > &Definitions)
template<typename SensorType>
static std::enable_if< is_spawnable< SensorType >::value, void >::type AppendDefinitions (TArray< FActorDefinition > &Definitions)
template<size_t... Is>
static void AppendDefinitions (TArray< FActorDefinition > &Definitions, std::index_sequence< Is... >)

Detailed Description

Retrieve the definitions of all the sensors registered in the SensorRegistry by calling their static method SensorType::GetSensorDefinition().

Note
To make this class ignore a given sensor, define a public member "not_spawnable" that defines a type. If so, the sensor won't be spawned by this factory.

Definition at line 77 of file SensorFactory.cpp.

Member Typedef Documentation

◆ Registry

Member Function Documentation

◆ AppendDefinitions() [1/4]

template<typename SensorType>
std::enable_if<!is_spawnable< SensorType >::value, void >::type FSensorDefinitionGatherer::AppendDefinitions ( TArray< FActorDefinition > & )
inlinestaticprivate

Definition at line 118 of file SensorFactory.cpp.

◆ AppendDefinitions() [2/4]

template<size_t Index>
void FSensorDefinitionGatherer::AppendDefinitions ( TArray< FActorDefinition > & Definitions)
inlinestaticprivate

Definition at line 121 of file SensorFactory.cpp.

References AppendDefinitions().

◆ AppendDefinitions() [3/4]

template<typename SensorType>
std::enable_if< is_spawnable< SensorType >::value, void >::type FSensorDefinitionGatherer::AppendDefinitions ( TArray< FActorDefinition > & Definitions)
inlinestaticprivate

Definition at line 108 of file SensorFactory.cpp.

Referenced by AppendDefinitions(), AppendDefinitions(), and GetSensorDefinitions().

◆ AppendDefinitions() [4/4]

template<size_t... Is>
void FSensorDefinitionGatherer::AppendDefinitions ( TArray< FActorDefinition > & Definitions,
std::index_sequence< Is... >  )
inlinestaticprivate

Definition at line 129 of file SensorFactory.cpp.

References AppendDefinitions().

◆ GetSensorDefinitions()

auto FSensorDefinitionGatherer::GetSensorDefinitions ( )
inlinestatic

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