Skip to content

catkin_make problem #58

Description

@hakurei-mitou

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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions