CARLA
Unreal
CarlaUE4
Plugins
Carla
Source
Carla
Recorder
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>
11
#include "
Carla/Vehicle/CarlaWheeledVehicle.h
"
12
13
#pragma pack(push, 1)
14
struct
WheelInfo
15
{
16
EVehicleWheelLocation
Location
=
EVehicleWheelLocation::BR_Wheel
;
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)
26
struct
CarlaRecorderAnimWheels
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
36
class
CarlaRecorderAnimVehicleWheels
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
};
EVehicleWheelLocation::BR_Wheel
CarlaRecorderAnimVehicleWheels::VehicleWheels
std::vector< CarlaRecorderAnimWheels > VehicleWheels
Definition:
CarlaRecorderAnimVehicleWheels.h:51
WheelInfo::SteeringAngle
float SteeringAngle
Definition:
CarlaRecorderAnimVehicleWheels.h:17
WheelInfo::Write
void Write(std::ostream &OutFile) const
Definition:
CarlaRecorderAnimVehicleWheels.cpp:11
WheelInfo::Location
EVehicleWheelLocation Location
Definition:
CarlaRecorderAnimVehicleWheels.h:16
CarlaRecorderAnimWheels::DatabaseId
uint32_t DatabaseId
Definition:
CarlaRecorderAnimVehicleWheels.h:28
WheelInfo
Definition:
CarlaRecorderAnimVehicleWheels.h:14
CarlaWheeledVehicle.h
WheelInfo::Read
void Read(std::istream &InFile)
Definition:
CarlaRecorderAnimVehicleWheels.cpp:18
WheelInfo::TireRotation
float TireRotation
Definition:
CarlaRecorderAnimVehicleWheels.h:18
EVehicleWheelLocation
EVehicleWheelLocation
Definition:
CarlaWheeledVehicle.h:44
CarlaRecorderAnimVehicleWheels
Definition:
CarlaRecorderAnimVehicleWheels.h:36
CarlaRecorderAnimWheels::WheelValues
std::vector< WheelInfo > WheelValues
Definition:
CarlaRecorderAnimVehicleWheels.h:29
CarlaRecorderAnimWheels
Definition:
CarlaRecorderAnimVehicleWheels.h:26
Generated by
1.8.13