9 j = nlohmann::json{{
"agent", fp.agent},
11 {
"qw", fp.orientation->qw},
12 {
"qx", fp.orientation->qx},
13 {
"qy", fp.orientation->qy},
14 {
"qz", fp.orientation->qz},
15 {
"x", fp.position->x},
16 {
"y", fp.position->y},
17 {
"z", fp.position->z}};
23 j.at(
"agent").get_to(fp.agent);
24 j.at(
"frame").get_to(fp.frame);
25 j.at(
"qw").get_to(fp.orientation->qw);
26 j.at(
"qx").get_to(fp.orientation->qx);
27 j.at(
"qy").get_to(fp.orientation->qy);
28 j.at(
"qz").get_to(fp.orientation->qz);
29 j.at(
"x").get_to(fp.position->x);
30 j.at(
"y").get_to(fp.position->y);
31 j.at(
"z").get_to(fp.position->z);
37 j[
"recognized"] =
value.recognized;
38 j[
"spoken"] =
value.spoken;
44 j.at(
"recognized").get_to(
value.recognized);
45 j.at(
"spoken").get_to(
value.spoken);