/home/lzp/slamtest/graduationcode/p3/poseestimation/pose_estimation_3d2d.cpp: In function ‘void bundleAdjustment(std::vector<cv::Point3_<float> >, std::vector<cv::Point_<float> >, const cv::Mat&, cv::Mat&, cv::Mat&)’:
/home/lzp/slamtest/graduationcode/p3/poseestimation/pose_estimation_3d2d.cpp:154:50: error: no matching function for call to ‘g2o::BlockSolver<g2o::BlockSolverTraits<6, 3> >::BlockSolver(g2o::BlockSolver<g2o::BlockSolverTraits<6, 3> >::LinearSolverType*&)’
     Block* solver_ptr = new Block ( linearSolver );     // 矩阵块求解器
                                                  ^
/home/lzp/slamtest/graduationcode/p3/poseestimation/pose_estimation_3d2d.cpp:154:50: note: candidate is:
In file included from /usr/local/include/g2o/core/block_solver.h:199:0,
                 from /home/lzp/slamtest/graduationcode/p3/poseestimation/pose_estimation_3d2d.cpp:10:
/usr/local/include/g2o/core/block_solver.hpp:40:1: note: g2o::BlockSolver<Traits>::BlockSolver(std::unique_ptr<typename Traits::LinearSolverType>) [with Traits = g2o::BlockSolverTraits<6, 3>; typename Traits::LinearSolverType = g2o::LinearSolver<Eigen::Matrix<double, 6, 6, 0> >]
 BlockSolver<Traits>::BlockSolver(std::unique_ptr<LinearSolverType> linearSolver)
 ^
/usr/local/include/g2o/core/block_solver.hpp:40:1: note:   no known conversion for argument 1 from ‘g2o::BlockSolver<g2o::BlockSolverTraits<6, 3> >::LinearSolverType* {aka g2o::LinearSolver<Eigen::Matrix<double, 6, 6, 0> >*}’ to ‘std::unique_ptr<g2o::LinearSolver<Eigen::Matrix<double, 6, 6, 0> >, std::default_delete<g2o::LinearSolver<Eigen::Matrix<double, 6, 6, 0> > > >’
/home/lzp/slamtest/graduationcode/p3/poseestimation/pose_estimation_3d2d.cpp:155:104: error: no matching function for call to ‘g2o::OptimizationAlgorithmLevenberg::OptimizationAlgorithmLevenberg(Block*&)’
     g2o::OptimizationAlgorithmLevenberg* solver = new g2o::OptimizationAlgorithmLevenberg ( solver_ptr );
                                                                                                        ^
/home/lzp/slamtest/graduationcode/p3/poseestimation/pose_estimation_3d2d.cpp:155:104: note: candidate is:
In file included from /home/lzp/slamtest/graduationcode/p3/poseestimation/pose_estimation_3d2d.cpp:11:0:
/usr/local/include/g2o/core/optimization_algorithm_levenberg.h:47:16: note: g2o::OptimizationAlgorithmLevenberg::OptimizationAlgorithmLevenberg(std::unique_ptr<g2o::Solver>)
       explicit OptimizationAlgorithmLevenberg(std::unique_ptr<Solver> solver);
                ^
/usr/local/include/g2o/core/optimization_algorithm_levenberg.h:47:16: note:   no known conversion for argument 1 from ‘Block* {aka g2o::BlockSolver<g2o::BlockSolverTraits<6, 3> >*}’ to ‘std::unique_ptr<g2o::Solver>’
make[2]: *** [CMakeFiles/pose_estimation_3d2d.dir/pose_estimation_3d2d.cpp.o] 错误 1
make[1]: *** [CMakeFiles/pose_estimation_3d2d.dir/all] 错误 2
make: *** [all] 错误 2

g2o版本问题,换老版本即可。

最新文章

  1. 踏上Salesforce的学习之路(三)
  2. 自学 web 前端人怎么找工作?
  3. Java ThreadLocal
  4. uva 6757 Cup of Cowards(中途相遇法,貌似)
  5. Lintcode: Subarray Sum Closest
  6. 剑指Offer:第一个只出现一次的字符
  7. dede调用指定的多个栏目导航
  8. Oracle当前用户SQL
  9. iso-开发基础知识-5-适配器
  10. Android复制WIN8点击下沉倾斜系统瓷砖效果
  11. Tomcat7性能调优
  12. new DefaultHttpClient过时处理建议和HTTP调用后关闭流处理
  13. php连接memcahed出现Cannot assign requested address (99)的解决方法
  14. Android中设置控件的背景颜色的方式整理
  15. if判断
  16. js 调试技巧
  17. 最全36种python设计模式
  18. blob 对象 实现分片上传 及 显示进度条
  19. QT 窗口置顶功能
  20. centos7 部署elasticsearch

热门文章

  1. [javascript]——将变量转化为字符串
  2. [Objective-C语言教程]动态绑定(32)
  3. 总结day1 ---- 基础内容学习 ,以及历史了解
  4. 代码 | 自适应大邻域搜索系列之(3) - Destroy和Repair方法代码实现解析
  5. Linux之Ubuntu系统安装搜狗输入法
  6. C#-一维数组——★★冒泡排序★★
  7. 编程开发之--java多线程学习总结(1)问题引入与概念叙述
  8. TX2 用文件IO的方式操作GPIO
  9. Ubuntu18.04配制阿里巴巴的源
  10. Fleury算法