fix nonlinear tests

release/4.3a0
Varun Agrawal 2023-07-31 16:58:06 -04:00
parent df3899e2e8
commit ddef644569
3 changed files with 4 additions and 4 deletions

View File

@ -127,8 +127,8 @@ jobs:
cmake --build build -j4 --config ${{ matrix.build_type }} --target check.sfm
cmake --build build -j4 --config ${{ matrix.build_type }} --target check.symbolic
cmake --build build -j4 --config ${{ matrix.build_type }} --target check.hybrid
cmake --build build -j4 --config ${{ matrix.build_type }} --target check.nonlinear
# Compilation error or test failure
# cmake --build build -j4 --config ${{ matrix.build_type }} --target check.nonlinear
# cmake --build build -j4 --config ${{ matrix.build_type }} --target check.slam
# Run GTSAM_UNSTABLE tests

View File

@ -345,7 +345,7 @@ class GTSAM_EXPORT ISAM2 : public BayesTree<ISAM2Clique> {
friend class boost::serialization::access;
template<class ARCHIVE>
void serialize(ARCHIVE & ar, const unsigned int /*version*/) {
ar & boost::serialization::base_object<BayesTree<ISAM2Clique> >(*this);
ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP(Base);
ar & BOOST_SERIALIZATION_NVP(theta_);
ar & BOOST_SERIALIZATION_NVP(variableIndex_);
ar & BOOST_SERIALIZATION_NVP(delta_);

View File

@ -183,7 +183,7 @@ TEST(Serialization, ISAM2) {
std::string binaryPath = "saved_solver.dat";
try {
std::ofstream outputStream(binaryPath);
std::ofstream outputStream(binaryPath, std::ios::out | std::ios::binary);
boost::archive::binary_oarchive outputArchive(outputStream);
outputArchive << solver;
} catch(...) {
@ -192,7 +192,7 @@ TEST(Serialization, ISAM2) {
gtsam::ISAM2 solverFromDisk;
try {
std::ifstream ifs(binaryPath);
std::ifstream ifs(binaryPath, std::ios::in | std::ios::binary);
boost::archive::binary_iarchive inputArchive(ifs);
inputArchive >> solverFromDisk;
} catch(...) {