18 cout << s <<
" azimuth: " << azimuth_.theta() <<
" elevation: " << elevation_.theta() << endl;
35 -1.,0.,0.).finished();
42 double azimuth =
atan2(p_rel_c(1),p_rel_c(0));
44 double elevation =
atan2(p_rel_c(2),
sqrt(p_rel_c(0) * p_rel_c(0) + p_rel_c(1) * p_rel_c(1)));
58 double azimuth =
atan2(p_rel_c(1),p_rel_c(0));
60 double elevation =
atan2(p_rel_c(2),
sqrt(p_rel_c(0) * p_rel_c(0) + p_rel_c(1) * p_rel_c(1)));
66 assert(v.size() == 2);
67 return BearingS2(azimuth_.retract(v.head(1)), elevation_.retract(v.tail(1)));
73 elevation_.localCoordinates(x.
elevation_)(0)).finished();
EIGEN_DEVICE_FUNC const SqrtReturnType sqrt() const
const Point3 & translation(OptionalJacobian< 3, 6 > Hself=boost::none) const
get translation
bool equals(const BearingS2 &x, double tol=1e-9) const
BearingS2 retract(const Vector &v) const
static BearingS2 fromDownwardsObservation(const POSE &A, const TARGET &B)
Vector localCoordinates(const BearingS2 &p2) const
Local coordinates of BearingS2 manifold neighborhood around current pose.
Jet< T, N > atan2(const Jet< T, N > &g, const Jet< T, N > &f)
static BearingS2 fromForwardObservation(const Pose3 &A, const Point3 &B)
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
Manifold measurement between two points on a unit sphere.
void print(const std::string &s="") const
const Rot3 & rotation(OptionalJacobian< 3, 6 > Hself=boost::none) const
get rotation