27 #ifndef JACOBIAN_WORKSPACE_H 28 #define JACOBIAN_WORKSPACE_H 31 #include <Eigen/StdVector> 36 #include "g2o/config.h" 42 struct OptimizableGraph;
55 typedef std::vector<VectorXD, Eigen::aligned_allocator<VectorXD> >
WorkspaceVector;
79 void updateSize(
int numVertices,
int dimension);
86 assert(vertexIndex >= 0 && (
size_t)vertexIndex < _workspace.size() &&
"Index out of bounds");
87 return _workspace[vertexIndex].data();
int _maxDimension
the maximum dimension (number of elements) for a Jacobian
std::vector< VectorXD, Eigen::aligned_allocator< VectorXD > > WorkspaceVector
double * workspaceForVertex(int vertexIndex)
WorkspaceVector _workspace
the memory pre-allocated for computing the Jacobians
int _maxNumVertices
the maximum number of vertices connected by a hyper-edge
provide memory workspace for computing the Jacobians
Protocol The SLAM executable accepts such as solving the and retrieving or vertices in the graph