Removed spurious "using namespace noiseModel"
parent
5ada49ea3a
commit
0316a53f79
|
@ -397,5 +397,4 @@ namespace gtsam {
|
||||||
|
|
||||||
} // namespace noiseModel
|
} // namespace noiseModel
|
||||||
|
|
||||||
using namespace noiseModel;
|
|
||||||
} // namespace gtsam
|
} // namespace gtsam
|
||||||
|
|
|
@ -115,8 +115,8 @@ TEST( Iterative, conjugateGradientDescent_soft_constraint )
|
||||||
config.insert(2, Pose2(1.5,0.,0.));
|
config.insert(2, Pose2(1.5,0.,0.));
|
||||||
|
|
||||||
Pose2Graph graph;
|
Pose2Graph graph;
|
||||||
graph.addPrior(1, Pose2(0.,0.,0.), Isotropic::Sigma(3, 1e-10));
|
graph.addPrior(1, Pose2(0.,0.,0.), noiseModel::Isotropic::Sigma(3, 1e-10));
|
||||||
graph.addConstraint(1,2, Pose2(1.,0.,0.), Isotropic::Sigma(3, 1));
|
graph.addConstraint(1,2, Pose2(1.,0.,0.), noiseModel::Isotropic::Sigma(3, 1));
|
||||||
|
|
||||||
VectorConfig zeros;
|
VectorConfig zeros;
|
||||||
zeros.insert("x1",zero(3));
|
zeros.insert("x1",zero(3));
|
||||||
|
@ -141,8 +141,8 @@ TEST( Iterative, subgraphPCG )
|
||||||
theta_bar.insert(2, Pose2(1.5,0.,0.));
|
theta_bar.insert(2, Pose2(1.5,0.,0.));
|
||||||
|
|
||||||
Pose2Graph graph;
|
Pose2Graph graph;
|
||||||
graph.addPrior(1, Pose2(0.,0.,0.), Isotropic::Sigma(3, 1e-10));
|
graph.addPrior(1, Pose2(0.,0.,0.), noiseModel::Isotropic::Sigma(3, 1e-10));
|
||||||
graph.addConstraint(1,2, Pose2(1.,0.,0.), Isotropic::Sigma(3, 1));
|
graph.addConstraint(1,2, Pose2(1.,0.,0.), noiseModel::Isotropic::Sigma(3, 1));
|
||||||
|
|
||||||
// generate spanning tree and create ordering
|
// generate spanning tree and create ordering
|
||||||
PredecessorMap<Key> tree = graph.findMinimumSpanningTree<Key, Pose2Factor>();
|
PredecessorMap<Key> tree = graph.findMinimumSpanningTree<Key, Pose2Factor>();
|
||||||
|
|
|
@ -224,8 +224,8 @@ TEST( NonlinearOptimizer, Factorization )
|
||||||
config->insert(2, Pose2(1.5,0.,0.));
|
config->insert(2, Pose2(1.5,0.,0.));
|
||||||
|
|
||||||
boost::shared_ptr<Pose2Graph> graph(new Pose2Graph);
|
boost::shared_ptr<Pose2Graph> graph(new Pose2Graph);
|
||||||
graph->addPrior(1, Pose2(0.,0.,0.), Isotropic::Sigma(3, 1e-10));
|
graph->addPrior(1, Pose2(0.,0.,0.), noiseModel::Isotropic::Sigma(3, 1e-10));
|
||||||
graph->addConstraint(1,2, Pose2(1.,0.,0.), Isotropic::Sigma(3, 1));
|
graph->addConstraint(1,2, Pose2(1.,0.,0.), noiseModel::Isotropic::Sigma(3, 1));
|
||||||
|
|
||||||
boost::shared_ptr<Ordering> ordering(new Ordering);
|
boost::shared_ptr<Ordering> ordering(new Ordering);
|
||||||
ordering->push_back(Pose2Config::Key(1));
|
ordering->push_back(Pose2Config::Key(1));
|
||||||
|
@ -250,8 +250,8 @@ TEST( NonlinearOptimizer, SubgraphSolver )
|
||||||
|
|
||||||
// Create a graph
|
// Create a graph
|
||||||
boost::shared_ptr<Graph> graph(new Graph);
|
boost::shared_ptr<Graph> graph(new Graph);
|
||||||
graph->addPrior(1, Pose2(0., 0., 0.), Isotropic::Sigma(3, 1e-10));
|
graph->addPrior(1, Pose2(0., 0., 0.), noiseModel::Isotropic::Sigma(3, 1e-10));
|
||||||
graph->addConstraint(1, 2, Pose2(1., 0., 0.), Isotropic::Sigma(3, 1));
|
graph->addConstraint(1, 2, Pose2(1., 0., 0.), noiseModel::Isotropic::Sigma(3, 1));
|
||||||
|
|
||||||
// Create an initial config
|
// Create an initial config
|
||||||
boost::shared_ptr<Config> config(new Config);
|
boost::shared_ptr<Config> config(new Config);
|
||||||
|
|
Loading…
Reference in New Issue