armarx.cpp
Go to the documentation of this file.
1#include "armarx.h"
2
3#include <RobotAPI/libraries/aron/common/aron/Names.aron.generated.h>
4
5void
6armarx::arondto::to_json(nlohmann::json& j, const Names& bo)
7{
8 j["recognized"] = bo.recognized;
9 j["spoken"] = bo.spoken;
10}
11
12void
13armarx::arondto::from_json(const nlohmann::json& j, Names& bo)
14{
15 j.at("recognized").get_to(bo.recognized);
16 j.at("spoken").get_to(bo.spoken);
17}
void to_json(nlohmann::json &j, const Names &bo)
Definition armarx.cpp:6
void from_json(const nlohmann::json &j, Names &bo)
Definition armarx.cpp:13
std::vector< std::string > spoken
Definition Names.h:12
std::vector< std::string > recognized
Definition Names.h:11