CARLA
Unreal
CarlaUE4
Plugins
Carla
Source
Carla
Recorder
CarlaRecorderState.h
Go to the documentation of this file.
1
// Copyright (c) 2017 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
11
#pragma pack(push, 1)
12
13
struct
CarlaRecorderStateTrafficLight
14
{
15
uint32_t
DatabaseId
;
16
bool
IsFrozen
;
17
float
ElapsedTime
;
18
char
State
;
19
20
void
Read
(std::istream &InFile);
21
22
void
Write
(std::ostream &OutFile);
23
24
};
25
26
#pragma pack(pop)
27
28
class
CarlaRecorderStates
29
{
30
31
public
:
32
33
void
Add(
const
CarlaRecorderStateTrafficLight
&
State
);
34
35
void
Clear(
void
);
36
37
void
Write
(std::ostream &OutFile);
38
39
void
Read
(std::istream &InFile);
40
41
const
std::vector<CarlaRecorderStateTrafficLight>& GetStates();
42
43
private
:
44
45
std::vector<CarlaRecorderStateTrafficLight>
StatesTrafficLights
;
46
};
CarlaRecorderStateTrafficLight
Definition:
CarlaRecorderState.h:13
CarlaRecorderStates::StatesTrafficLights
std::vector< CarlaRecorderStateTrafficLight > StatesTrafficLights
Definition:
CarlaRecorderState.h:45
CarlaRecorderStateTrafficLight::ElapsedTime
float ElapsedTime
Definition:
CarlaRecorderState.h:17
CarlaRecorderStateTrafficLight::DatabaseId
uint32_t DatabaseId
Definition:
CarlaRecorderState.h:15
CarlaRecorderStateTrafficLight::Read
void Read(std::istream &InFile)
Definition:
CarlaRecorderState.cpp:19
CarlaRecorderStateTrafficLight::IsFrozen
bool IsFrozen
Definition:
CarlaRecorderState.h:16
CarlaRecorderStates
Definition:
CarlaRecorderState.h:28
CarlaRecorderStateTrafficLight::Write
void Write(std::ostream &OutFile)
Definition:
CarlaRecorderState.cpp:11
CarlaRecorderStateTrafficLight::State
char State
Definition:
CarlaRecorderState.h:18
Generated by
1.8.13