CARLA
CarlaRecorderAnimVehicle.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 #include <vector>
11 
12 #pragma pack(push, 1)
14 {
15  uint32_t DatabaseId;
16  float Steering;
17  float Throttle;
18  float Brake;
19  bool bHandbrake;
20  int32_t Gear;
21 
22  void Read(std::istream &InFile);
23 
24  void Write(std::ostream &OutFile);
25 
26 };
27 #pragma pack(pop)
28 
30 {
31 public:
32 
33  void Add(const CarlaRecorderAnimVehicle &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<CarlaRecorderAnimVehicle>& GetVehicles();
42 private:
43 
44  std::vector<CarlaRecorderAnimVehicle> Vehicles;
45 };
std::vector< CarlaRecorderAnimVehicle > Vehicles
void Write(std::ostream &OutFile)
void Read(std::istream &InFile)