libpointmatcher compilation error [closed]
Hi,
I am trying to build libpointmatcher before I can build modular_cloud_matcher from ethzasl_mapping. My copy of libpointmatcher and libnabo have been updated to the latest.
I got the following errors:
freebody@ubuntu:~/freebody-ros-pkg/ethzasl_mapping/libpointmatcher$ make
[ 7%] Building CXX object CMakeFiles/pointmatcher.dir/pointmatcher/Core.cpp.o
[ 15%] Building CXX object CMakeFiles/pointmatcher.dir/pointmatcher/DataPointsFilters.cpp.o
[ 23%] Building CXX object CMakeFiles/pointmatcher.dir/pointmatcher/Matchers.cpp.o
/home/freebody/freebody-ros-pkg/ethzasl_mapping/libpointmatcher/pointmatcher/Matchers.cpp: In member function ‘MetricSpaceAligner<T>::Matches MetricSpaceAligner<T>::KDTreeMatcher::findClosests(const MetricSpaceAligner<T>::DataPoints&, const MetricSpaceAligner<T>::DataPoints&, bool&) [with T = float]’:
/home/freebody/freebody-ros-pkg/ethzasl_mapping/libpointmatcher/pointmatcher/Matchers.cpp:108: instantiated from here
/home/freebody/freebody-ros-pkg/ethzasl_mapping/libpointmatcher/pointmatcher/Matchers.cpp:103: error: no matching function for call to ‘Nabo::NearestNeighbourSearch<float>::knn(const Eigen::Matrix<float, -0x00000000000000001, -0x00000000000000001, 0, -0x00000000000000001, -0x00000000000000001>&, Eigen::Matrix<int, -0x00000000000000001, -0x00000000000000001, 0, -0x00000000000000001, -0x00000000000000001>&, Eigen::Matrix<float, -0x00000000000000001, -0x00000000000000001, 0, -0x00000000000000001, -0x00000000000000001>&, const int&, const float&, Nabo::NearestNeighbourSearch<float>::SearchOptionFlags, const float&)’
/home/freebody/freebody-ros-pkg/ethzasl_mapping/libnabo/nabo/nabo.h:223: note: candidates are: long unsigned int Nabo::NearestNeighbourSearch<T>::knn(const Eigen::Matrix<Scalar, -0x00000000000000001, 1, 0, -0x00000000000000001, 1>&, Eigen::Matrix<int, -0x00000000000000001, 1, 0, -0x00000000000000001, 1>&, Eigen::Matrix<Scalar, -0x00000000000000001, 1, 0, -0x00000000000000001, 1>&, int, T, unsigned int) [with T = float]
/home/freebody/freebody-ros-pkg/ethzasl_mapping/libnabo/nabo/nabo.h:234: note: long unsigned int Nabo::NearestNeighbourSearch<T>::knn(const Eigen::Matrix<LhsScalar, -0x00000000000000001, -0x00000000000000001, 0, -0x00000000000000001, -0x00000000000000001>&, Eigen::Matrix<int, -0x00000000000000001, -0x00000000000000001, 0, -0x00000000000000001, -0x00000000000000001>&, Eigen::Matrix<LhsScalar, -0x00000000000000001, -0x00000000000000001, 0, -0x00000000000000001, -0x00000000000000001>&, int, T, unsigned int) [with T = float]
/home/freebody/freebody-ros-pkg/ethzasl_mapping/libpointmatcher/pointmatcher/Matchers.cpp: In member function ‘MetricSpaceAligner<T>::Matches MetricSpaceAligner<T>::KDTreeMatcher::findClosests(const MetricSpaceAligner<T>::DataPoints&, const MetricSpaceAligner<T>::DataPoints&, bool&) [with T = double]’:
/home/freebody/freebody-ros-pkg/ethzasl_mapping/libpointmatcher/pointmatcher/Matchers.cpp:109: instantiated from here
/home/freebody/freebody-ros-pkg/ethzasl_mapping/libpointmatcher/pointmatcher/Matchers.cpp:103: error: no matching function for call to ‘Nabo::NearestNeighbourSearch<double>::knn(const Eigen::Matrix<double, -0x00000000000000001, -0x00000000000000001, 0, -0x00000000000000001, -0x00000000000000001>&, Eigen::Matrix<int, -0x00000000000000001, -0x00000000000000001, 0, -0x00000000000000001, -0x00000000000000001>&, Eigen::Matrix<double, -0x00000000000000001, -0x00000000000000001, 0, -0x00000000000000001, -0x00000000000000001>&, const int&, const double&, Nabo::NearestNeighbourSearch<double>::SearchOptionFlags, const double&)’
/home/freebody/freebody-ros-pkg/ethzasl_mapping/libnabo/nabo/nabo.h:223: note: candidates are: long unsigned int Nabo::NearestNeighbourSearch<T>::knn(const Eigen::Matrix<Scalar, -0x00000000000000001, 1, 0, -0x00000000000000001, 1>&, Eigen::Matrix<int, -0x00000000000000001, 1, 0, -0x00000000000000001, 1>&, Eigen::Matrix<Scalar, -0x00000000000000001, 1, 0, -0x00000000000000001, 1>&, int, T, unsigned int) [with T = double]
/home/freebody/freebody-ros-pkg/ethzasl_mapping/libnabo/nabo/nabo.h:234: note: long unsigned int Nabo::NearestNeighbourSearch<T>::knn(const Eigen::Matrix<LhsScalar, -0x00000000000000001, -0x00000000000000001, 0, -0x00000000000000001, -0x00000000000000001>&, Eigen::Matrix<int, -0x00000000000000001, -0x00000000000000001, 0, -0x00000000000000001, -0x00000000000000001>&, Eigen::Matrix<LhsScalar, -0x00000000000000001, -0x00000000000000001, 0, -0x00000000000000001, -0x00000000000000001>&, int, T, unsigned int) [with T = double]
make[2]: *** [CMakeFiles/pointmatcher.dir/pointmatcher/Matchers.cpp.o] Error 1
make[1]: *** [CMakeFiles/pointmatcher.dir/all] Error 2
make: *** [all] Error 2
Closed for the following reason
question is not relevant or outdated by
tfoote
close date 2012-03-15 17:32:27
add a comment