CARLA
SensorFactory.h
Go to the documentation of this file.
1 // Copyright (c) 2017 Computer Vision Center (CVC) at the Universitat Autonoma
2 // de Barcelona (UAB).
3 //
4 // This work is licensed under the terms of the MIT license.
5 // For a copy, see <https://opensource.org/licenses/MIT>.
6 
7 #pragma once
8 
11 
12 #include "SensorFactory.generated.h"
13 
14 /// Factory in charge of spawning sensors. This factory is able to spawn every
15 /// sensor registered in carla::sensor::SensorRegistry.
16 UCLASS()
17 class CARLA_API ASensorFactory : public ACarlaActorFactory
18 {
19  GENERATED_BODY()
20 
21  /// Retrieve the definitions of all the sensors registered in the
22  /// SensorRegistry. Sensors must implement a GetSensorDefinition() static
23  /// method.
24  TArray<FActorDefinition> GetDefinitions() final;
25 
26  FActorSpawnResult SpawnActor(
27  const FTransform &SpawnAtTransform,
28  const FActorDescription &ActorDescription) final;
29 };
Base class for Carla actor factories.
A description of a Carla Actor with all its variation.
Factory in charge of spawning sensors.
Definition: SensorFactory.h:17
Result of an actor spawn function.