Commit b982dec1 authored by oscar's avatar oscar

去除打印

parent 568ab898
......@@ -34,8 +34,8 @@ double correct_angle(std::vector<point2d>& points)
Eigen::SelfAdjointEigenSolver<Eigen::MatrixXd> eig(C); // 产生的vec和val按照特征值升序排列
vec = eig.eigenvectors();
val = eig.eigenvalues();
SDK_LOG(SDK_INFO, "vec = [%f,%f,%f,%f]", vec(0, 0), vec(0, 1), vec(1, 0), vec(1, 1));
SDK_LOG(SDK_INFO, "val = [%f,%f]", val(0), val(1));
//SDK_LOG(SDK_INFO, "vec = [%f,%f,%f,%f]", vec(0, 0), vec(0, 1), vec(1, 0), vec(1, 1));
//SDK_LOG(SDK_INFO, "val = [%f,%f]", val(0), val(1));
// 打印
//cout << "X_copy: " << endl << X_copy
Eigen::Vector2d dX(points[4].x - points[0].x, points[4].y - points[0].y);
......@@ -43,7 +43,7 @@ double correct_angle(std::vector<point2d>& points)
double alpha = dX.transpose() * orientation;
if (alpha < 0)
orientation = -orientation;
SDK_LOG(SDK_INFO, "correct_angle alpha = %f, orientation[0] = %f, orientation[1] = %f", alpha, orientation[0], orientation[1]);
//SDK_LOG(SDK_INFO, "correct_angle alpha = %f, orientation[0] = %f, orientation[1] = %f", alpha, orientation[0], orientation[1]);
double center_rot_y = atan2(orientation[1], orientation[0]);
return center_rot_y;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment