Go to the documentation of this file.
24 #ifdef GTSAM_ENABLE_BOOST_SERIALIZATION
25 #include <boost/serialization/nvp.hpp>
34 template <
typename A1,
typename A2>
40 template <
typename A1,
typename A2>
49 template <
typename A1,
typename A2,
88 B b = Bearing<A1, A2>()(
a1,
a2, H1 ? &HB1 : 0, H2 ? &HB2 : 0);
91 if (H1) *H1 << HB1, HR1;
92 if (H2) *H2 << HB2, HR2;
151 #ifdef GTSAM_ENABLE_BOOST_SERIALIZATION
152 template <
class ARCHIVE>
154 void serialize(ARCHIVE& ar,
const unsigned int ) {
155 ar& boost::serialization::make_nvp(
"bearing",
bearing_);
156 ar& boost::serialization::make_nvp(
"range",
range_);
159 friend class boost::serialization::access;
173 template <
typename A1,
typename A2>
182 template <
class A1,
typename A2,
class RT>
189 return a1.bearing(
a2, H1, H2);
196 template <
class A1,
typename A2,
class RT>
203 return a1.range(
a2, H1, H2);
void print(const std::string &str="") const
static R MeasureRange(const A1 &a1, const A2 &a2)
Predict range.
Array< double, 1, 3 > e(1./3., 0.5, 2.)
Concept check for values that can be used in unit tests.
static BearingRange Measure(const A1 &a1, const A2 &a2, OptionalJacobian< dimension, traits< A1 >::dimension > H1={}, OptionalJacobian< dimension, traits< A2 >::dimension > H2={})
Prediction function that stacks measurements.
BearingRange(const B &b, const R &r)
static B MeasureBearing(const A1 &a1, const A2 &a2)
Predict bearing.
const R & range() const
Return range measurement.
bool equals(const BearingRange< A1, A2 > &m2, double tol=1e-8) const
Base class and basic functions for Manifold types.
Special class for optional Jacobian arguments.
Eigen::Matrix< double, dimension, 1 > TangentVector
Eigen::Matrix< double, traits< T >::dimension, traits< A >::dimension > type
pair< size_t, size_t > Range
TangentVector localCoordinates(const BearingRange &other) const
Compute the coordinates in the tangent space.
RT operator()(const A1 &a1, const A2 &a2, OptionalJacobian< traits< RT >::dimension, traits< A1 >::dimension > H1={}, OptionalJacobian< traits< RT >::dimension, traits< A2 >::dimension > H2={})
const B & bearing() const
Return bearing measurement.
void Print(const CONTAINER &keys, const string &s, const KeyFormatter &keyFormatter)
Array< int, Dynamic, 1 > v
OptionalJacobian< dimension, dimension > ChartJacobian
The matrix class, also used for vectors and row-vectors.
#define GTSAM_MAKE_ALIGNED_OPERATOR_NEW_IF(NeedsToAlign)
BearingRange retract(const TangentVector &xi) const
Retract delta to manifold.
RT operator()(const A1 &a1, const A2 &a2, OptionalJacobian< traits< RT >::dimension, traits< A1 >::dimension > H1={}, OptionalJacobian< traits< RT >::dimension, traits< A2 >::dimension > H2={})
Rot2 R(Rot2::fromAngle(0.1))
gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:01:54