3#include <SimoxUtility/math/pose/pose.h>
17 value.e0 = j.at(
"x").get<
float>();
18 value.e1 = j.at(
"y").get<
float>();
32 value.e0 = j.at(
"x").get<
float>();
33 value.e1 = j.at(
"y").get<
float>();
34 value.e2 = j.at(
"z").get<
float>();
56 const armarx::Vector3f pos = j.at(
"position").get<armarx::Vector3f>();
79 color.r = j.at(
"r").get<Ice::Byte>();
80 color.g = j.at(
"g").get<Ice::Byte>();
81 color.b = j.at(
"b").get<Ice::Byte>();
82 color.a = j.at(
"a").get<Ice::Byte>();
97 j[
"pose"] = element.pose;
98 j[
"color"] = element.color;
99 j[
"flags"] = element.flags;
100 j[
"scale"] = element.scale;
110 element.id = j.at(
"id").get<std::string>();
111 element.pose = j.at(
"pose").get<data::GlobalPose>();
112 element.color = j.at(
"color").get<data::Color>();
113 element.flags = j.at(
"flags").get<
int>();
114 element.scale = j.at(
"scale").get<armarx::Vector3f>();
Quaternion< float, 0 > Quaternionf
void to_json(nlohmann::json &j, RecordingBatchHeader const &batch)
void from_json(nlohmann::json const &j, RecordingBatchHeader &batch)
void from_json_base(const nlohmann::json &j, data::Element &value)
void to_json_base(nlohmann::json &j, const data::Element &element)
This file is part of ArmarX.
void from_json(const nlohmann::json &j, Vector2f &value)
void to_json(nlohmann::json &j, const Vector2f &value)
std::shared_ptr< Value > value()