0.2.0
Loading...
Searching...
No Matches
MatrixLogger.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
19
20namespace NAV
21{
22class NodeData;
23
25class MatrixLogger : public Node, public FileWriter, public CommonLog
26{
27 public:
31 ~MatrixLogger() override;
33 MatrixLogger(const MatrixLogger&) = delete;
40
42 [[nodiscard]] static std::string typeStatic();
43
45 [[nodiscard]] std::string type() const override;
46
48 [[nodiscard]] static std::string category();
49
52 void guiConfig() override;
53
55 [[nodiscard]] json save() const override;
56
59 void restore(const json& j) override;
60
62 void flush() override;
63
64 private:
65 constexpr static size_t INPUT_PORT_INDEX_MATRIX = 0;
66
68 bool initialize() override;
69
71 void deinitialize() override;
72
76 void writeMatrix(const InsTime& insTime, size_t pinIdx);
77
79 bool _headerWritten = false;
80};
81
82} // namespace NAV
Common logging variables like time into run and local positions.
File Writer class.
nlohmann::json json
json namespace
Definition FlowManager.hpp:21
Node Class.
Common logging variables like time into run and local positions.
Definition CommonLog.hpp:26
Parent class for other data loggers which manages the output filestream.
Definition FileWriter.hpp:27
The class is responsible for all time-related tasks.
Definition InsTime.hpp:667
Data Logger for PosVelAtt observations.
Definition MatrixLogger.hpp:26
MatrixLogger()
Default constructor.
MatrixLogger & operator=(MatrixLogger &&)=delete
Move assignment operator.
json save() const override
Saves the node into a json object.
~MatrixLogger() override
Destructor.
static std::string typeStatic()
String representation of the Class Type.
MatrixLogger(MatrixLogger &&)=delete
Move constructor.
void flush() override
Function called by the flow executer after finishing to flush out remaining data.
MatrixLogger(const MatrixLogger &)=delete
Copy constructor.
void restore(const json &j) override
Restores the node from a json object.
std::string type() const override
String representation of the Class Type.
void guiConfig() override
ImGui config window which is shown on double click.
MatrixLogger & operator=(const MatrixLogger &)=delete
Copy assignment operator.
static std::string category()
String representation of the Class Category.
Abstract parent class for all nodes.
Definition Node.hpp:86