error: no declaration matches ‘void PlaneGroundFilter::devide_plane(const pcl::PointCloud<velodyne_pointcloud::PointXYZIR>&, double&, pcl::PointCloud<velodyne_pointcloud::PointXYZIR>::Ptr, pcl::PointCloud<velodyne_pointcloud::PointXYZIR>::Ptr)’
208 | void PlaneGroundFilter::devide_plane(const pcl::PointCloud<VPoint> &p_sorted,double& x_boundary,
| ^~~~~~~~~~~~~~~~~
此段代码如下
void PlaneGroundFilter::devide_plane(const pcl::PointCloud<VPoint> &p_sorted,double& x_boundary,
pcl::PointCloud<VPoint>::Ptr plane,
pcl::PointCloud<VPoint>::Ptr slope_plane)
{
for (int i = 0; i < p_sorted.points.size(); i++){
int x = p_sorted_points[i].x;
int y = p_sorted_points[i].y;
int z = p_sorted_points[i].z;
if (x < x_boundary){
pcl::PointXYZ point1;
point1.x = x;
point1.y = y;
point1.z = z;
plane.push_back(point1);
}
else{
pcl::PointXYZ point2;
point2.x = x;
point2.y = y;
point2.z = z;
slope_plane.push_back(point2);
}
}
}