CARLA
Toggle main menu visibility
Loading...
Searching...
No Matches
Unreal
CarlaUnreal
Plugins
Carla
Source
Carla
Recorder
CarlaRecorderFrames.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
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::Reset
void Reset()
Definition
CarlaRecorderFrames.cpp:28
CarlaRecorderFrames::SetFrame
void SetFrame(double DeltaSeconds)
Definition
CarlaRecorderFrames.cpp:36
CarlaRecorderFrames::WriteEnd
void WriteEnd(std::ostream &OutFile)
Definition
CarlaRecorderFrames.cpp:83
CarlaRecorderFrames::WriteStart
void WriteStart(std::ostream &OutFile)
Definition
CarlaRecorderFrames.cpp:52
CarlaRecorderFrames::OffsetPreviousFrame
std::streampos OffsetPreviousFrame
Definition
CarlaRecorderFrames.h:41
CarlaRecorderFrames::Frame
CarlaRecorderFrame Frame
Definition
CarlaRecorderFrames.h:40
CarlaRecorderFrames::CarlaRecorderFrames
CarlaRecorderFrames(void)
Definition
CarlaRecorderFrames.cpp:23
CarlaRecorderFrame
Definition
CarlaRecorderFrames.h:13
CarlaRecorderFrame::Elapsed
double Elapsed
Definition
CarlaRecorderFrames.h:16
CarlaRecorderFrame::DurationThis
double DurationThis
Definition
CarlaRecorderFrames.h:15
CarlaRecorderFrame::Id
uint64_t Id
Definition
CarlaRecorderFrames.h:14
CarlaRecorderFrame::Write
void Write(std::ostream &OutFile)
Definition
CarlaRecorderFrames.cpp:16
CarlaRecorderFrame::Read
void Read(std::istream &InFile)
Definition
CarlaRecorderFrames.cpp:11
Generated by
1.18.0