Skip to content

Commit

Permalink
fixed some bugs.
Browse files Browse the repository at this point in the history
  • Loading branch information
HaoLi-China committed Jan 9, 2015
1 parent 5ece8cf commit 2c47df4
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -971,9 +971,12 @@ void detect_table(PointCloudPtr_RGB_NORMAL sourceCloud, pcl::ModelCoefficients&
if(std::abs(normal.dot(Eigen::Vector3d(0,0,1)))>0.7){
break;
}
else{
appendCloud_RGB_NORMAL(planeCloud, remainingCloud);
}
}

pcl::copyPointCloud(*cloud_tem, *remainingCloud);
appendCloud_RGB_NORMAL(cloud_tem, remainingCloud);
}

//get transform matrix between plane and x_y plane
Expand Down Expand Up @@ -1019,7 +1022,8 @@ void getCloudOnTable(PointCloudPtr_RGB_NORMAL cloud, PointCloudPtr rect_cloud, E
p.normal_y = cloud_tem->at(k).normal_y;
p.normal_z = cloud_tem->at(k).normal_z;

if(cloud_tem->at(k).z < rect_cloud_tem->at(0).z){
//=========modify the height of tabletop things
if(cloud_tem->at(k).z < rect_cloud_tem->at(0).z + 0.015){
continue;
}

Expand Down

0 comments on commit 2c47df4

Please sign in to comment.