ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

I've managed to get to the bottom of this one.

I needed to change,

segmentation.setModelType(pcl::SACMODEL_SPHERE);

to

segmentation.setModelType(pcl::SACMODEL_NORMAL_SPHERE);

RANSAC was still using the basic sphere model, not the sphere with normals. This is picking up sphere's really well now.