CARLA
CarlaRecorderAnimVehicleWheels.h
Go to the documentation of this file.
1 // Copyright (c) 2022 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>
12 
13 #pragma pack(push, 1)
14 struct WheelInfo
15 {
17  float SteeringAngle = 0.0f;
18  float TireRotation = 0.0f;
19 
20  void Read(std::istream &InFile);
21  void Write(std::ostream &OutFile) const;
22 };
23 
24 #pragma pack(pop)
25 #pragma pack(push, 1)
27 {
28  uint32_t DatabaseId;
29  std::vector<WheelInfo> WheelValues;
30 
31  void Read(std::istream &InFile);
32  void Write(std::ostream &OutFile);
33 };
34 #pragma pack(pop)
35 
37 {
38 public:
39 
40  void Add(const CarlaRecorderAnimWheels &InObj);
41 
42  void Clear(void);
43 
44  void Write(std::ostream &OutFile);
45 
46  void Read(std::istream &InFile);
47 
48  const std::vector<CarlaRecorderAnimWheels>& GetVehicleWheels();
49 private:
50 
51  std::vector<CarlaRecorderAnimWheels> VehicleWheels;
52 };
std::vector< CarlaRecorderAnimWheels > VehicleWheels
void Write(std::ostream &OutFile) const
EVehicleWheelLocation Location
void Read(std::istream &InFile)
EVehicleWheelLocation
std::vector< WheelInfo > WheelValues