Skip to content

Commit f257eb4

Browse files
committed
update: 注解
1 parent 5681156 commit f257eb4

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎object_tracking/src/cluster/box_fitting.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ void getBoundingBox(vector<PointCloud<PointXYZ>> clusteredPoints,
348348
// std::cout << "boxFitting maxZ " << maxZ << std::endl; // boxFitting maxZ 0.525725
349349
// 最后一步:消除大多数无关对象,例如墙壁,灌木丛,建筑物和树木。实现尺寸阈值化以实现此目的。
350350
bool isPromising = ruleBasedFilter(pcPoints, maxZ, numPoints); // 比如聚类33,每一类里面有多少点 numPoints
351-
std::cout << "boxFitting isPromising:" << isPromising << std::endl;
351+
// std::cout << "boxFitting isPromising:" << isPromising << std::endl; // 1, 0
352352
if(!isPromising) continue;
353353
}
354354
else{

‎object_tracking/src/groundremove/ground_removal.cpp‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ void createAndMapPolarGrid(PointCloud<PointXYZ> cloud,
8686
int chI, binI;
8787
getCellIndexFromPoints(x, y, chI, binI); // xy坐标得到对应栅格坐标 得到CellIndex : chI, binI(极坐标:角度和半径)
8888
// TODO; modify abobe function so that below code would not need
89-
if(chI < 0 || chI >=numChannel || binI < 0 || binI >= numBin) continue; // to prevent segentation fault
90-
polarData[chI][binI].updateMinZ(z); // {if (z < minZ) minZ = z;} // 更新得到z值点的最小值,最终得到最小值
89+
if(chI < 0 || chI >=numChannel || binI < 0 || binI >= numBin) continue; // to prevent segentation fault 去除不合理点
90+
polarData[chI][binI].updateMinZ(z); // {if (z < minZ) minZ = z;} // 更新得到z值点的最小值,最终得到最小值 ??好几个点都在一个栅格,这些点只更新了updateMinZ ,点的其他信息不存储?
9191
}
9292
}
9393

@@ -236,7 +236,7 @@ void groundRemove(PointCloud<pcl::PointXYZ>::Ptr cloud, // 初始点云
236236
float hGround = polarData[chI][binI].getHGround();
237237
// std::cout << " hGround "<< hGround << std::endl; // 输出 大多数都是-2
238238
// std::cout << " z "<< z << std::endl; //
239-
if (z < (hGround + 0.25)) { // 判断hGround z=(-3.0~1.0)
239+
if (z < (hGround + 0.25)) { // 判断hGround getHGround())最终的判断重点就是getHeight 高度值
240240
groundCloud->push_back(o); //
241241
} else {
242242
elevatedCloud->push_back(o);

0 commit comments

Comments
 (0)