mast_project icon indicating copy to clipboard operation
mast_project copied to clipboard

May I ask what version of g2o is used here?

Open CHANdaFeng opened this issue 2 years ago • 1 comments

May I ask what version of g2o is used here? When I compile, g2o reports the following error

/home/cxf/code/mast_project/src/core/SFMgraph.cpp:40:58: error: no matching function for call to ‘g2o::BlockSolver<g2o::BlockSolverTraits<-1, -1> >::BlockSolver(LinearSolver*&)’ 40 | BlockSolver* blockSolver = new BlockSolver(solver);

/home/cxf/code/mast_project/src/core/SFMgraph.cpp:41:109: error: no matching function for call to ‘g2o::OptimizationAlgorithmLevenberg::OptimizationAlgorithmLevenberg(BlockSolver*&)’ 41 | g2o::OptimizationAlgorithmLevenberg* algorithm = new g2o::OptimizationAlgorithmLevenberg(blockSolver);

CHANdaFeng avatar Jul 01 '22 02:07 CHANdaFeng

Hi Feng,

This is a very old project. The project is done around 05/2016. You can check out the g2o release around or before that time. We randomly simulate points around. Then assume there is a camera and a 2D imaging sonar that can detect these points for a hybrid SFM.

Best luck, Yulin

On Thu, Jun 30, 2022 at 7:25 PM Feng @.***> wrote:

May I ask what version of g2o is used here? When I compile, g2o reports the following error

/home/cxf/code/mast_project/src/core/SFMgraph.cpp:40:58: error: no matching function for call to ‘g2o::BlockSolver<g2o::BlockSolverTraits<-1, -1> >::BlockSolver(LinearSolver*&)’ 40 | BlockSolver* blockSolver = new BlockSolver(solver);

/home/cxf/code/mast_project/src/core/SFMgraph.cpp:41:109: error: no matching function for call to ‘g2o::OptimizationAlgorithmLevenberg::OptimizationAlgorithmLevenberg(BlockSolver*&)’ 41 | g2o::OptimizationAlgorithmLevenberg* algorithm = new g2o::OptimizationAlgorithmLevenberg(blockSolver);

— Reply to this email directly, view it on GitHub https://github.com/rpng/mast_project/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADJAQCG6LIKL7UN4YXK2TJDVRZJLDANCNFSM52LHP3SA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

-- With Best Regards, Linde Yang / Yulin Yang

UNIVERSITY of DELAWARE PhD, Department of Mechanical Engineering 328 Spencer Lab, Newark, DE, USA, 19716-3140 Mobile: +(01) 302-690-3926 mailto: @.> @. Web: https://yangyulin.net https://yangyulin.net

yangyulin avatar Jul 01 '22 14:07 yangyulin