GrabBag/AppUtils/AppConfig/Inc/VrHandEyeCalibConfig.h

43 lines
1.2 KiB
C
Raw Normal View History

#ifndef VRHANDEYECALIBCONFIG_H
#define VRHANDEYECALIBCONFIG_H
#include <cstring>
/**
* @brief
*
* X/Y/Z
* 姿姿
* Eye Rx(rotX) * Ry(rotY) * Rz(rotZ)
*/
struct VrHandEyeCalibMatrix
{
int cameraIndex;
double matrix[16];
int eulerOrder;
double rotX;
double rotY;
double rotZ;
/* 接近点偏移 (mm): approach point offset along -axialDir (screw) / -normalDir (tool disk). */
double approachOffset;
VrHandEyeCalibMatrix()
: cameraIndex(1)
, eulerOrder(11)
, rotX(0.0)
, rotY(0.0)
, rotZ(0.0)
, approachOffset(0.0)
{
double identity[16] = {
1.0, 0.0, 0.0, 0.0,
0.0, 1.0, 0.0, 0.0,
0.0, 0.0, 1.0, 0.0,
0.0, 0.0, 0.0, 1.0
};
memcpy(matrix, identity, sizeof(matrix));
}
};
#endif // VRHANDEYECALIBCONFIG_H