CARLA
Unreal
CarlaUE4
Plugins
Carla
Source
Carla
Recorder
CarlaRecorderFrames.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
11
#pragma pack(push, 1)
12
struct
CarlaRecorderFrame
13
{
14
uint64_t
Id
;
15
double
DurationThis
;
16
double
Elapsed
;
17
18
void
Read
(std::istream &InFile);
19
20
void
Write
(std::ostream &OutFile);
21
22
};
23
#pragma pack(pop)
24
25
class
CarlaRecorderFrames
26
{
27
28
public
:
29
30
CarlaRecorderFrames
(
void
);
31
void
Reset();
32
33
void
SetFrame(
double
DeltaSeconds);
34
35
void
WriteStart(std::ostream &OutFile);
36
void
WriteEnd(std::ostream &OutFile);
37
38
private
:
39
40
CarlaRecorderFrame
Frame
;
41
std::streampos
OffsetPreviousFrame
;
42
};
CarlaRecorderFrames::Frame
CarlaRecorderFrame Frame
Definition:
CarlaRecorderFrames.h:40
CarlaRecorderFrame
Definition:
CarlaRecorderFrames.h:12
CarlaRecorderFrames::OffsetPreviousFrame
std::streampos OffsetPreviousFrame
Definition:
CarlaRecorderFrames.h:41
CarlaRecorderFrame::Elapsed
double Elapsed
Definition:
CarlaRecorderFrames.h:16
CarlaRecorderFrames
Definition:
CarlaRecorderFrames.h:25
CarlaRecorderFrame::DurationThis
double DurationThis
Definition:
CarlaRecorderFrames.h:15
CarlaRecorderFrame::Read
void Read(std::istream &InFile)
Definition:
CarlaRecorderFrames.cpp:11
CarlaRecorderFrame::Write
void Write(std::ostream &OutFile)
Definition:
CarlaRecorderFrames.cpp:16
CarlaRecorderFrame::Id
uint64_t Id
Definition:
CarlaRecorderFrames.h:14
Generated by
1.8.13