Skip to content

Commit

Permalink
Rework parameter/residual block handling in Ceres solver
Browse files Browse the repository at this point in the history
- Use a boost::bimap for node id <-> parameter block lookup
- Use a boost::pool for parameter block allocation
- Change Karto::Solver graph getter signature

Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
  • Loading branch information
hidmic committed Apr 4, 2022
1 parent c119840 commit 1041a52
Show file tree
Hide file tree
Showing 3 changed files with 138 additions and 116 deletions.
4 changes: 2 additions & 2 deletions slam_toolbox/lib/karto_sdk/include/karto_sdk/Mapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -1072,10 +1072,10 @@ namespace karto
/**
* Get graph stored
*/
virtual std::unordered_map<int, Eigen::Vector3d>* getGraph()
virtual std::unordered_map<int, Eigen::Map<Eigen::Vector3d>> GetGraph()
{
std::cout << "getGraph method not implemented for this solver type. Graph visualization unavailable." << std::endl;
return nullptr;
return {};
}

/**
Expand Down
Loading

0 comments on commit 1041a52

Please sign in to comment.