|
@@ -227,8 +227,8 @@ void matrix_trans()
|
|
|
|
|
|
int main()
|
|
|
{
|
|
|
- matrix_trans();
|
|
|
- return 0;
|
|
|
+ // matrix_trans();
|
|
|
+ // return 0;
|
|
|
|
|
|
// calib process:
|
|
|
// 1. cc cut and fit ground, get normal and z
|
|
@@ -244,15 +244,19 @@ int main()
|
|
|
// lidar 2 normal [10:43:07] - normal: (0.001131,-0.024040,0.999710) z -0.0461051
|
|
|
// 86.3796 1.37069 -0.15165
|
|
|
|
|
|
+ // lidar 3 normal [11:18:44] - normal: (0.000833,0.010742,0.999942) z -0.071
|
|
|
+ // 91.4077 -0.614125 -0.0628335
|
|
|
+ // pitch 1.1 ---- 0.485875
|
|
|
+
|
|
|
pcl::PointCloud<pcl::PointXYZ>::Ptr t_front, t_back;
|
|
|
t_front = pcl::PointCloud<pcl::PointXYZ>::Ptr(new pcl::PointCloud<pcl::PointXYZ>);
|
|
|
t_back = pcl::PointCloud<pcl::PointXYZ>::Ptr(new pcl::PointCloud<pcl::PointXYZ>);
|
|
|
- if (!read_pointcloud("/home/youchen/extra_space/chutian/measure/puai_wj_2021/setting/calib/2front_pole.txt", t_front))
|
|
|
+ if (!read_pointcloud("/home/zx/yct/chutian_measure_2021/setting/calib/3front_pole.txt", t_front))
|
|
|
{
|
|
|
std::cout << "read front failed." << std::endl;
|
|
|
return -1;
|
|
|
}
|
|
|
- if(!read_pointcloud("/home/youchen/extra_space/chutian/measure/puai_wj_2021/setting/calib/2back_pole.txt", t_back))
|
|
|
+ if(!read_pointcloud("/home/zx/yct/chutian_measure_2021/setting/calib/3back_pole.txt", t_back))
|
|
|
{
|
|
|
std::cout << "read back failed." << std::endl;
|
|
|
return -1;
|
|
@@ -263,8 +267,8 @@ int main()
|
|
|
// 经过测试,地面法向量不适宜使用杆子获取,还是使用地面环点云拟合获得
|
|
|
// find_intrinsic((front_direction + back_direction) / 2.0, y_direction);
|
|
|
// find_intrinsic(Eigen::Vector3d(-0.000392,-0.011935,0.999929), y_direction);
|
|
|
- find_intrinsic(Eigen::Vector3d(0.001131,-0.024040,0.999710), y_direction);
|
|
|
-
|
|
|
+ // find_intrinsic(Eigen::Vector3d(0.001131,-0.024040,0.999710), y_direction);
|
|
|
+ find_intrinsic(Eigen::Vector3d(0.000833,0.010742,0.999942), y_direction);
|
|
|
return 0;
|
|
|
|
|
|
std::cout << "------------------------ start calib lidar 1 ----------------------" << std::endl;
|