Registry / other / g2o
library2024-12-28vcpkgunverified

A General Framework for Graph Optimization

vcpkg install g2o
INSTALL
IMPORT
SIG · G2O
G
g2o
othercppv2024-12-28
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

g2o/core/optimizable_graph.h
#include <g2o/core/optimizable_graph.h>

Initialize a block solver for graph optimization

#include <g2o/core/optimizable_graph.h> #include <g2o/core/block_solver.h> #include <g2o/solvers/csparse/linear_solver_csparse.h> int main() { typedef g2o::BlockSolver<g2o::BlockSolverTraits<-1, -1>> BlockSolver; typedef g2o::LinearSolverCSparse<BlockSolver::PoseMatrixType> LinearSolver; auto solver = std::make_unique<BlockSolver>(std::make_unique<LinearSolver>()); return 0; }
Debug
Known issues
gotchag2o requires Eigen3 and often SuiteSparse; missing dependencies cause linker errors
fix
Ensure vcpkg installs g2o with all features (e.g., g2o[suitesparse])
affects: *
Upgrade
Version history
2024-12-28latest on vcpkg
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources

No resource links recorded.

g2o — pip install g2o · libregistry