CARLA
 
载入中...
搜索中...
未找到
CarlaRecorderFrames.h
浏览该文件的文档.
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)
13{
14 uint64_t Id;
16 double Elapsed;
17
18 void Read(std::istream &InFile);
19
20 void Write(std::ostream &OutFile);
21
22};
23#pragma pack(pop)
24
26{
27
28public:
29
31 void Reset();
32
33 void SetFrame(double DeltaSeconds);
34
35 void WriteStart(std::ostream &OutFile);
36 void WriteEnd(std::ostream &OutFile);
37
38private:
39
41 std::streampos OffsetPreviousFrame;
42};
void SetFrame(double DeltaSeconds)
void WriteEnd(std::ostream &OutFile)
void WriteStart(std::ostream &OutFile)
std::streampos OffsetPreviousFrame
CarlaRecorderFrame Frame
void Write(std::ostream &OutFile)
void Read(std::istream &InFile)