Added new constructors for PlanarSLAM graphs
parent
7c2ad06016
commit
27c009d792
|
|
@ -20,6 +20,9 @@ namespace gtsam {
|
|||
|
||||
namespace planarSLAM {
|
||||
|
||||
Graph::Graph(const NonlinearFactorGraph<Config>& graph) :
|
||||
NonlinearFactorGraph<Config>(graph) {}
|
||||
|
||||
void Graph::addPrior(const PoseKey& i, const Pose2& p,
|
||||
const SharedGaussian& model) {
|
||||
sharedFactor factor(new Prior(i, p, model));
|
||||
|
|
|
|||
|
|
@ -37,6 +37,8 @@ namespace gtsam {
|
|||
|
||||
// Graph
|
||||
struct Graph: public NonlinearFactorGraph<Config> {
|
||||
Graph(){}
|
||||
Graph(const NonlinearFactorGraph<Config>& graph);
|
||||
void addPrior(const PoseKey& i, const Pose2& p, const SharedGaussian& model);
|
||||
void addPoseConstraint(const PoseKey& i, const Pose2& p);
|
||||
void addOdometry(const PoseKey& i, const PoseKey& j, const Pose2& z,
|
||||
|
|
|
|||
Loading…
Reference in New Issue