Skip to content
Snippets Groups Projects
framed.cpp 366 B
#include "framed.h"

#include <RobotAPI/libraries/aron/common/aron/framed.aron.generated.h>

void
armarx::arondto::to_json(nlohmann::json& j, const FrameID& bo)
{
    j["agent"] = bo.agent;
    j["frame"] = bo.frame;
}

void
armarx::arondto::from_json(const nlohmann::json& j, FrameID& bo)
{
    j.at("agent").get_to(bo.agent);
    j.at("frame").get_to(bo.frame);
}