CARLA
 
载入中...
搜索中...
未找到
CarlaRecorderDoorVehicle.h
浏览该文件的文档.
1// Copyright (c) 2023 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)
15{
16 // Use same type as carla::vehicle::CarlaWheeledVehicle::EVehicleDoor
17 using VehicleDoorType = uint8_t;
18
19 uint32_t DatabaseId;
21 bool bIsOpen;
22
23 void Read(std::istream &InFile);
24
25 void Write(std::ostream &OutFile);
26};
27#pragma pack(pop)
28
30{
31public:
32
33 void Add(const CarlaRecorderDoorVehicle &InObj);
34
35 void Clear(void);
36
37 void Write(std::ostream &OutFile);
38
39 void Read(std::istream &InFile);
40
41 const std::vector<CarlaRecorderDoorVehicle>& GetDoorVehicles();
42
43private:
44 std::vector<CarlaRecorderDoorVehicle> Vehicles;
45};
void Write(std::ostream &OutFile)
void Read(std::istream &InFile)
void Write(std::ostream &OutFile)
std::vector< CarlaRecorderDoorVehicle > Vehicles
void Add(const CarlaRecorderDoorVehicle &InObj)
void Read(std::istream &InFile)
const std::vector< CarlaRecorderDoorVehicle > & GetDoorVehicles()