CARLA
Unreal
CarlaUE4
Plugins
Carla
Source
Carla
Recorder
CarlaRecorderPosition.h
Go to the documentation of this file.
1
// Copyright (c) 2017 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
CarlaRecorderPosition
14
{
15
uint32_t
DatabaseId
;
16
FVector
Location
;
17
FVector
Rotation
;
18
19
void
Read
(std::istream &InFile);
20
21
void
Write
(std::ostream &OutFile);
22
23
};
24
#pragma pack(pop)
25
26
class
CarlaRecorderPositions
27
{
28
public
:
29
30
void
Add(
const
CarlaRecorderPosition
&InObj);
31
32
void
Clear(
void
);
33
34
void
Write
(std::ostream &OutFile);
35
36
void
Read
(std::istream &InFile);
37
38
const
std::vector<CarlaRecorderPosition>& GetPositions();
39
40
private
:
41
42
std::vector<CarlaRecorderPosition>
Positions
;
43
};
CarlaRecorderPosition::DatabaseId
uint32_t DatabaseId
Definition:
CarlaRecorderPosition.h:15
CarlaRecorderPosition::Location
FVector Location
Definition:
CarlaRecorderPosition.h:16
CarlaRecorderPosition::Rotation
FVector Rotation
Definition:
CarlaRecorderPosition.h:17
CarlaRecorderPosition::Read
void Read(std::istream &InFile)
Definition:
CarlaRecorderPosition.cpp:19
CarlaRecorderPositions::Positions
std::vector< CarlaRecorderPosition > Positions
Definition:
CarlaRecorderPosition.h:42
CarlaRecorderPosition
Definition:
CarlaRecorderPosition.h:13
CarlaRecorderPosition::Write
void Write(std::ostream &OutFile)
Definition:
CarlaRecorderPosition.cpp:11
CarlaRecorderPositions
Definition:
CarlaRecorderPosition.h:26
Generated by
1.8.13