g2o
edge_creator.h
Go to the documentation of this file.
1 #ifndef G2O_EDGE_CREATOR_
2 #define G2O_EDGE_CREATOR_
3 
5 #include <Eigen/Core>
6 #include <vector>
7 
8 #include "g2o_hierarchical_api.h"
9 
10 namespace g2o {
11 
22  EdgeCreatorEntry(const std::string& edgeTypeName, const std::vector<int>& parameterIds)
23  :_edgeTypeName(edgeTypeName), _parameterIds(parameterIds) {}
24 
25  EdgeCreatorEntry(const std::string& edgeTypeName)
26  :_edgeTypeName(edgeTypeName){}
27 
28  std::string _edgeTypeName;
29  std::vector<int> _parameterIds;
30  };
31 
32  typedef std::map<std::string, EdgeCreatorEntry> EntryMap;
33 
40  bool addAssociation(const std::string& vertexTypes, const std::string& edgeType);
41 
49  bool addAssociation(const std::string& vertexTypes, const std::string& edgeType, const std::vector<int>& parameterIds);
50 
53  bool removeAssociation(std::string vertexTypes);
54 
55 
60  OptimizableGraph::Edge* createEdge(std::vector<OptimizableGraph::Vertex*>& vertices );
61 
62 protected:
63  EntryMap _vertexToEdgeMap;
64 };
65 
66 
67 } // end namespace
68 #endif
EntryMap _vertexToEdgeMap
Definition: edge_creator.h:63
std::map< std::string, EdgeCreatorEntry > EntryMap
Definition: edge_creator.h:32
#define G2O_HIERARCHICAL_API
EdgeCreatorEntry(const std::string &edgeTypeName)
Definition: edge_creator.h:25
EdgeCreatorEntry(const std::string &edgeTypeName, const std::vector< int > &parameterIds)
Definition: edge_creator.h:22
std::vector< int > _parameterIds
Definition: edge_creator.h:29
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