7 #ifndef IFM3D_DESERIALIZE_STRUCT_CALIBRATION_HPP
8 #define IFM3D_DESERIALIZE_STRUCT_CALIBRATION_HPP
12 #include <ifm3d/deserialize/deserialize_utils.hpp>
26 using Ptr = std::shared_ptr<struct ExtrinsicOpticToUser>;
35 Read(
const uint8_t* data)
37 trans_x = mkval<float>(data +
sizeof(
float) * 0);
38 trans_y = mkval<float>(data +
sizeof(
float) * 1);
39 trans_z = mkval<float>(data +
sizeof(
float) * 2);
40 rot_x = mkval<float>(data +
sizeof(
float) * 3);
41 rot_y = mkval<float>(data +
sizeof(
float) * 4);
42 rot_z = mkval<float>(data +
sizeof(
float) * 5);
50 using Ptr = std::shared_ptr<struct Calibration>;
52 std::array<float, 32> model_parameters;
54 Read(
const uint8_t* data)
56 model_id = mkval<uint32_t>(data);
57 mkarray<float, 32>(data +
sizeof(uint32_t), model_parameters);
68 #endif // IFM3D_DESERIALIZE_STRUCT_CALIBRATION_HPP