licornea_tools
kinect_internal_parameters.cc
Go to the documentation of this file.
2 
3 namespace tlz {
4 
6  #define COLOR_PARAM(__field__) j["color"][#__field__] = param.color.__field__;
7  #define IR_PARAM(__field__) j["ir"][#__field__] = param.ir.__field__;
8  json j = {
9  {"color", json::object()},
10  {"ir", json::object()}
11  };
14  #undef COLOR_PARAM
15  #undef IR_PARAM
16  return j;
17 }
18 
19 
20 
22  #define COLOR_PARAM(__field__) param.color.__field__ = j["color"][#__field__];
23  #define IR_PARAM(__field__) param.ir.__field__ = j["ir"][#__field__];
27  return param;
28  #undef COLOR_PARAM
29  #undef IR_PARAM
30 }
31 
32 }
#define KINECT_INTERNAL_PARAMETERS_COLOR_ELEMENTS
kinect_internal_parameters decode_kinect_internal_parameters(const json &j)
#define KINECT_INTERNAL_PARAMETERS_IR_ELEMENTS
json encode_kinect_internal_parameters(const kinect_internal_parameters &param)
nlohmann::json json
Definition: json.h:11