#include <Graph.h>
Public Types | |
enum | Type { kTypeUndef = -1, kTypeTORO = 0, kTypeG2O = 1 } |
Public Member Functions | |
bool | isCovarianceIgnored () const |
bool | isSlam2d () const |
int | iterations () const |
virtual std::map< int, Transform > | optimize (int rootId, const std::map< int, Transform > &poses, const std::multimap< int, Link > &constraints, std::list< std::map< int, Transform > > *intermediateGraphes=0)=0 |
virtual void | parseParameters (const ParametersMap ¶meters) |
virtual Type | type () const =0 |
virtual | ~Optimizer () |
Static Public Member Functions | |
static Optimizer * | create (const ParametersMap ¶meters) |
static Optimizer * | create (Optimizer::Type &type, const ParametersMap ¶meters=ParametersMap()) |
static void | getConnectedGraph (int fromId, const std::map< int, Transform > &posesIn, const std::multimap< int, Link > &linksIn, std::map< int, Transform > &posesOut, std::multimap< int, Link > &linksOut, int depth=0) |
Protected Member Functions | |
Optimizer (int iterations=100, bool slam2d=false, bool covarianceIgnored=false) | |
Optimizer (const ParametersMap ¶meters) | |
Private Attributes | |
bool | covarianceIgnored_ |
int | iterations_ |
bool | slam2d_ |
virtual rtabmap::graph::Optimizer::~Optimizer | ( | ) | [inline, virtual] |
rtabmap::graph::Optimizer::Optimizer | ( | int | iterations = 100 , |
bool | slam2d = false , |
||
bool | covarianceIgnored = false |
||
) | [protected] |
rtabmap::graph::Optimizer::Optimizer | ( | const ParametersMap & | parameters | ) | [protected] |
Optimizer * rtabmap::graph::Optimizer::create | ( | const ParametersMap & | parameters | ) | [static] |
Optimizer * rtabmap::graph::Optimizer::create | ( | Optimizer::Type & | type, |
const ParametersMap & | parameters = ParametersMap() |
||
) | [static] |
void rtabmap::graph::Optimizer::getConnectedGraph | ( | int | fromId, |
const std::map< int, Transform > & | posesIn, | ||
const std::multimap< int, Link > & | linksIn, | ||
std::map< int, Transform > & | posesOut, | ||
std::multimap< int, Link > & | linksOut, | ||
int | depth = 0 |
||
) | [static] |
bool rtabmap::graph::Optimizer::isCovarianceIgnored | ( | ) | const [inline] |
bool rtabmap::graph::Optimizer::isSlam2d | ( | ) | const [inline] |
int rtabmap::graph::Optimizer::iterations | ( | ) | const [inline] |
virtual std::map<int, Transform> rtabmap::graph::Optimizer::optimize | ( | int | rootId, |
const std::map< int, Transform > & | poses, | ||
const std::multimap< int, Link > & | constraints, | ||
std::list< std::map< int, Transform > > * | intermediateGraphes = 0 |
||
) | [pure virtual] |
Implemented in rtabmap::graph::G2OOptimizer, and rtabmap::graph::TOROOptimizer.
void rtabmap::graph::Optimizer::parseParameters | ( | const ParametersMap & | parameters | ) | [virtual] |
virtual Type rtabmap::graph::Optimizer::type | ( | ) | const [pure virtual] |
Implemented in rtabmap::graph::G2OOptimizer, and rtabmap::graph::TOROOptimizer.
bool rtabmap::graph::Optimizer::covarianceIgnored_ [private] |
int rtabmap::graph::Optimizer::iterations_ [private] |
bool rtabmap::graph::Optimizer::slam2d_ [private] |