Closed prophecy closed 5 years ago
Fixed by swap the argument to _kdTree = new nanoflann::KDTreeEigenMatrixAdaptor<VecMatType(_leafSize, _inSourcePoints);
please consider to merge
I have fixed, and tested on Matlab using the following line. Will make a pull request soon. : )
_kdTree = new nanoflann::KDTreeEigenMatrixAdaptor<VecMatType>(_numDimensions, *_inSourcePoints);
Close this issue, made a pull request
Error log
src/NeighbourFinder.hpp:102:19: error: no matching constructor for initialization of 'nanoflann::KDTreeEigenMatrixAdaptor<Matrix<float, -1, 6, 0, -1, 6> >' ...= new nanoflann::KDTreeEigenMatrixAdaptor(*_inSourcePoints,
^
~~~~~ src/CorrespondenceFilter.cpp:34:22: note: in instantiation of member function 'registration::NeighbourFinder<Eigen::Matrix<float, -1, 6, 0, -1, 6>