12 #include <gtsam_unstable/dllexport.h> 23 static const size_t dimension = 2;
32 : azimuth_(
Rot2::fromAngle(azimuth)), elevation_(
Rot2::fromAngle(elevation)) {}
35 : azimuth_(azimuth), elevation_(elevation) {}
49 template<
class POSE,
class TARGET>
51 return fromDownwardsObservation(A.pose(), B.translation());
64 void print(
const std::string&
s =
"")
const;
74 inline static size_t Dim() {
return dimension; }
77 inline size_t dim()
const {
return dimension; }
93 friend class boost::serialization::access;
94 template<
class Archive>
96 ar & BOOST_SERIALIZATION_NVP(azimuth_);
97 ar & BOOST_SERIALIZATION_NVP(elevation_);
void print(const Matrix &A, const string &s, ostream &stream)
void serialize(Archive &ar, const unsigned int)
BearingS2(const Rot2 &azimuth, const Rot2 &elevation)
const Rot2 & azimuth() const
static size_t Dim()
Dimensionality of tangent space = 2 DOF - used to autodetect sizes.
size_t dim() const
Dimensionality of tangent space = 2 DOF.
static BearingS2 fromDownwardsObservation(const POSE &A, const TARGET &B)
Array< double, 1, 3 > e(1./3., 0.5, 2.)
const Rot2 & elevation() const
set noclip points set clip one set noclip two set bar set border lt lw set xdata set ydata set zdata set x2data set y2data set boxwidth set dummy x
BearingS2(double azimuth, double elevation)