GrabBag/AppUtils/AppConfig/Inc/VrHandEyeCalibConfig.h

51 lines
1.5 KiB
C
Raw Normal View History

#ifndef VRHANDEYECALIBCONFIG_H
#define VRHANDEYECALIBCONFIG_H
#include <cstring>
/**
* @brief
*
* X/Y/Z
* 姿姿
* rotX/Y/Z : Eye Rx(rotX)*Ry(rotY)*Rz(rotZ)
* outRotX/Y/Z: Robot Rx*Ry*Rz
* "算法定义的工具系""机器人期望的 TCP 系"
*/
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;
double outRotX;
double outRotY;
double outRotZ;
VrHandEyeCalibMatrix()
: cameraIndex(1)
, eulerOrder(11)
, rotX(0.0)
, rotY(0.0)
, rotZ(0.0)
, approachOffset(0.0)
, outRotX(0.0)
, outRotY(0.0)
, outRotZ(15.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