Skip to content

Commit 34da1b3

Browse files
committed
fix(ransac_ground_filter): change to pointXYZI
Signed-off-by: badai-nguyen <dai.nguyen@tier4.jp>
1 parent 9f35fce commit 34da1b3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

perception/ground_segmentation/include/ground_segmentation/ransac_ground_filter_nodelet.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ struct RGB
5656

5757
class RANSACGroundFilterComponent : public pointcloud_preprocessor::Filter
5858
{
59-
using PointType = pcl::PointXYZ;
59+
using PointType = pcl::PointXYZI;
6060

6161
protected:
6262
void filter(

perception/ground_segmentation/src/ransac_ground_filter_nodelet.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -198,11 +198,11 @@ void RANSACGroundFilterComponent::extractPointsIndices(
198198
Eigen::Affine3d RANSACGroundFilterComponent::getPlaneAffine(
199199
const pcl::PointCloud<PointType> segment_ground_cloud, const Eigen::Vector3d & plane_normal)
200200
{
201-
pcl::CentroidPoint<pcl::PointXYZ> centroid;
201+
pcl::CentroidPoint<PointType> centroid;
202202
for (const auto p : segment_ground_cloud.points) {
203203
centroid.add(p);
204204
}
205-
pcl::PointXYZ centroid_point;
205+
PointType centroid_point;
206206
centroid.get(centroid_point);
207207
Eigen::Translation<double, 3> trans(centroid_point.x, centroid_point.y, centroid_point.z);
208208
const ground_segmentation::PlaneBasis basis = getPlaneBasis(plane_normal);

0 commit comments

Comments
 (0)