CARLA
Unreal
CarlaUE4
Plugins
Carla
Source
Carla
Sensor
SensorManager.cpp
Go to the documentation of this file.
1
// Copyright (c) 2022 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
#include "
SensorManager.h
"
8
#include "
Sensor.h
"
9
10
void
FSensorManager::RegisterSensor
(
ASensor
* Sensor)
11
{
12
SensorList
.Emplace(Sensor);
13
}
14
15
void
FSensorManager::DeRegisterSensor
(
ASensor
* Sensor)
16
{
17
SensorList
.Remove(Sensor);
18
}
19
20
void
FSensorManager::PostPhysTick
(UWorld *World, ELevelTick TickType,
float
DeltaSeconds)
21
{
22
for
(
ASensor
* Sensor :
SensorList
)
23
{
24
Sensor->PostPhysTickInternal(World, TickType, DeltaSeconds);
25
}
26
}
FSensorManager::PostPhysTick
void PostPhysTick(UWorld *World, ELevelTick TickType, float DeltaSeconds)
Definition:
SensorManager.cpp:20
FSensorManager::DeRegisterSensor
void DeRegisterSensor(ASensor *Sensor)
Definition:
SensorManager.cpp:15
FSensorManager::SensorList
TArray< ASensor * > SensorList
Definition:
SensorManager.h:24
ASensor
Base class for sensors.
Definition:
Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Sensor/Sensor.h:23
Sensor.h
SensorManager.h
FSensorManager::RegisterSensor
void RegisterSensor(ASensor *Sensor)
Definition:
SensorManager.cpp:10
Generated by
1.8.13