CARLA
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 
11 {
12  SensorList.Emplace(Sensor);
13 }
14 
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 }
void PostPhysTick(UWorld *World, ELevelTick TickType, float DeltaSeconds)
void DeRegisterSensor(ASensor *Sensor)
TArray< ASensor * > SensorList
Definition: SensorManager.h:24
void RegisterSensor(ASensor *Sensor)