0.3.0
Loading...
Searching...
No Matches
ImuPos.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
16#include "util/Eigen.hpp"
17
18namespace NAV
19{
20// Forward declarations
21class Imu;
22class MultiImuFile;
23
25class ImuPos
26{
27 public:
29 [[nodiscard]] const Eigen::Vector3d& b_positionIMU_p() const
30 {
31 return _b_positionIMU_p;
32 }
33
35 [[nodiscard]] const Eigen::Quaterniond& b_quat_p() const
36 {
37 return _b_quat_p;
38 }
39
40 [[nodiscard]] Eigen::Quaterniond p_quat_b() const
41 {
42 return _b_quat_p.conjugate();
43 }
44
45 private:
47 Eigen::Vector3d _b_positionIMU_p = Eigen::Vector3d::Zero();
48
50 Eigen::Quaterniond _b_quat_p = Eigen::Quaterniond::Identity();
51
52 friend class Imu;
53 friend class MultiImuFile;
54 friend void from_json(const json& j, ImuPos& pos);
55};
56
60void to_json(json& j, const ImuPos& pos);
64void from_json(const json& j, ImuPos& pos);
65
66} // namespace NAV
Vector space operations.
nlohmann::json json
json namespace
Definition FlowManager.hpp:21
void from_json(const json &j, ImColor &color)
Converts the provided json object into a color.
void to_json(json &j, const ImColor &color)
Converts the provided color into a json object.
IMU Position.
Definition ImuPos.hpp:26
const Eigen::Vector3d & b_positionIMU_p() const
IMU position in body frame coordinates in [m].
Definition ImuPos.hpp:29
friend void from_json(const json &j, ImuPos &pos)
Read info from a json object.
Eigen::Quaterniond p_quat_b() const
Quaternion from body frame to IMU platform frame.
Definition ImuPos.hpp:40
Eigen::Quaterniond _b_quat_p
Quaternion from IMU platform frame to body frame.
Definition ImuPos.hpp:50
Eigen::Vector3d _b_positionIMU_p
IMU position in body frame coordinates in [m].
Definition ImuPos.hpp:47
const Eigen::Quaterniond & b_quat_p() const
Quaternion from IMU platform frame to body frame.
Definition ImuPos.hpp:35
Abstract IMU Class.
Definition Imu.hpp:24
File reader for Multi-IMU data log files.
Definition MultiImuFile.hpp:27