g2o
edge_se2_lotsofxy.h
Go to the documentation of this file.
1 #ifndef G2O_EDGE_SE2_LOTSOF_XY
2 #define G2O_EDGE_SE2_LOTSOF_XY
3 
4 #include "g2o/config.h"
5 #include "g2o_types_slam2d_api.h"
7 #include "vertex_se2.h"
8 #include "vertex_point_xy.h"
9 
10 namespace g2o {
11 
13  {
14  protected:
15  unsigned int _observedPoints;
16 
17  public:
20 
21  void setDimension(int dimension_)
22  {
23  _dimension = dimension_;
24  _information.resize(dimension_, dimension_);
25  _error.resize(dimension_, 1);
26  _measurement.resize(dimension_, 1);
27  }
28 
29  void setSize(int vertices)
30  {
31  resize(vertices);
32  _observedPoints = vertices-1;
33  setDimension(_observedPoints*2);
34  }
35 
36  virtual void computeError();
37 
38  virtual bool read(std::istream& is);
39  virtual bool write(std::ostream& os) const;
40 
41  virtual bool setMeasurementFromState();
42 
43  virtual void initialEstimate(const OptimizableGraph::VertexSet&, OptimizableGraph::Vertex*);
44  virtual double initialEstimatePossible(const OptimizableGraph::VertexSet&, OptimizableGraph::Vertex*);
45 
46  virtual void linearizeOplus();
47  };
48 
49 } // end namespace g2o
50 
51 #endif // G2O_EDGE_SE2_LOTSOF_XY
std::set< Vertex * > VertexSet
Definition: hyper_graph.h:136
#define G2O_TYPES_SLAM2D_API
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 setSize(int vertices)
base class to represent an edge connecting an arbitrary number of nodes
void setDimension(int dimension_)
A general case Vertex for optimization.
unsigned int _observedPoints