trim icp header causing compilation error

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

trim icp header causing compilation error

This post was updated on .
I tried to run a basic code for trip icp. I get compilation error just by
adding the trim icp header.minimum working example:
(pcl 1.8.1, ubuntu 16.04)

#include <iostream>
#include <pcl/io/pcd_io.h>
#include <pcl/point_types.h>
//#include <pcl/registration/icp.h>
#include <pcl/common/common.h>
#include <pcl/recognition/ransac_based/trimmed_icp.h>

 main (int argc, char** argv)
 return (0);

But it gives error

[ 50%] Building CXX object CMakeFiles/trim_icp.dir/trim_icp.cpp.o
In file included from
/usr/local/include/pcl-1.8/pcl/recognition/ransac_based/trimmed_icp.h: In
member function ‘void pcl::recognition::TrimmedICP<PointT,
Scalar>::align(const PointCloud&, int, pcl::recognition::TrimmedICP<PointT,
Scalar>::Matrix4&) const’:
error: ‘aux’ has not been declared
               aux::transform (guess_and_result, source_points.points[i],
CMakeFiles/trim_icp.dir/build.make:62: recipe for target
'CMakeFiles/trim_icp.dir/trim_icp.cpp.o' failed
make[2]: *** [CMakeFiles/trim_icp.dir/trim_icp.cpp.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/trim_icp.dir/all'
make[1]: *** [CMakeFiles/trim_icp.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

Sent from:
_______________________________________________ /