fixed some Point2 constructions
parent
88a83fe9e7
commit
c607f48a3c
|
@ -86,7 +86,7 @@ static const SharedNoiseModel sigma1(noiseModel::Unit::Create(2));
|
||||||
TEST( GeneralSFMFactor, equals )
|
TEST( GeneralSFMFactor, equals )
|
||||||
{
|
{
|
||||||
// Create two identical factors and make sure they're equal
|
// Create two identical factors and make sure they're equal
|
||||||
Vector z = Vector2(323.,240.);
|
Point2 z(323.,240.);
|
||||||
const Symbol cameraFrameNumber('x',1), landmarkNumber('l',1);
|
const Symbol cameraFrameNumber('x',1), landmarkNumber('l',1);
|
||||||
const SharedNoiseModel sigma(noiseModel::Unit::Create(1));
|
const SharedNoiseModel sigma(noiseModel::Unit::Create(1));
|
||||||
boost::shared_ptr<Projection>
|
boost::shared_ptr<Projection>
|
||||||
|
|
|
@ -86,7 +86,7 @@ static const SharedNoiseModel sigma1(noiseModel::Unit::Create(2));
|
||||||
TEST( GeneralSFMFactor_Cal3Bundler, equals )
|
TEST( GeneralSFMFactor_Cal3Bundler, equals )
|
||||||
{
|
{
|
||||||
// Create two identical factors and make sure they're equal
|
// Create two identical factors and make sure they're equal
|
||||||
Vector z = Vector2(323.,240.);
|
Point2 z(323.,240.);
|
||||||
const Symbol cameraFrameNumber('x',1), landmarkNumber('l',1);
|
const Symbol cameraFrameNumber('x',1), landmarkNumber('l',1);
|
||||||
const SharedNoiseModel sigma(noiseModel::Unit::Create(1));
|
const SharedNoiseModel sigma(noiseModel::Unit::Create(1));
|
||||||
boost::shared_ptr<Projection>
|
boost::shared_ptr<Projection>
|
||||||
|
|
|
@ -349,7 +349,7 @@ inline boost::shared_ptr<const NonlinearFactorGraph> sharedReallyNonlinearFactor
|
||||||
using symbol_shorthand::X;
|
using symbol_shorthand::X;
|
||||||
using symbol_shorthand::L;
|
using symbol_shorthand::L;
|
||||||
boost::shared_ptr<NonlinearFactorGraph> fg(new NonlinearFactorGraph);
|
boost::shared_ptr<NonlinearFactorGraph> fg(new NonlinearFactorGraph);
|
||||||
Vector z = Vector2(1.0, 0.0);
|
Vector2 z = Vector2(1.0, 0.0);
|
||||||
double sigma = 0.1;
|
double sigma = 0.1;
|
||||||
boost::shared_ptr<smallOptimize::UnaryFactor> factor(
|
boost::shared_ptr<smallOptimize::UnaryFactor> factor(
|
||||||
new smallOptimize::UnaryFactor(z, noiseModel::Isotropic::Sigma(2,sigma), X(1)));
|
new smallOptimize::UnaryFactor(z, noiseModel::Isotropic::Sigma(2,sigma), X(1)));
|
||||||
|
|
Loading…
Reference in New Issue