A few minor fixes to allow compiling 'boost-free' gtsam without compiling 'gtsam_unstable'.
parent
7fff398b4d
commit
27e786aae2
|
@ -95,8 +95,6 @@ add_subdirectory(gtsam)
|
||||||
# Build Tests
|
# Build Tests
|
||||||
add_subdirectory(tests)
|
add_subdirectory(tests)
|
||||||
|
|
||||||
# Build examples
|
|
||||||
add_subdirectory(examples)
|
|
||||||
|
|
||||||
# Build timing
|
# Build timing
|
||||||
add_subdirectory(timing)
|
add_subdirectory(timing)
|
||||||
|
@ -104,6 +102,9 @@ add_subdirectory(timing)
|
||||||
# Build gtsam_unstable
|
# Build gtsam_unstable
|
||||||
if (GTSAM_BUILD_UNSTABLE)
|
if (GTSAM_BUILD_UNSTABLE)
|
||||||
add_subdirectory(gtsam_unstable)
|
add_subdirectory(gtsam_unstable)
|
||||||
|
|
||||||
|
# Build examples (Note: 'examples' require `gtsam_unstable` be built since it links against it.)
|
||||||
|
add_subdirectory(examples)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# This is the new wrapper
|
# This is the new wrapper
|
||||||
|
|
|
@ -30,6 +30,7 @@
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
#include <limits>
|
#include <limits>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
#include <iterator>
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
|
|
|
@ -33,6 +33,7 @@
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <optional>
|
#include <optional>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
#include <iterator>
|
||||||
|
|
||||||
namespace gtsam {
|
namespace gtsam {
|
||||||
|
|
||||||
|
|
|
@ -27,7 +27,9 @@ namespace gtsam {
|
||||||
Ordering HybridSmoother::getOrdering(
|
Ordering HybridSmoother::getOrdering(
|
||||||
const HybridGaussianFactorGraph &newFactors) {
|
const HybridGaussianFactorGraph &newFactors) {
|
||||||
HybridGaussianFactorGraph factors(hybridBayesNet());
|
HybridGaussianFactorGraph factors(hybridBayesNet());
|
||||||
factors += newFactors;
|
for(auto& factor: newFactors){
|
||||||
|
factors.push_back(factor);
|
||||||
|
}
|
||||||
// Get all the discrete keys from the factors
|
// Get all the discrete keys from the factors
|
||||||
KeySet allDiscrete = factors.discreteKeySet();
|
KeySet allDiscrete = factors.discreteKeySet();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue