27 #ifndef EXAMPLE_SLAM_INTERFACE_H 28 #define EXAMPLE_SLAM_INTERFACE_H 48 bool addNode(
const std::string& tag,
int id,
int dimension,
const std::vector<double>&
values);
50 bool addEdge(
const std::string& tag,
int id,
int dimension,
int v1,
int v2,
const std::vector<double>& measurement,
const std::vector<double>& information);
52 bool fixNode(
const std::vector<int>& nodes);
54 bool queryState(
const std::vector<int>& nodes);
60 std::map<int, std::pair<std::string, std::vector<double> > >
_vertices;
bool addNode(const std::string &tag, int id, int dimension, const std::vector< double > &values)
std::map< int, std::pair< std::string, std::vector< double > > > _vertices
the original value of the input (actually not needed if a real SLAM engine is running) ...
bool addEdge(const std::string &tag, int id, int dimension, int v1, int v2, const std::vector< double > &measurement, const std::vector< double > &information)
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 values
interface for communicating with the SLAM algorithm
example for an interface to a SLAM algorithm
bool queryState(const std::vector< int > &nodes)
bool fixNode(const std::vector< int > &nodes)