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);
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)
const Point3 & translation(OptionalJacobian< 3, 6 > Hself={}) const
get translation
const Unit3 & direction() const
Direction.
Rot2 R(Rot2::fromAngle(0.1))
EIGEN_STRONG_INLINE Packet4f print(const Packet4f &a)
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
Rot3 is a 3D rotation represented as a rotation matrix if the preprocessor symbol GTSAM_USE_QUATERNIO...
Represents a 3D point on a unit sphere.
Scalar EIGEN_BLAS_FUNC() dot(int *n, RealScalar *px, int *incx, RealScalar *py, int *incy)
Rot3 conjugate(const Rot3 &cRb) const
Vector3 xyz(OptionalJacobian< 3, 3 > H={}) const
P rotate(const T &r, const P &pt)
const Rot3 & rotation() const
Rotation.
static const Point3 point3(0.08, 0.08, 0.0)
EIGEN_DEVICE_FUNC const Scalar & q
Matrix3 skewSymmetric(double wx, double wy, double wz)
static const Pose3 pose(Rot3(Vector3(1, -1, -1).asDiagonal()), Point3(0, 0, 0.5))
ofstream os("timeSchurFactors.csv")
Point3 transformTo(const Point3 &point, OptionalJacobian< 3, 6 > Hself={}, OptionalJacobian< 3, 3 > Hpoint={}) const
takes point in world coordinates and transforms it to Pose coordinates
void print(const std::string &s="") const
const Rot3 & rotation(OptionalJacobian< 3, 6 > Hself={}) const
get rotation
Point3 point3(OptionalJacobian< 3, 2 > H={}) const
Return unit-norm Point3.
Line3 transformTo(const Pose3 &wTc, const Line3 &wL, OptionalJacobian< 4, 6 > Dpose, OptionalJacobian< 4, 4 > Dline)
Point3 rotate(const Point3 &p, OptionalJacobian< 3, 3 > H1={}, OptionalJacobian< 3, 3 > H2={}) const
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)
Matrix3 transpose() const
istream & operator>>(istream &is, EssentialMatrix &E)