Add GTSAM_EXPORT and Testable traits
parent
709bbb0c35
commit
932e65c7a2
|
@ -125,4 +125,8 @@ class GTSAM_EXPORT GaussianMixture
|
||||||
Sum add(const Sum &sum) const;
|
Sum add(const Sum &sum) const;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// traits
|
||||||
|
template <>
|
||||||
|
struct traits<GaussianMixture> : public Testable<GaussianMixture> {};
|
||||||
|
|
||||||
} // namespace gtsam
|
} // namespace gtsam
|
||||||
|
|
|
@ -41,7 +41,7 @@ using GaussianFactorVector = std::vector<gtsam::GaussianFactor::shared_ptr>;
|
||||||
* of discrete variables indexes to the continuous gaussian distribution.
|
* of discrete variables indexes to the continuous gaussian distribution.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
class GaussianMixtureFactor : public HybridFactor {
|
class GTSAM_EXPORT GaussianMixtureFactor : public HybridFactor {
|
||||||
public:
|
public:
|
||||||
using Base = HybridFactor;
|
using Base = HybridFactor;
|
||||||
using This = GaussianMixtureFactor;
|
using This = GaussianMixtureFactor;
|
||||||
|
@ -113,4 +113,9 @@ class GaussianMixtureFactor : public HybridFactor {
|
||||||
Sum add(const Sum &sum) const;
|
Sum add(const Sum &sum) const;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// traits
|
||||||
|
template <>
|
||||||
|
struct traits<GaussianMixtureFactor> : public Testable<GaussianMixtureFactor> {
|
||||||
|
};
|
||||||
|
|
||||||
} // namespace gtsam
|
} // namespace gtsam
|
||||||
|
|
|
@ -29,7 +29,7 @@ namespace gtsam {
|
||||||
* us to hide the implementation of DiscreteFactor and thus avoid diamond
|
* us to hide the implementation of DiscreteFactor and thus avoid diamond
|
||||||
* inheritance.
|
* inheritance.
|
||||||
*/
|
*/
|
||||||
class HybridDiscreteFactor : public HybridFactor {
|
class GTSAM_EXPORT HybridDiscreteFactor : public HybridFactor {
|
||||||
private:
|
private:
|
||||||
DiscreteFactor::shared_ptr inner_;
|
DiscreteFactor::shared_ptr inner_;
|
||||||
|
|
||||||
|
@ -61,4 +61,9 @@ class HybridDiscreteFactor : public HybridFactor {
|
||||||
/// Return pointer to the internal discrete factor
|
/// Return pointer to the internal discrete factor
|
||||||
DiscreteFactor::shared_ptr inner() const { return inner_; }
|
DiscreteFactor::shared_ptr inner() const { return inner_; }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// traits
|
||||||
|
template <>
|
||||||
|
struct traits<HybridDiscreteFactor> : public Testable<HybridDiscreteFactor> {};
|
||||||
|
|
||||||
} // namespace gtsam
|
} // namespace gtsam
|
||||||
|
|
|
@ -28,7 +28,7 @@ namespace gtsam {
|
||||||
* a diamond inheritance i.e. an extra factor type that inherits from both
|
* a diamond inheritance i.e. an extra factor type that inherits from both
|
||||||
* HybridFactor and GaussianFactor.
|
* HybridFactor and GaussianFactor.
|
||||||
*/
|
*/
|
||||||
class HybridGaussianFactor : public HybridFactor {
|
class GTSAM_EXPORT HybridGaussianFactor : public HybridFactor {
|
||||||
private:
|
private:
|
||||||
GaussianFactor::shared_ptr inner_;
|
GaussianFactor::shared_ptr inner_;
|
||||||
|
|
||||||
|
@ -59,4 +59,9 @@ class HybridGaussianFactor : public HybridFactor {
|
||||||
|
|
||||||
GaussianFactor::shared_ptr inner() const { return inner_; }
|
GaussianFactor::shared_ptr inner() const { return inner_; }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// traits
|
||||||
|
template <>
|
||||||
|
struct traits<HybridGaussianFactor> : public Testable<HybridGaussianFactor> {};
|
||||||
|
|
||||||
} // namespace gtsam
|
} // namespace gtsam
|
||||||
|
|
|
@ -71,7 +71,7 @@ struct EliminationTraits<HybridGaussianFactorGraph> {
|
||||||
* This is the linearized version of a hybrid factor graph.
|
* This is the linearized version of a hybrid factor graph.
|
||||||
* Everything inside needs to be hybrid factor or hybrid conditional.
|
* Everything inside needs to be hybrid factor or hybrid conditional.
|
||||||
*/
|
*/
|
||||||
class HybridGaussianFactorGraph
|
class GTSAM_EXPORT HybridGaussianFactorGraph
|
||||||
: public FactorGraph<HybridFactor>,
|
: public FactorGraph<HybridFactor>,
|
||||||
public EliminateableFactorGraph<HybridGaussianFactorGraph> {
|
public EliminateableFactorGraph<HybridGaussianFactorGraph> {
|
||||||
public:
|
public:
|
||||||
|
|
Loading…
Reference in New Issue