Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

catkin_make problem #58

Open
hakurei-mitou opened this issue Dec 11, 2022 · 6 comments
Open

catkin_make problem #58

hakurei-mitou opened this issue Dec 11, 2022 · 6 comments

Comments

@hakurei-mitou
Copy link

When catkin_make, I got this:

/home/weideng/UGV_ws/src/RoboRTS/roborts_planning/local_planner/timed_elastic_band/src/teb_optimal.cpp: In member function ‘boost::shared_ptr<g2o::SparseOptimizer> roborts_local_planner::TebOptimal::InitOptimizer()’:
/home/weideng/UGV_ws/src/RoboRTS/roborts_planning/local_planner/timed_elastic_band/src/teb_optimal.cpp:139:117: error: no matching function for call to ‘g2o::OptimizationAlgorithmLevenberg::OptimizationAlgorithmLevenberg(std::remove_reference<std::unique_ptr<g2o::BlockSolver<g2o::BlockSolverTraits<-1, -1> >, std::default_delete<g2o::BlockSolver<g2o::BlockSolverTraits<-1, -1> > > >&>::type)’
  new g2o::OptimizationAlgorithmLevenberg(std::move(blockSolver));
                                                                ^
In file included from /home/weideng/UGV_ws/src/RoboRTS/roborts_planning/local_planner/timed_elastic_band/include/timed_elastic_band/teb_optimal.h:72:0,
                 from /home/weideng/UGV_ws/src/RoboRTS/roborts_planning/local_planner/timed_elastic_band/src/teb_optimal.cpp:56:
/opt/ros/kinetic/include/g2o/core/optimization_algorithm_levenberg.h:45:16: note: candidate: g2o::OptimizationAlgorithmLevenberg::OptimizationAlgorithmLevenberg(g2o::Solver*)
       explicit OptimizationAlgorithmLevenberg(Solver* solver);
                ^
/opt/ros/kinetic/include/g2o/core/optimization_algorithm_levenberg.h:45:16: note:   no known conversion for argument 1 from ‘std::remove_reference<std::unique_ptr<g2o::BlockSolver<g2o::BlockSolverTraits<-1, -1> >, std::default_delete<g2o::BlockSolver<g2o::BlockSolverTraits<-1, -1> > > >&>::type {aka std::unique_ptr<g2o::BlockSolver<g2o::BlockSolverTraits<-1, -1> >, std::default_delete<g2o::BlockSolver<g2o::BlockSolverTraits<-1, -1> > > >}’ to ‘g2o::Solver*’

My system is ubuntu-16.04.7, ROS is Kinetic .

The libg2o is : 2016.4.24-0xenial-20201017-070803+0000. .

When I saw other issue and found the version this project uesd, but I got this Version '2016.4.24-0xenial-20171104-173138-0800' for 'ros-kinetic-libg2o' was not found .

Please help!

@Freedom-Guo
Copy link

Freedom-Guo commented Dec 11, 2022 via email

@miss0609
Copy link

miss0609 commented Mar 7, 2023

When catkin_make, I got this:

/home/weideng/UGV_ws/src/RoboRTS/roborts_planning/local_planner/timed_elastic_band/src/teb_optimal.cpp: In member function ‘boost::shared_ptr<g2o::SparseOptimizer> roborts_local_planner::TebOptimal::InitOptimizer()’:
/home/weideng/UGV_ws/src/RoboRTS/roborts_planning/local_planner/timed_elastic_band/src/teb_optimal.cpp:139:117: error: no matching function for call to ‘g2o::OptimizationAlgorithmLevenberg::OptimizationAlgorithmLevenberg(std::remove_reference<std::unique_ptr<g2o::BlockSolver<g2o::BlockSolverTraits<-1, -1> >, std::default_delete<g2o::BlockSolver<g2o::BlockSolverTraits<-1, -1> > > >&>::type)’
  new g2o::OptimizationAlgorithmLevenberg(std::move(blockSolver));
                                                                ^
In file included from /home/weideng/UGV_ws/src/RoboRTS/roborts_planning/local_planner/timed_elastic_band/include/timed_elastic_band/teb_optimal.h:72:0,
                 from /home/weideng/UGV_ws/src/RoboRTS/roborts_planning/local_planner/timed_elastic_band/src/teb_optimal.cpp:56:
/opt/ros/kinetic/include/g2o/core/optimization_algorithm_levenberg.h:45:16: note: candidate: g2o::OptimizationAlgorithmLevenberg::OptimizationAlgorithmLevenberg(g2o::Solver*)
       explicit OptimizationAlgorithmLevenberg(Solver* solver);
                ^
/opt/ros/kinetic/include/g2o/core/optimization_algorithm_levenberg.h:45:16: note:   no known conversion for argument 1 from ‘std::remove_reference<std::unique_ptr<g2o::BlockSolver<g2o::BlockSolverTraits<-1, -1> >, std::default_delete<g2o::BlockSolver<g2o::BlockSolverTraits<-1, -1> > > >&>::type {aka std::unique_ptr<g2o::BlockSolver<g2o::BlockSolverTraits<-1, -1> >, std::default_delete<g2o::BlockSolver<g2o::BlockSolverTraits<-1, -1> > > >}’ to ‘g2o::Solver*’

My system is ubuntu-16.04.7, ROS is Kinetic .

The libg2o is : 2016.4.24-0xenial-20201017-070803+0000. .

When I saw other issue and found the version this project uesd, but I got this Version '2016.4.24-0xenial-20171104-173138-0800' for 'ros-kinetic-libg2o' was not found .

Please help!

Is this problem solved?, I have also been troubled by this problem for a long time

@Freedom-Guo
Copy link

Freedom-Guo commented Mar 7, 2023 via email

@miss0609
Copy link

请问有什么方法可以解决吗

@LDWJG
Copy link

LDWJG commented May 16, 2024

当catkin_make时,我得到了这个:

/home/weideng/UGV_ws/src/RoboRTS/roborts_planning/local_planner/timed_elastic_band/src/teb_optimal.cpp: In member function ‘boost::shared_ptr<g2o::SparseOptimizer> roborts_local_planner::TebOptimal::InitOptimizer()’:
/home/weideng/UGV_ws/src/RoboRTS/roborts_planning/local_planner/timed_elastic_band/src/teb_optimal.cpp:139:117: error: no matching function for call to ‘g2o::OptimizationAlgorithmLevenberg::OptimizationAlgorithmLevenberg(std::remove_reference<std::unique_ptr<g2o::BlockSolver<g2o::BlockSolverTraits<-1, -1> >, std::default_delete<g2o::BlockSolver<g2o::BlockSolverTraits<-1, -1> > > >&>::type)’
  new g2o::OptimizationAlgorithmLevenberg(std::move(blockSolver));
                                                                ^
In file included from /home/weideng/UGV_ws/src/RoboRTS/roborts_planning/local_planner/timed_elastic_band/include/timed_elastic_band/teb_optimal.h:72:0,
                 from /home/weideng/UGV_ws/src/RoboRTS/roborts_planning/local_planner/timed_elastic_band/src/teb_optimal.cpp:56:
/opt/ros/kinetic/include/g2o/core/optimization_algorithm_levenberg.h:45:16: note: candidate: g2o::OptimizationAlgorithmLevenberg::OptimizationAlgorithmLevenberg(g2o::Solver*)
       explicit OptimizationAlgorithmLevenberg(Solver* solver);
                ^
/opt/ros/kinetic/include/g2o/core/optimization_algorithm_levenberg.h:45:16: note:   no known conversion for argument 1 from ‘std::remove_reference<std::unique_ptr<g2o::BlockSolver<g2o::BlockSolverTraits<-1, -1> >, std::default_delete<g2o::BlockSolver<g2o::BlockSolverTraits<-1, -1> > > >&>::type {aka std::unique_ptr<g2o::BlockSolver<g2o::BlockSolverTraits<-1, -1> >, std::default_delete<g2o::BlockSolver<g2o::BlockSolverTraits<-1, -1> > > >}’ to ‘g2o::Solver*’

我的系统是,ROS是Kinetic的。ubuntu-16.04.7
libg2o 是: 。2016.4.24-0xenial-20201017-070803+0000.
当我看到其他问题并找到这个项目的版本时,但我得到了这个.Version '2016.4.24-0xenial-20171104-173138-0800' for 'ros-kinetic-libg2o' was not found
请帮忙!

这个问题解决了吗?,这个问题我也困扰了很久

你好解决了吗,我也困扰好久

@Freedom-Guo
Copy link

Freedom-Guo commented May 16, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants