ethz-asl/aslam_cv2

Build aslam_cv_geometric_vision Error

Closed this issue · 1 comments

Hello,

When i try to build this package with : catkin build aslam_cv_geometric_vision

i got this error, but i don't know where did she came from. I have tried to reinstall opengv but nothings change, i also tried to make a new WS and rebuild all my PKG but same error.

`In file included from /home/joe/catkin_ws/src/aslam_cv2/aslam_cv_cameras/include/aslam/cameras/camera.h:11:0,

from /home/joe/catkin_ws/src/aslam_cv2/aslam_cv_cameras/include/aslam/cameras/camera-pinhole.h:4,

from /home/joe/catkin_ws/src/aslam_cv2/aslam_cv_geometric_vision/src/pnp-pose-estimator.cc:3:
/home/joe/catkin_ws/src/aslam_cv2/aslam_cv_geometric_vision/src/pnp-pose-estimator.cc: In member function ‘bool aslam::geometric_vision::PnpPoseEstimator::absoluteMultiPoseRansac(const Matrix2Xd&, const std::vector&, const Matrix3Xd&, double, int, aslam::NCamera::ConstPtr, aslam::Transformation*, std::vector, std::vector, int*)’:

/home/joe/catkin_ws/src/aslam_cv2/aslam_cv_geometric_vision/src/pnp-pose-estimator.cc:252:43: error: ‘class opengv::sac::Ransacopengv::sac_problems::absolute_pose::AbsolutePoseSacProblem’ has no member named ‘inlier_distances_to_model_’
CHECK_EQ(ransac.inliers_.size(), ransac.inlier_distances_to_model_.size());
^
/home/joe/catkin_ws/devel/include/glog/logging.h:746:44: note: in definition of macro ‘CHECK_OP_LOG’
google::GetReferenceableValue(val2),
^
/home/joe/catkin_ws/devel/include/glog/logging.h:788:30: note: in expansion of macro ‘CHECK_OP’
#define CHECK_EQ(val1, val2) CHECK_OP(EQ, ==, val1, val2)
^
/home/joe/catkin_ws/src/aslam_cv2/aslam_cv_geometric_vision/src/pnp-pose-estimator.cc:252:3: note: in expansion of macro ‘CHECK_EQ’
CHECK_EQ(ransac.inliers
.size(), ransac.inlier_distances_to_model_.size());
^
/home/joe/catkin_ws/src/aslam_cv2/aslam_cv_geometric_vision/src/pnp-pose-estimator.cc:270:39: error: ‘class opengv::sac::Ransacopengv::sac_problems::absolute_pose::AbsolutePoseSacProblem’ has no member named ‘inlier_distances_to_model_’
*inlier_distances_to_model = ransac.inlier_distances_to_model_;
^
make[2]: *** [CMakeFiles/aslam_cv_geometric_vision.dir/src/pnp-pose-estimator.cc.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/aslam_cv_geometric_vision.dir/all] Error 2
make: *** [all] Error 2
`
I use Ubuntu 16.04 with ROS Kinetic

Thanks you in advance,

Clement

So for everyone who have the same problem the solution for me was to 'catkin clean' my workspace
and to take the package opengv from 'https://github.com/ethz-asl/opengv' git clone it into my ~/catkin_ws/src and 'catkin build' my WS with that catkin recognize opengv and build him (i don't know why but it works fine for me)