ANN vs FLANN: setRadiusSearch

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

ANN vs FLANN: setRadiusSearch

Ivan Dryanovski
Hi,

Is the radius search implemented in the KdTreeFLANN class yet? I am
getting an error when I attempt to use it. The same code running with
KdTreeANN workds fine. I am running revision 34641

This is the code:

  boost::shared_ptr<pcl::KdTreeFLANN<PointT> > kd_tree =
    boost::make_shared<pcl::KdTreeFLANN<PointT> > ();
  pcl::NormalEstimation<PointT, PointTNormal> norm_est;
  norm_est.setSearchMethod(kd_tree);
  norm_est.setRadiusSearch(kd_n_);
  norm_est.setInputCloud (boost::make_shared<const PointCloudT> (input));
  norm_est.compute (output);

This is the error from "norm_est.compute":

terminate called after throwing an instance of 'std::length_error'
  what():  vector::_M_fill_insert



Ivan
_______________________________________________
[hidden email] / http://pointclouds.org
https://code.ros.org/mailman/listinfo/pcl-users
Reply | Threaded
Open this post in threaded view
|

Re: ANN vs FLANN: setRadiusSearch

Radu B. Rusu
Administrator


On 12/09/2010 10:56 AM, Ivan Dryanovski wrote:
> Hi,
>
> Is the radius search implemented in the KdTreeFLANN class yet? I am
> getting an error when I attempt to use it. The same code running with
> KdTreeANN workds fine. I am running revision 34641

Marius is hacking on it as we speak as far as I know :) New and improved FLANN which will finally kick ANN out.

Cheers,
Radu.
--
http://pointclouds.org
_______________________________________________
[hidden email] / http://pointclouds.org
https://code.ros.org/mailman/listinfo/pcl-users