CARLA
Unreal
CarlaUE4
Plugins
Carla
Source
Carla
Recorder
CarlaRecorderLightVehicle.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
#include <type_traits>
12
13
#pragma pack(push, 1)
14
struct
CarlaRecorderLightVehicle
15
{
16
// Use same type as carla::rpc::VehicleLightState::LightState
17
using
VehicleLightStateType
= uint32_t;
18
19
uint32_t
DatabaseId
;
20
VehicleLightStateType
State
;
21
22
void
Read
(std::istream &InFile);
23
24
void
Write
(std::ostream &OutFile);
25
};
26
#pragma pack(pop)
27
28
struct
CarlaRecorderLightVehicles
29
{
30
public
:
31
32
void
Add(
const
CarlaRecorderLightVehicle
&InObj);
33
34
void
Clear(
void
);
35
36
void
Write
(std::ostream &OutFile);
37
38
void
Read
(std::istream &InFile);
39
40
const
std::vector<CarlaRecorderLightVehicle>& GetLightVehicles();
41
42
private
:
43
44
std::vector<CarlaRecorderLightVehicle>
Vehicles
;
45
};
CarlaRecorderLightVehicle
Definition:
CarlaRecorderLightVehicle.h:14
CarlaRecorderLightVehicles
Definition:
CarlaRecorderLightVehicle.h:28
CarlaRecorderLightVehicle::Write
void Write(std::ostream &OutFile)
Definition:
CarlaRecorderLightVehicle.cpp:12
CarlaRecorderLightVehicles::Vehicles
std::vector< CarlaRecorderLightVehicle > Vehicles
Definition:
CarlaRecorderLightVehicle.h:44
CarlaRecorderLightVehicle::VehicleLightStateType
uint32_t VehicleLightStateType
Definition:
CarlaRecorderLightVehicle.h:17
CarlaRecorderLightVehicle::DatabaseId
uint32_t DatabaseId
Definition:
CarlaRecorderLightVehicle.h:19
CarlaRecorderLightVehicle::State
VehicleLightStateType State
Definition:
CarlaRecorderLightVehicle.h:20
CarlaRecorderLightVehicle::Read
void Read(std::istream &InFile)
Definition:
CarlaRecorderLightVehicle.cpp:18
Generated by
1.8.13