CARLA
Toggle main menu visibility
Loading...
Searching...
No Matches
Unreal
CarlaUnreal
Plugins
Carla
Source
Carla
Recorder
CarlaRecorderAnimBiker.h
Go to the documentation of this file.
1
// Copyright (c) 2026 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)
13
struct
CarlaRecorderAnimBiker
14
{
15
uint32_t
DatabaseId
;
16
float
ForwardSpeed
{ 0.0f };
17
float
EngineRotation
{ 0.0f };
18
19
void
Read
(std::istream &InFile);
20
21
void
Write
(std::ostream &OutFile)
const
;
22
23
};
24
#pragma pack(pop)
25
26
class
CarlaRecorderAnimBikers
27
{
28
public
:
29
30
void
Add
(
const
CarlaRecorderAnimBiker
&InObj);
31
32
void
Clear
(
void
);
33
34
void
Write
(std::ostream &OutFile)
const
;
35
36
void
Read
(std::istream &InFile);
37
38
const
std::vector<CarlaRecorderAnimBiker>&
GetBikers
();
39
40
private
:
41
42
std::vector<CarlaRecorderAnimBiker>
Bikers
;
43
};
CarlaRecorderAnimBikers
Definition
CarlaRecorderAnimBiker.h:27
CarlaRecorderAnimBikers::Write
void Write(std::ostream &OutFile) const
Definition
CarlaRecorderAnimBiker.cpp:37
CarlaRecorderAnimBikers::Clear
void Clear(void)
Definition
CarlaRecorderAnimBiker.cpp:27
CarlaRecorderAnimBikers::Bikers
std::vector< CarlaRecorderAnimBiker > Bikers
Definition
CarlaRecorderAnimBiker.h:42
CarlaRecorderAnimBikers::Add
void Add(const CarlaRecorderAnimBiker &InObj)
Definition
CarlaRecorderAnimBiker.cpp:32
CarlaRecorderAnimBikers::GetBikers
const std::vector< CarlaRecorderAnimBiker > & GetBikers()
Definition
CarlaRecorderAnimBiker.cpp:72
CarlaRecorderAnimBikers::Read
void Read(std::istream &InFile)
Definition
CarlaRecorderAnimBiker.cpp:58
CarlaRecorderAnimBiker
Definition
CarlaRecorderAnimBiker.h:14
CarlaRecorderAnimBiker::ForwardSpeed
float ForwardSpeed
Definition
CarlaRecorderAnimBiker.h:16
CarlaRecorderAnimBiker::Write
void Write(std::ostream &OutFile) const
Definition
CarlaRecorderAnimBiker.cpp:11
CarlaRecorderAnimBiker::EngineRotation
float EngineRotation
Definition
CarlaRecorderAnimBiker.h:17
CarlaRecorderAnimBiker::Read
void Read(std::istream &InFile)
Definition
CarlaRecorderAnimBiker.cpp:18
CarlaRecorderAnimBiker::DatabaseId
uint32_t DatabaseId
Definition
CarlaRecorderAnimBiker.h:15
Generated by
1.18.0