Interface for building g2o graph. More...
#include <graph_opt.h>
Public Types | |
typedef graph_traits< G > ::vertex_descriptor | VDT |
Public Member Functions | |
G2OGraphBuilder (int _first_landmark_id, double _max_error) | |
void | operator() (g2o::SparseOptimizer &optimizer, G &g, Points< G > &points, VDT startv) |
Public Attributes | |
const int | first_landmark_id |
const double | max_error |
Private Member Functions | |
virtual void | buildGraphImpl (g2o::SparseOptimizer &optimizer, G &g, Points< G > &points, VDT startv)=0 |
Interface for building g2o graph.
This in effect determine what is optimized and how. G2ORunner2 is just a shall that does g2o stuff that is independet of the g2o optimalization graph.
Definition at line 70 of file graph_opt.h.
typedef graph_traits<G>::vertex_descriptor vslam::G2OGraphBuilder< G >::VDT |
Definition at line 72 of file graph_opt.h.
vslam::G2OGraphBuilder< G >::G2OGraphBuilder | ( | int | _first_landmark_id, |
double | _max_error | ||
) | [inline] |
_first_landmark_id | Determines maximum number of poses and landmarks in the g2o graph. There can be _first_landmark_id poses and (MAX_INT - first_landmark_id) landmarks. |
_max_error | Maximum reprojection error allowed to add a landmark. If exceeded a warning is issued. |
Definition at line 85 of file graph_opt.h.
virtual void vslam::G2OGraphBuilder< G >::buildGraphImpl | ( | g2o::SparseOptimizer & | optimizer, |
G & | g, | ||
Points< G > & | points, | ||
VDT | startv | ||
) | [private, pure virtual] |
Implemented in vslam::G2OConstActiveDistanceBuilder< G >.
void vslam::G2OGraphBuilder< G >::operator() | ( | g2o::SparseOptimizer & | optimizer, |
G & | g, | ||
Points< G > & | points, | ||
VDT | startv | ||
) | [inline] |
[in,out] | optimizer | g2o graph representation. |
Definition at line 96 of file graph_opt.h.
const int vslam::G2OGraphBuilder< G >::first_landmark_id |
Definition at line 74 of file graph_opt.h.
const double vslam::G2OGraphBuilder< G >::max_error |
Definition at line 75 of file graph_opt.h.