CARLA
 
载入中...
搜索中...
未找到
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
11{
12 SensorList.Emplace(Sensor);
13}
14
16{
17 SensorList.Remove(Sensor);
18}
19
20void FSensorManager::PostPhysTick(UWorld *World, ELevelTick TickType, float DeltaSeconds)
21{
22 for(ASensor* Sensor : SensorList)
23 {
24 Sensor->PostPhysTickInternal(World, TickType, DeltaSeconds);
25 }
26}
TArray< ASensor * > SensorList
void PostPhysTick(UWorld *World, ELevelTick TickType, float DeltaSeconds)
void DeRegisterSensor(ASensor *Sensor)
void RegisterSensor(ASensor *Sensor)