CARLA
 
载入中...
搜索中...
未找到
CarlaRecorderTraficLightTime.h
浏览该文件的文档.
1// Copyright (c) 2020 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
9#include <sstream>
10#include <vector>
11
12#pragma pack(push, 1)
14{
15 uint32_t DatabaseId;
16 float GreenTime = 0;
17 float YellowTime = 0;
18 float RedTime = 0;
19
20 void Read(std::istream &InFile);
21
22 void Write(std::ostream &OutFile);
23};
24#pragma pack(pop)
25
27{
28 public:
29
30 void Add(const CarlaRecorderTrafficLightTime &InObj);
31
32 void Clear(void);
33
34 void Write(std::ostream &OutFile);
35
36private:
37
38 std::vector<CarlaRecorderTrafficLightTime> TrafficLightTimes;
39};
void Add(const CarlaRecorderTrafficLightTime &InObj)
std::vector< CarlaRecorderTrafficLightTime > TrafficLightTimes