CARLA
Unreal
CarlaUE4
Plugins
Carla
Source
Carla
Recorder
CarlaRecorderTraficLightTime.h
Go to the documentation of this file.
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
};
CarlaRecorderTrafficLightTime::DatabaseId
uint32_t DatabaseId
Definition:
CarlaRecorderTraficLightTime.h:15
CarlaRecorderTrafficLightTime::Write
void Write(std::ostream &OutFile)
Definition:
CarlaRecorderTraficLightTime.cpp:12
CarlaRecorderTrafficLightTimes::TrafficLightTimes
std::vector< CarlaRecorderTrafficLightTime > TrafficLightTimes
Definition:
CarlaRecorderTraficLightTime.h:38
CarlaRecorderTrafficLightTime
Definition:
CarlaRecorderTraficLightTime.h:13
CarlaRecorderTrafficLightTime::YellowTime
float YellowTime
Definition:
CarlaRecorderTraficLightTime.h:17
CarlaRecorderTrafficLightTime::GreenTime
float GreenTime
Definition:
CarlaRecorderTraficLightTime.h:16
CarlaRecorderTrafficLightTimes
Definition:
CarlaRecorderTraficLightTime.h:26
CarlaRecorderTrafficLightTime::Read
void Read(std::istream &InFile)
Definition:
CarlaRecorderTraficLightTime.cpp:20
CarlaRecorderTrafficLightTime::RedTime
float RedTime
Definition:
CarlaRecorderTraficLightTime.h:18
Generated by
1.8.13