fixes
parent
00be610e18
commit
26e0cef48d
|
@ -38,6 +38,9 @@ class GTSAM_EXPORT HybridBayesNet : public BayesNet<HybridConditional> {
|
||||||
/** Construct empty bayes net */
|
/** Construct empty bayes net */
|
||||||
HybridBayesNet() = default;
|
HybridBayesNet() = default;
|
||||||
|
|
||||||
|
/// Add HybridConditional to Bayes Net
|
||||||
|
using Base::add;
|
||||||
|
|
||||||
/// Add a discrete conditional to the Bayes Net.
|
/// Add a discrete conditional to the Bayes Net.
|
||||||
void add(const DiscreteKey &key, const std::string &table) {
|
void add(const DiscreteKey &key, const std::string &table) {
|
||||||
push_back(
|
push_back(
|
||||||
|
|
|
@ -135,14 +135,6 @@ class HybridFactorGraph : public FactorGraph<HybridFactor> {
|
||||||
push_hybrid(p);
|
push_hybrid(p);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Constructor from iterator over factors (shared_ptr or plain objects) */
|
|
||||||
template <typename ITERATOR>
|
|
||||||
void push_back(ITERATOR firstFactor, ITERATOR lastFactor) {
|
|
||||||
for (auto&& it = firstFactor; it != lastFactor; it++) {
|
|
||||||
push_back(*it);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace gtsam
|
} // namespace gtsam
|
Loading…
Reference in New Issue