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

shome
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>

int
 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
pcl/trim_icp/src/trim_icp.cpp:6:0:
/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’:
/usr/local/include/pcl-1.8/pcl/recognition/ransac_based/trimmed_icp.h:128:15:
error: ‘aux’ has not been declared
               aux::transform (guess_and_result, source_points.points[i],
transf
               ^
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'
failed
make[1]: *** [CMakeFiles/trim_icp.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2




--
Sent from: http://www.pcl-users.org/
_______________________________________________
PCL-users@pointclouds.org / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users