Closed gunshi closed 3 years ago
unopt-batch.txt (The file I was using)
try add these lines after include: G2O_USE_OPTIMIZATION_LIBRARY(pcg) G2O_USE_OPTIMIZATION_LIBRARY(cholmod) G2O_USE_OPTIMIZATION_LIBRARY(csparse)
@gunshi Were you able to resolve that issue? How did you do it? Thank you!
G2O_USE_OPTIMIZATION_LIBRARY(pcg)
G2O_USE_OPTIMIZATION_LIBRARY(cholmod)
G2O_USE_OPTIMIZATION_LIBRARY(csparse)
G2O_USE_OPTIMIZATION_LIBRARY(dense)
G2O_USE_OPTIMIZATION_LIBRARY(eigen)
this should solve the problem
Could you tell me how do you solve the problem?Thank you!
This is a minimal working code of what I'm trying to do. I wanted to mimic the solver i was using in g2o_viewer(gn_var_cholmod), through API, since that was the only solver that gave me an optimised result for one specific file(maybe because of how the data is), so I looked around the source code and compiled the above code to create the gn_var_cholmod. I believe there must be something I'm still doing wrong since : 1) the creatorlist of the optimizationalgorithmfactory is empty(i tried to print out the solver names) and so i get the error: SOLVER FACTORY WARNING: Unable to create solver gn_var_cholmod (this must be since findSolver returns false since it is looking up against an empty creatorlist) I also tried using the alloc_cholmod approach (which i have commented out), and in that case i didn't get an error but the result was bizarre since over 10 iterations, the chi2 error increased dramatically instead of decreasing and so was the result when visualised in viewer.
Could anyone help out with this, (in case this is an implementation issue) since i couldn't find any resource as to how to create a solver i want and then use it? Thanks