rename to HybridNonlinearFactorGraph
parent
3780b8c21e
commit
8ddc2ea989
|
|
@ -10,7 +10,7 @@
|
||||||
* -------------------------------------------------------------------------- */
|
* -------------------------------------------------------------------------- */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @file NonlinearHybridFactorGraph.h
|
* @file HybridNonlinearFactorGraph.h
|
||||||
* @brief Nonlinear hybrid factor graph that uses type erasure
|
* @brief Nonlinear hybrid factor graph that uses type erasure
|
||||||
* @author Varun Agrawal
|
* @author Varun Agrawal
|
||||||
* @date May 28, 2022
|
* @date May 28, 2022
|
||||||
|
|
@ -35,7 +35,7 @@ namespace gtsam {
|
||||||
* This is the non-linear version of a hybrid factor graph.
|
* This is the non-linear 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 GTSAM_EXPORT NonlinearHybridFactorGraph : public HybridFactorGraph {
|
class GTSAM_EXPORT HybridNonlinearFactorGraph : public HybridFactorGraph {
|
||||||
protected:
|
protected:
|
||||||
/// Check if FACTOR type is derived from NonlinearFactor.
|
/// Check if FACTOR type is derived from NonlinearFactor.
|
||||||
template <typename FACTOR>
|
template <typename FACTOR>
|
||||||
|
|
@ -44,7 +44,7 @@ class GTSAM_EXPORT NonlinearHybridFactorGraph : public HybridFactorGraph {
|
||||||
|
|
||||||
public:
|
public:
|
||||||
using Base = HybridFactorGraph;
|
using Base = HybridFactorGraph;
|
||||||
using This = NonlinearHybridFactorGraph; ///< this class
|
using This = HybridNonlinearFactorGraph; ///< this class
|
||||||
using shared_ptr = boost::shared_ptr<This>; ///< shared_ptr to This
|
using shared_ptr = boost::shared_ptr<This>; ///< shared_ptr to This
|
||||||
|
|
||||||
using Values = gtsam::Values; ///< backwards compatibility
|
using Values = gtsam::Values; ///< backwards compatibility
|
||||||
|
|
@ -53,7 +53,7 @@ class GTSAM_EXPORT NonlinearHybridFactorGraph : public HybridFactorGraph {
|
||||||
/// @name Constructors
|
/// @name Constructors
|
||||||
/// @{
|
/// @{
|
||||||
|
|
||||||
NonlinearHybridFactorGraph() = default;
|
HybridNonlinearFactorGraph() = default;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Implicit copy/downcast constructor to override explicit template container
|
* Implicit copy/downcast constructor to override explicit template container
|
||||||
|
|
@ -61,7 +61,7 @@ class GTSAM_EXPORT NonlinearHybridFactorGraph : public HybridFactorGraph {
|
||||||
* `cachedSeparatorMarginal_.reset(*separatorMarginal)`
|
* `cachedSeparatorMarginal_.reset(*separatorMarginal)`
|
||||||
* */
|
* */
|
||||||
template <class DERIVEDFACTOR>
|
template <class DERIVEDFACTOR>
|
||||||
NonlinearHybridFactorGraph(const FactorGraph<DERIVEDFACTOR>& graph)
|
HybridNonlinearFactorGraph(const FactorGraph<DERIVEDFACTOR>& graph)
|
||||||
: Base(graph) {}
|
: Base(graph) {}
|
||||||
|
|
||||||
/// @}
|
/// @}
|
||||||
|
|
@ -131,21 +131,21 @@ class GTSAM_EXPORT NonlinearHybridFactorGraph : public HybridFactorGraph {
|
||||||
* Simply prints the factor graph.
|
* Simply prints the factor graph.
|
||||||
*/
|
*/
|
||||||
void print(
|
void print(
|
||||||
const std::string& str = "NonlinearHybridFactorGraph",
|
const std::string& str = "HybridNonlinearFactorGraph",
|
||||||
const KeyFormatter& keyFormatter = DefaultKeyFormatter) const override {}
|
const KeyFormatter& keyFormatter = DefaultKeyFormatter) const override {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return true if all internal graphs of `this` are equal to those of
|
* @return true if all internal graphs of `this` are equal to those of
|
||||||
* `other`
|
* `other`
|
||||||
*/
|
*/
|
||||||
bool equals(const NonlinearHybridFactorGraph& other,
|
bool equals(const HybridNonlinearFactorGraph& other,
|
||||||
double tol = 1e-9) const {
|
double tol = 1e-9) const {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Linearize all the continuous factors in the
|
* @brief Linearize all the continuous factors in the
|
||||||
* NonlinearHybridFactorGraph.
|
* HybridNonlinearFactorGraph.
|
||||||
*
|
*
|
||||||
* @param continuousValues: Dictionary of continuous values.
|
* @param continuousValues: Dictionary of continuous values.
|
||||||
* @return GaussianHybridFactorGraph::shared_ptr
|
* @return GaussianHybridFactorGraph::shared_ptr
|
||||||
|
|
@ -200,7 +200,7 @@ class GTSAM_EXPORT NonlinearHybridFactorGraph : public HybridFactorGraph {
|
||||||
};
|
};
|
||||||
|
|
||||||
template <>
|
template <>
|
||||||
struct traits<NonlinearHybridFactorGraph>
|
struct traits<HybridNonlinearFactorGraph>
|
||||||
: public Testable<NonlinearHybridFactorGraph> {};
|
: public Testable<HybridNonlinearFactorGraph> {};
|
||||||
|
|
||||||
} // namespace gtsam
|
} // namespace gtsam
|
||||||
Loading…
Reference in New Issue