diff --git a/gtsam/slam/tests/testAntiFactor.cpp b/gtsam/slam/tests/testAntiFactor.cpp index d99313767..0dd576aed 100644 --- a/gtsam/slam/tests/testAntiFactor.cpp +++ b/gtsam/slam/tests/testAntiFactor.cpp @@ -17,10 +17,12 @@ #include -#include #include -#include +#include +#include #include +#include +#include #include #include @@ -95,12 +97,12 @@ TEST( AntiFactor, EquivalentBayesNet) Pose3 z(Rot3(), Point3(1, 1, 1)); SharedNoiseModel sigma(noiseModel::Unit::Create(Pose3::Dim())); - boost::shared_ptr graph(new pose3SLAM::Graph()); - graph->addPosePrior(1, pose1, sigma); - graph->addRelativePose(1, 2, pose1.between(pose2), sigma); + NonlinearFactorGraph::shared_ptr graph(new NonlinearFactorGraph()); + graph->add(PriorFactor(1, pose1, sigma)); + graph->add(BetweenFactor(1, 2, pose1.between(pose2), sigma)); // Create a configuration corresponding to the ground truth - boost::shared_ptr values(new Values()); + Values::shared_ptr values(new Values()); values->insert(1, pose1); values->insert(2, pose2);