CARLA
载入中...
搜索中...
未找到
Unreal
CarlaUE4
Plugins
Carla
Source
Carla
Sensor
SensorManager.cpp
浏览该文件的文档.
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
}
SensorManager.h
Sensor.h
ASensor
Base class for sensors.
Definition
Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Sensor/Sensor.h:24
FSensorManager::SensorList
TArray< ASensor * > SensorList
Definition
SensorManager.h:24
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::RegisterSensor
void RegisterSensor(ASensor *Sensor)
Definition
SensorManager.cpp:10
制作者
1.10.0