20 *H1 << I_3x3, Matrix23::Zero();
22 *H2 << Matrix32::Zero(), I_2x2;
39 Matrix23 D_direction_1T2;
40 Unit3 direction = Unit3::FromPoint3(aTb, D_direction_1T2);
42 Matrix23::Zero(), D_direction_1T2 * aRb.
matrix();
51 direction().print(
"d: ");
89 *HE << cRb.
matrix(), Matrix32::Zero(),
90 Matrix23::Zero(), D_c1Tc2_aTb;
93 "EssentialMatrix::rotate: derivative HR not implemented yet");
110 * direction().basis();
113 return dot(vA, E_ * vB);
121 os << R.
xyz().transpose() <<
" " << d.
point3().transpose() <<
" ";
127 double rx, ry, rz, dx, dy, dz;
128 is >> rx >> ry >> rz;
129 is >> dx >> dy >> dz;
132 Rot3 rot = Rot3::RzRyRx(rx, ry, rz);
void print(const Matrix &A, const string &s, ostream &stream)
int EIGEN_BLAS_FUNC() rot(int *n, RealScalar *px, int *incx, RealScalar *py, int *incy, RealScalar *pc, RealScalar *ps)
ostream & operator<<(ostream &os, const EssentialMatrix &E)
Rot2 R(Rot2::fromAngle(0.1))
Rot3 conjugate(const Rot3 &cRb) const
const Point3 & translation(OptionalJacobian< 3, 6 > Hself=boost::none) const
get translation
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 y set format x g set format y g set format x2 g set format y2 g set format z g set angles radians set nogrid set key title set key left top Right noreverse box linetype linewidth samplen spacing width set nolabel set noarrow set nologscale set logscale x set set pointsize set encoding default set nopolar set noparametric set set set set surface set nocontour set clabel set mapping cartesian set nohidden3d set cntrparam order set cntrparam linear set cntrparam levels auto set cntrparam points set size set set xzeroaxis lt lw set x2zeroaxis lt lw set yzeroaxis lt lw set y2zeroaxis lt lw set tics in set ticslevel set tics set mxtics default set mytics default set mx2tics default set my2tics default set xtics border mirror norotate autofreq set ytics border mirror norotate autofreq set ztics border nomirror norotate autofreq set nox2tics set noy2tics set timestamp bottom norotate set rrange[*:*] noreverse nowriteback set trange[*:*] noreverse nowriteback set urange[*:*] noreverse nowriteback set vrange[*:*] noreverse nowriteback set xlabel matrix size set x2label set timefmt d m y n H
Point3 rotate(const Point3 &p, OptionalJacobian< 3, 3 > H1=boost::none, OptionalJacobian< 3, 3 > H2=boost::none) const
Vector3 xyz(OptionalJacobian< 3, 3 > H=boost::none) const
const Unit3 & direction() const
Direction.
Represents a 3D point on a unit sphere.
Point3 transformTo(const Point3 &point, OptionalJacobian< 3, 6 > Hself=boost::none, OptionalJacobian< 3, 3 > Hpoint=boost::none) const
takes point in world coordinates and transforms it to Pose coordinates
Scalar EIGEN_BLAS_FUNC() dot(int *n, RealScalar *px, int *incx, RealScalar *py, int *incy)
static const Pose3 pose(Rot3(Vector3(1,-1,-1).asDiagonal()), Point3(0, 0, 0.5))
void print(const std::string &s="") const
P rotate(const T &r, const P &pt)
static const Point3 point3(0.08, 0.08, 0.0)
EIGEN_DEVICE_FUNC const Scalar & q
GTSAM_EXPORT Point3 point3(OptionalJacobian< 3, 2 > H=boost::none) const
Return unit-norm Point3.
Matrix3 transpose() const
Matrix3 skewSymmetric(double wx, double wy, double wz)
ofstream os("timeSchurFactors.csv")
const Rot3 & rotation() const
Rotation.
Line3 transformTo(const Pose3 &wTc, const Line3 &wL, OptionalJacobian< 4, 6 > Dpose, OptionalJacobian< 4, 4 > Dline)
Map< Matrix< T, Dynamic, Dynamic, ColMajor >, 0, OuterStride<> > matrix(T *data, int rows, int cols, int stride)
Rot3 rotation(const Pose3 &pose, OptionalJacobian< 3, 6 > H)
istream & operator>>(istream &is, EssentialMatrix &E)
const Rot3 & rotation(OptionalJacobian< 3, 6 > Hself=boost::none) const
get rotation