CARLA
载入中...
搜索中...
未找到
Unreal
CarlaUE4
Plugins
Carla
Source
Carla
Recorder
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)
13
struct
CarlaRecorderTrafficLightTime
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
26
class
CarlaRecorderTrafficLightTimes
27
{
28
public
:
29
30
void
Add
(
const
CarlaRecorderTrafficLightTime
&InObj);
31
32
void
Clear
(
void
);
33
34
void
Write
(std::ostream &OutFile);
35
36
private
:
37
38
std::vector<CarlaRecorderTrafficLightTime>
TrafficLightTimes
;
39
};
CarlaRecorderTrafficLightTimes
Definition
CarlaRecorderTraficLightTime.h:27
CarlaRecorderTrafficLightTimes::Add
void Add(const CarlaRecorderTrafficLightTime &InObj)
Definition
CarlaRecorderTraficLightTime.cpp:35
CarlaRecorderTrafficLightTimes::Write
void Write(std::ostream &OutFile)
Definition
CarlaRecorderTraficLightTime.cpp:40
CarlaRecorderTrafficLightTimes::Clear
void Clear(void)
Definition
CarlaRecorderTraficLightTime.cpp:30
CarlaRecorderTrafficLightTimes::TrafficLightTimes
std::vector< CarlaRecorderTrafficLightTime > TrafficLightTimes
Definition
CarlaRecorderTraficLightTime.h:38
CarlaRecorderTrafficLightTime
Definition
CarlaRecorderTraficLightTime.h:14
CarlaRecorderTrafficLightTime::RedTime
float RedTime
Definition
CarlaRecorderTraficLightTime.h:18
CarlaRecorderTrafficLightTime::GreenTime
float GreenTime
Definition
CarlaRecorderTraficLightTime.h:16
CarlaRecorderTrafficLightTime::DatabaseId
uint32_t DatabaseId
Definition
CarlaRecorderTraficLightTime.h:15
CarlaRecorderTrafficLightTime::Read
void Read(std::istream &InFile)
Definition
CarlaRecorderTraficLightTime.cpp:20
CarlaRecorderTrafficLightTime::Write
void Write(std::ostream &OutFile)
Definition
CarlaRecorderTraficLightTime.cpp:12
CarlaRecorderTrafficLightTime::YellowTime
float YellowTime
Definition
CarlaRecorderTraficLightTime.h:17
制作者
1.10.0