30 lines
582 B
C
30 lines
582 B
C
#ifndef VRHANDEYECALIBCONFIG_H
|
|
#define VRHANDEYECALIBCONFIG_H
|
|
|
|
#include <cstring>
|
|
|
|
/**
|
|
* @brief 手眼标定矩阵(多项目共用)
|
|
*/
|
|
struct VrHandEyeCalibMatrix
|
|
{
|
|
int cameraIndex;
|
|
double matrix[16];
|
|
int eulerOrder;
|
|
|
|
VrHandEyeCalibMatrix()
|
|
: cameraIndex(1)
|
|
, eulerOrder(11)
|
|
{
|
|
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
|