Skip to content
Snippets Groups Projects
Commit a53730e9 authored by tixiaoshan's avatar tixiaoshan
Browse files

minor bug fix

parent 18ebdbe1
No related branches found
No related tags found
No related merge requests found
......@@ -128,7 +128,7 @@ public:
std::mutex mtxLoopInfo;
bool isDegenerate = false;
Eigen::Matrix<float, 6, 6> matP;
cv::Mat matP;
int laserCloudCornerFromMapDSNum = 0;
int laserCloudSurfFromMapDSNum = 0;
......@@ -222,7 +222,7 @@ public:
transformTobeMapped[i] = 0;
}
matP.setZero();
matP = cv::Mat(6, 6, CV_32F, cv::Scalar::all(0));
}
void laserCloudInfoHandler(const lio_sam::cloud_infoConstPtr& msgIn)
......@@ -671,6 +671,9 @@ public:
void visualizeLoopClosure()
{
if (loopIndexContainer.empty())
return;
visualization_msgs::MarkerArray markerArray;
// loop nodes
visualization_msgs::Marker markerNode;
......@@ -693,7 +696,7 @@ public:
markerEdge.ns = "loop_edges";
markerEdge.id = 1;
markerEdge.pose.orientation.w = 1;
markerEdge.scale.x = 0.1; markerEdge.scale.y = 0.1; markerEdge.scale.z = 0.1;
markerEdge.scale.x = 0.1;
markerEdge.color.r = 0.9; markerEdge.color.g = 0.9; markerEdge.color.b = 0;
markerEdge.color.a = 1;
......@@ -1126,7 +1129,6 @@ public:
cv::Mat matB(laserCloudSelNum, 1, CV_32F, cv::Scalar::all(0));
cv::Mat matAtB(6, 1, CV_32F, cv::Scalar::all(0));
cv::Mat matX(6, 1, CV_32F, cv::Scalar::all(0));
cv::Mat matP(6, 6, CV_32F, cv::Scalar::all(0));
PointType pointOri, coeff;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment