0.2.0
Loading...
Searching...
No Matches
ImuFile.hpp
Go to the documentation of this file.
1// This file is part of INSTINCT, the INS Toolkit for Integrated
2// Navigation Concepts and Training by the Institute of Navigation of
3// the University of Stuttgart, Germany.
4//
5// This Source Code Form is subject to the terms of the Mozilla Public
6// License, v. 2.0. If a copy of the MPL was not distributed with this
7// file, You can obtain one at https://mozilla.org/MPL/2.0/.
8
13
14#pragma once
15
18
19namespace NAV
20{
22class ImuFile : public Imu, public FileReader
23{
24 public:
28 ~ImuFile() override;
30 ImuFile(const ImuFile&) = delete;
32 ImuFile(ImuFile&&) = delete;
34 ImuFile& operator=(const ImuFile&) = delete;
37
39 [[nodiscard]] static std::string typeStatic();
40
42 [[nodiscard]] std::string type() const override;
43
45 [[nodiscard]] static std::string category();
46
49 void guiConfig() override;
50
52 [[nodiscard]] json save() const override;
53
56 void restore(const json& j) override;
57
59 bool resetNode() override;
60
61 private:
62 constexpr static size_t OUTPUT_PORT_INDEX_IMU_OBS = 0;
63 constexpr static size_t OUTPUT_PORT_INDEX_HEADER_COLUMNS = 1;
64
65 bool _withDelta = false;
66
68 bool initialize() override;
69
71 void deinitialize() override;
72
75 [[nodiscard]] std::shared_ptr<const NodeData> pollData();
76};
77
78} // namespace NAV
Abstract File Reader class.
nlohmann::json json
json namespace
Definition FlowManager.hpp:21
Abstract IMU Class.
Abstract File Reader class.
Definition FileReader.hpp:31
File Reader for Imu log files.
Definition ImuFile.hpp:23
ImuFile & operator=(ImuFile &&)=delete
Move assignment operator.
void restore(const json &j) override
Restores the node from a json object.
ImuFile(ImuFile &&)=delete
Move constructor.
ImuFile(const ImuFile &)=delete
Copy constructor.
static std::string typeStatic()
String representation of the Class Type.
std::string type() const override
String representation of the Class Type.
void guiConfig() override
ImGui config window which is shown on double click.
static std::string category()
String representation of the Class Category.
bool resetNode() override
Resets the node. Moves the read cursor to the start.
json save() const override
Saves the node into a json object.
~ImuFile() override
Destructor.
ImuFile & operator=(const ImuFile &)=delete
Copy assignment operator.
ImuFile()
Default constructor.
Abstract IMU Class.
Definition Imu.hpp:24