Go to the documentation of this file.
55 bool isDiscrete_ =
false;
56 bool isContinuous_ =
false;
57 bool isHybrid_ =
false;
68 typedef std::shared_ptr<HybridFactor>
110 const std::string &
s =
"HybridFactor\n",
138 #ifdef GTSAM_ENABLE_BOOST_SERIALIZATION
140 friend class boost::serialization::access;
141 template <
class ARCHIVE>
142 void serialize(ARCHIVE &ar,
const unsigned int ) {
143 ar &BOOST_SERIALIZATION_BASE_OBJECT_NVP(
Base);
144 ar &BOOST_SERIALIZATION_NVP(isDiscrete_);
145 ar &BOOST_SERIALIZATION_NVP(isContinuous_);
146 ar &BOOST_SERIALIZATION_NVP(isHybrid_);
147 ar &BOOST_SERIALIZATION_NVP(discreteKeys_);
148 ar &BOOST_SERIALIZATION_NVP(continuousKeys_);
const Symbol key1('v', 1)
Linear Factor Graph where all factors are Gaussians.
Array< double, 1, 3 > e(1./3., 0.5, 2.)
Concept check for values that can be used in unit tests.
bool isDiscrete() const
True if this is a factor of discrete variables only.
std::shared_ptr< HybridFactor > shared_ptr
shared_ptr to this class
const KeyFormatter & formatter
KeyVector continuousKeys_
Record continuous keys for book-keeping.
DiscreteKeys is a set of keys that can be assembled using the & operator.
bool isHybrid() const
True is this is a Discrete-Continuous factor.
FastVector< Key > KeyVector
Define collection type once and for all - also used in wrappers.
The base class for all factors.
KeyFormatter DefaultKeyFormatter
Assign default key formatter.
size_t nrContinuous() const
Return the number of continuous variables in this factor.
void print(const Matrix &A, const string &s, ostream &stream)
const Symbol key2('v', 2)
std::function< std::string(Key)> KeyFormatter
Typedef for a function to format a key, i.e. to convert it to a string.
Decision Tree for use in DiscreteFactors.
KeyVector CollectKeys(const KeyVector &continuousKeys, const DiscreteKeys &discreteKeys)
DiscreteKeys discreteKeys_
bool isContinuous() const
True if this is a factor of continuous variables only.
HybridFactor This
This class.
specialized key for discrete variables
a decision tree is a function from assignments to values.
Factor Base
Our base class.
const KeyVector & continuousKeys() const
Return only the continuous keys for this factor.
const DiscreteKeys & discreteKeys() const
Return the discrete keys for this factor.
A non-templated config holding any types of Manifold-group elements.
DiscreteKeys CollectDiscreteKeys(const DiscreteKeys &key1, const DiscreteKeys &key2)
gtsam
Author(s):
autogenerated on Thu Jun 13 2024 03:02:34