32 static const double rankTol = 1.0;
33 static const double sigma = 0.1;
48 using namespace serializationTestHelpers;
53 EXPECT(equalsBinary(factor));
59 using namespace serializationTestHelpers;
64 EXPECT(equalsBinary(factor));
70 using namespace serializationTestHelpers;
77 EXPECT(equalsBinary(factor));
80 TEST(SerializationSlam, SmartProjectionPoseFactor2) {
82 using namespace serializationTestHelpers;
91 key_view.push_back(
Symbol(
'x', 1));
92 meas_view.push_back(
Point2(10, 10));
93 factor.
add(meas_view, key_view);
97 EXPECT(equalsBinary(factor));
static int runAllTests(TestResult &result)
std::string serialize(const T &input)
serializes to a string
noiseModel::Diagonal::shared_ptr model
noiseModel::Isotropic::shared_ptr SharedIsotropic
static const SmartProjectionParams params
void setRankTolerance(double rankTol)
Smart factor on cameras (pose + calibration)
static const double rankTol
Base class for smart factors. This base class has no internal point, but it has a measurement...
#define EXPECT(condition)
A nonlinear optimizer that uses the Levenberg-Marquardt trust-region scheme.
static const Cal3_S2::shared_ptr sharedK(new Cal3_S2(fov, w, h))
noiseModel::Diagonal::shared_ptr SharedDiagonal
void add(const Z &measured, const Key &key)
std::vector< Point2, Eigen::aligned_allocator< Point2 > > Point2Vector
TEST(SmartFactorBase, serialize)
static noiseModel::Diagonal::shared_ptr Diagonal(const Matrix &covariance)
static const double sigma
BOOST_CLASS_EXPORT_GUID(DecisionTreeFactor, "gtsam_DecisionTreeFactor")
FastVector< Key > KeyVector
Define collection type once and for all - also used in wrappers.
noiseModel::Base::shared_ptr SharedNoiseModel