pcl::KdTreeFLANN<pcl::PointXYZ> gives memory corruption!
When I add the following line into my code, I get memory corruption error:
pcl::KdTreeFLANN<pcl::pointxyz> kdtree;
In fact i'm subscribing to "/rtabmap/cloud_map" (using turtlebot RTAB-map) and do some processes. All the processes works well except when I add that line of KdTreeFLANN the program crashes.
I appreciate if anyone helps me. Thanks.