CARLA
Toggle main menu visibility
Loading...
Searching...
No Matches
Unreal
CarlaUnreal
Plugins
Carla
Source
Carla
Recorder
CarlaRecorderEventAdd.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
struct
CarlaRecorderActorAttribute
13
{
14
uint8_t
Type
;
// EActorAttributeType
15
FString
Id
;
// string
16
FString
Value
;
// string
17
};
18
19
struct
CarlaRecorderActorDescription
20
{
21
uint32_t
UId
;
22
FString
Id
;
// string
23
std::vector<CarlaRecorderActorAttribute>
Attributes
;
24
};
25
26
struct
CarlaRecorderEventAdd
27
{
28
uint32_t
DatabaseId
;
29
uint8_t
Type
;
30
FVector
Location
;
31
FVector
Rotation
;
32
CarlaRecorderActorDescription
Description
;
33
34
void
Read
(std::istream &InFile);
35
void
Write
(std::ostream &OutFile)
const
;
36
};
37
38
class
CarlaRecorderEventsAdd
39
{
40
41
public
:
42
void
Add
(
const
CarlaRecorderEventAdd
&Event);
43
void
Clear
(
void
);
44
void
Write
(std::ostream &OutFile);
45
void
Read
(std::istream &InFile);
46
const
std::vector<CarlaRecorderEventAdd>&
GetEvents
();
47
48
private
:
49
std::vector<CarlaRecorderEventAdd>
Events
;
50
};
CarlaRecorderEventsAdd
Definition
CarlaRecorderEventAdd.h:39
CarlaRecorderEventsAdd::Events
std::vector< CarlaRecorderEventAdd > Events
Definition
CarlaRecorderEventAdd.h:49
CarlaRecorderEventsAdd::Add
void Add(const CarlaRecorderEventAdd &Event)
Definition
CarlaRecorderEventAdd.cpp:77
CarlaRecorderEventsAdd::Clear
void Clear(void)
Definition
CarlaRecorderEventAdd.cpp:72
CarlaRecorderEventsAdd::Read
void Read(std::istream &InFile)
Definition
CarlaRecorderEventAdd.cpp:108
CarlaRecorderEventsAdd::Write
void Write(std::ostream &OutFile)
Definition
CarlaRecorderEventAdd.cpp:82
CarlaRecorderEventsAdd::GetEvents
const std::vector< CarlaRecorderEventAdd > & GetEvents()
Definition
CarlaRecorderEventAdd.cpp:120
CarlaRecorderActorAttribute
Definition
CarlaRecorderEventAdd.h:13
CarlaRecorderActorAttribute::Type
uint8_t Type
Definition
CarlaRecorderEventAdd.h:14
CarlaRecorderActorAttribute::Id
FString Id
Definition
CarlaRecorderEventAdd.h:15
CarlaRecorderActorAttribute::Value
FString Value
Definition
CarlaRecorderEventAdd.h:16
CarlaRecorderActorDescription
Definition
CarlaRecorderEventAdd.h:20
CarlaRecorderActorDescription::UId
uint32_t UId
Definition
CarlaRecorderEventAdd.h:21
CarlaRecorderActorDescription::Attributes
std::vector< CarlaRecorderActorAttribute > Attributes
Definition
CarlaRecorderEventAdd.h:23
CarlaRecorderActorDescription::Id
FString Id
Definition
CarlaRecorderEventAdd.h:22
CarlaRecorderEventAdd
Definition
CarlaRecorderEventAdd.h:27
CarlaRecorderEventAdd::Location
FVector Location
Definition
CarlaRecorderEventAdd.h:30
CarlaRecorderEventAdd::Write
void Write(std::ostream &OutFile) const
Definition
CarlaRecorderEventAdd.cpp:14
CarlaRecorderEventAdd::Rotation
FVector Rotation
Definition
CarlaRecorderEventAdd.h:31
CarlaRecorderEventAdd::Read
void Read(std::istream &InFile)
Definition
CarlaRecorderEventAdd.cpp:40
CarlaRecorderEventAdd::DatabaseId
uint32_t DatabaseId
Definition
CarlaRecorderEventAdd.h:28
CarlaRecorderEventAdd::Description
CarlaRecorderActorDescription Description
Definition
CarlaRecorderEventAdd.h:32
CarlaRecorderEventAdd::Type
uint8_t Type
Definition
CarlaRecorderEventAdd.h:29
Generated by
1.18.0