11#include <nlohmann/json.hpp>
12using json = nlohmann::json;
20 {
"b_quat_p", pos.
b_quat_p().coeffs() },
25 if (j.contains(
"b_positionIMU_p"))
29 if (j.contains(
"b_quat_p"))
31 j.at(
"b_quat_p").get_to(pos.
_b_quat_p.coeffs());
nlohmann::json json
json namespace
const Eigen::Vector3d & b_positionIMU_p() const
IMU position in body frame coordinates in [m].
Eigen::Quaterniond _b_quat_p
Quaternion from IMU platform frame to body frame.
Eigen::Vector3d _b_positionIMU_p
IMU position in body frame coordinates in [m].
const Eigen::Quaterniond & b_quat_p() const
Quaternion from IMU platform frame to body frame.
void to_json(json &j, const Node &node)
Converts the provided node into a json object.
void from_json(const json &j, Node &node)
Converts the provided json object into a node object.