33 #ifndef RC_HAND_EYE_CALIB_JSON_CONVERSIONS_H 34 #define RC_HAND_EYE_CALIB_JSON_CONVERSIONS_H 38 #include <rc_hand_eye_calibration_client/SetCalibrationPose.h> 39 #include <rc_hand_eye_calibration_client/SetCalibration.h> 40 #include <rc_hand_eye_calibration_client/Calibration.h> 41 #include <rc_hand_eye_calibration_client/Trigger.h> 52 j.at(
"success").get_to(r.success);
53 j.at(
"status").get_to(r.status);
54 j.at(
"message").get_to(r.message);
65 j.at(
"success").get_to(r.success);
66 j.at(
"status").get_to(r.status);
67 j.at(
"message").get_to(r.message);
77 j.at(
"success").get_to(r.success);
78 j.at(
"status").get_to(r.status);
79 j.at(
"message").get_to(r.message);
80 j.at(
"pose").get_to(r.pose);
81 j.at(
"error").get_to(r.error);
83 r.translation_error_meter=0;
84 if (j.count(
"translation_error_meter"))
86 j.at(
"translation_error_meter").get_to(r.translation_error_meter);
89 r.rotation_error_degree=0;
90 if (j.count(
"rotation_error_degree"))
92 j.at(
"rotation_error_degree").get_to(r.rotation_error_degree);
95 j.at(
"robot_mounted").get_to(r.robot_mounted);
101 j[
"robot_mounted"] = r.robot_mounted;
106 j.at(
"success").get_to(r.success);
107 j.at(
"status").get_to(r.status);
108 j.at(
"message").get_to(r.message);
113 #endif // RC_HAND_EYE_CALIB_JSON_CONVERSIONS_H void to_json(nlohmann::json &j, const TriggerRequest &r)
void from_json(const nlohmann::json &j, TriggerResponse &r)