12 #include <gtsam_unstable/dllexport.h> 23 static const size_t dimension = 2;
33 : azimuth_(
Rot2::fromAngle(azimuth)), elevation_(
Rot2::fromAngle(elevation)) {}
36 : azimuth_(azimuth), elevation_(elevation) {}
50 template<
class POSE,
class TARGET>
52 return fromDownwardsObservation(A.pose(), B.translation());
65 void print(
const std::string&
s =
"")
const;
75 inline static size_t Dim() {
return dimension; }
78 inline size_t dim()
const {
return dimension; }
93 #ifdef GTSAM_ENABLE_BOOST_SERIALIZATION // 95 friend class boost::serialization::access;
96 template<
class Archive>
97 void serialize(Archive & ar,
const unsigned int ) {
98 ar & BOOST_SERIALIZATION_NVP(azimuth_);
99 ar & BOOST_SERIALIZATION_NVP(elevation_);
void print(const Matrix &A, const string &s, ostream &stream)
std::string serialize(const T &input)
serializes to a string
BearingS2(const Rot2 &azimuth, const Rot2 &elevation)
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)
const Rot2 & elevation() const
const Rot2 & azimuth() const
Array< int, Dynamic, 1 > v
Array< double, 1, 3 > e(1./3., 0.5, 2.)
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)