fix nonlinear tests
parent
df3899e2e8
commit
ddef644569
|
@ -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.sfm
|
||||||
cmake --build build -j4 --config ${{ matrix.build_type }} --target check.symbolic
|
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.hybrid
|
||||||
|
cmake --build build -j4 --config ${{ matrix.build_type }} --target check.nonlinear
|
||||||
# Compilation error or test failure
|
# 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
|
# cmake --build build -j4 --config ${{ matrix.build_type }} --target check.slam
|
||||||
|
|
||||||
# Run GTSAM_UNSTABLE tests
|
# Run GTSAM_UNSTABLE tests
|
||||||
|
|
|
@ -345,7 +345,7 @@ class GTSAM_EXPORT ISAM2 : public BayesTree<ISAM2Clique> {
|
||||||
friend class boost::serialization::access;
|
friend class boost::serialization::access;
|
||||||
template<class ARCHIVE>
|
template<class ARCHIVE>
|
||||||
void serialize(ARCHIVE & ar, const unsigned int /*version*/) {
|
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(theta_);
|
||||||
ar & BOOST_SERIALIZATION_NVP(variableIndex_);
|
ar & BOOST_SERIALIZATION_NVP(variableIndex_);
|
||||||
ar & BOOST_SERIALIZATION_NVP(delta_);
|
ar & BOOST_SERIALIZATION_NVP(delta_);
|
||||||
|
|
|
@ -183,7 +183,7 @@ TEST(Serialization, ISAM2) {
|
||||||
|
|
||||||
std::string binaryPath = "saved_solver.dat";
|
std::string binaryPath = "saved_solver.dat";
|
||||||
try {
|
try {
|
||||||
std::ofstream outputStream(binaryPath);
|
std::ofstream outputStream(binaryPath, std::ios::out | std::ios::binary);
|
||||||
boost::archive::binary_oarchive outputArchive(outputStream);
|
boost::archive::binary_oarchive outputArchive(outputStream);
|
||||||
outputArchive << solver;
|
outputArchive << solver;
|
||||||
} catch(...) {
|
} catch(...) {
|
||||||
|
@ -192,7 +192,7 @@ TEST(Serialization, ISAM2) {
|
||||||
|
|
||||||
gtsam::ISAM2 solverFromDisk;
|
gtsam::ISAM2 solverFromDisk;
|
||||||
try {
|
try {
|
||||||
std::ifstream ifs(binaryPath);
|
std::ifstream ifs(binaryPath, std::ios::in | std::ios::binary);
|
||||||
boost::archive::binary_iarchive inputArchive(ifs);
|
boost::archive::binary_iarchive inputArchive(ifs);
|
||||||
inputArchive >> solverFromDisk;
|
inputArchive >> solverFromDisk;
|
||||||
} catch(...) {
|
} catch(...) {
|
||||||
|
|
Loading…
Reference in New Issue