0.2.0
Loading...
Searching...
No Matches
Imu.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
17
19
20namespace NAV
21{
23class Imu : public Node
24{
25 public:
27 ~Imu() override = default;
29 Imu(const Imu&) = delete;
31 Imu(Imu&&) = delete;
33 Imu& operator=(const Imu&) = delete;
35 Imu& operator=(Imu&&) = delete;
36
39 void guiConfig() override;
40
42 [[nodiscard]] json save() const override;
43
46 void restore(const json& j) override;
47
49 [[nodiscard]] const ImuPos& imuPosition() const { return _imuPos; }
50
51 protected:
54 explicit Imu(std::string name);
55
58};
59
60} // namespace NAV
nlohmann::json json
json namespace
Definition FlowManager.hpp:21
Imu Position Data.
Node Class.
IMU Position.
Definition ImuPos.hpp:26
Abstract IMU Class.
Definition Imu.hpp:24
Imu(std::string name)
Constructor.
Imu(Imu &&)=delete
Move constructor.
json save() const override
Saves the node into a json object.
Imu & operator=(Imu &&)=delete
Move assignment operator.
void restore(const json &j) override
Restores the node from a json object.
void guiConfig() override
ImGui config window which is shown on double click.
Imu & operator=(const Imu &)=delete
Copy assignment operator.
const ImuPos & imuPosition() const
Position and rotation information for conversion from platform to body frame.
Definition Imu.hpp:49
~Imu() override=default
Destructor.
Imu(const Imu &)=delete
Copy constructor.
ImuPos _imuPos
Position and rotation information for conversion from platform to body frame.
Definition Imu.hpp:57
Abstract parent class for all nodes.
Definition Node.hpp:86
std::string name
Name of the Node.
Definition Node.hpp:378