2017_John
2017_John

Reputation: 99

Calculation of corner points for the localization of robot in 3D data

After segmenting out subset of a pointcloud that fitted using pcl::SACMODEL_LINE RANSAC line segmentation module. In the next step center point of extracted point cloud is computed using

pcl::compute3DCentroid(point_cloud, centroid);

Which gives accurate center point until the camera and the extracted line model object are parallel to each other. In the last step the corner points of the extracted point cloud i.e a fitted line are calculated by the addition of known distance on the centerpoint to calculate the corner points. This technique will be valid until the camera and the extracted line model object are parallel to each other as soon as camera makes an angle with it, the corner point calculation technique fails. Any suggestions what should I do to calculate the corner points using an existing reliable method in PCL library to compute the corner points of the extracted point cloud data (pcl::SACMODEL_LINE).

Thanks in advance.

Plot 1

Plot2

Upvotes: 2

Views: 703

Answers (1)

brad
brad

Reputation: 954

If you have your subset cloud accurately extracted using RANSAC, you should be able to use getMinMax3d() to find two corner points. http://docs.pointclouds.org/1.7.0/group__common.html#ga3166f09aafd659f69dc75e63f5e10f81

While these are not actual points of the subset cloud, they can be used to determine the boundary and the points that lie on it.

Upvotes: 2

Related Questions