CARLA
 
载入中...
搜索中...
未找到
CarlaRecorderAnimVehicleWheels.h
浏览该文件的文档.
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)
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{
38public:
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();
49private:
50
51 std::vector<CarlaRecorderAnimWheels> VehicleWheels;
52};
EVehicleWheelLocation
std::vector< CarlaRecorderAnimWheels > VehicleWheels
void Add(const CarlaRecorderAnimWheels &InObj)
const std::vector< CarlaRecorderAnimWheels > & GetVehicleWheels()
EVehicleWheelLocation Location
void Read(std::istream &InFile)
void Write(std::ostream &OutFile) const