g2o
edge_se3_lotsofxyz.h
Go to the documentation of this file.
1 #ifndef G2O_SE3_LOTSOF_XYZ
2 #define G2O_SE3_LOTSOF_XYZ
3 
4 #include "g2o/config.h"
5 #include "g2o_types_slam3d_api.h"
7 #include "vertex_se3.h"
8 #include "vertex_pointxyz.h"
9 
10 namespace g2o{
11 
12  class G2O_TYPES_SLAM3D_API EdgeSE3LotsOfXYZ : public BaseMultiEdge<-1, VectorXD>{
13 
14  protected:
15  unsigned int _observedPoints;
16 
17  public:
20 
21  void setDimension(int dimension_){
22  _dimension = dimension_;
23  _information.resize(dimension_, dimension_);
24  _error.resize(dimension_, 1);
25  _measurement.resize(dimension_, 1);
26  }
27 
28  void setSize(int vertices){
29  resize(vertices);
30  _observedPoints = vertices-1;
31  setDimension(_observedPoints*3);
32  }
33 
34 
35  virtual void computeError();
36 
37  virtual bool read(std::istream& is);
38  virtual bool write(std::ostream& os) const;
39 
40  virtual bool setMeasurementFromState();
41 
42  virtual void initialEstimate(const OptimizableGraph::VertexSet&, OptimizableGraph::Vertex*);
43  virtual double initialEstimatePossible(const OptimizableGraph::VertexSet&, OptimizableGraph::Vertex*);
44 
45  virtual void linearizeOplus();
46 
47  };
48 
49 }
50 
51 
52 
53 #endif // G2O_SE3_LOTSOF_XYZ
std::set< Vertex * > VertexSet
Definition: hyper_graph.h:136
Protocol The SLAM executable accepts such as solving the and retrieving or vertices in the explicitly state the reprensentation poses are represented by poses by VERTEX_XYZRPY In the Quaternions and other representations could be but note that it is up to the SLAM algorithm to choose the internal representation of the angles The keyword is followed by a unique vertex ID and an optional initialization of the or edges in the explicitly state the type of the constraint pose constraints are given by pose constraints by EDGE_XYZRPY The keyword is followed by a unique edge the IDs of the referenced vertices
Definition: protocol.txt:7
void setDimension(int dimension_)
#define G2O_TYPES_SLAM3D_API
void setSize(int vertices)
base class to represent an edge connecting an arbitrary number of nodes
A general case Vertex for optimization.