all tests pass except one on serialization

release/4.3a0
lcarlone 2021-08-26 12:30:52 -04:00
parent fe75554862
commit 050d64bdca
3 changed files with 576 additions and 1085 deletions

View File

@ -340,6 +340,7 @@ class SmartProjectionFactorP : public SmartProjectionFactor<CAMERA> {
void serialize(ARCHIVE & ar, const unsigned int /*version*/) {
ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP(Base);
ar & BOOST_SERIALIZATION_NVP(K_all_);
ar & BOOST_SERIALIZATION_NVP(nonUniqueKeys_);
ar & BOOST_SERIALIZATION_NVP(body_P_sensors_);
}

View File

@ -84,6 +84,7 @@ Camera cam3(pose_above, sharedK);
namespace vanillaPose2 {
typedef PinholePose<Cal3_S2> Camera;
typedef SmartProjectionPoseFactor<Cal3_S2> SmartFactor;
typedef SmartProjectionFactorP<Camera> SmartFactorP;
static Cal3_S2::shared_ptr sharedK2(new Cal3_S2(1500, 1200, 0, 640, 480));
Camera level_camera(level_pose, sharedK2);
Camera level_camera_right(pose_right, sharedK2);
@ -113,6 +114,7 @@ typedef GeneralSFMFactor<Camera, Point3> SFMFactor;
namespace bundlerPose {
typedef PinholePose<Cal3Bundler> Camera;
typedef SmartProjectionPoseFactor<Cal3Bundler> SmartFactor;
typedef SmartProjectionFactorP<Camera> SmartFactorP;
static boost::shared_ptr<Cal3Bundler> sharedBundlerK(
new Cal3Bundler(500, 1e-3, 1e-3, 1000, 2000));
Camera level_camera(level_pose, sharedBundlerK);

File diff suppressed because it is too large Load Diff