51 inline Line3_
transformTo(
const Pose3_ &wTc,
const Line3_ &wL) {
66 inline Point3_
cross(
const Point3_&
a,
const Point3_&
b) {
97 inline Point3_
rotate(
const Rot3_&
x,
const Point3_&
p) {
105 inline Unit3_
rotate(
const Rot3_&
x,
const Unit3_&
p) {
121 inline Unit3_
normal(
const OrientedPlane3_&
p) {
143 template <
class CAMERA,
class POINT>
146 return camera.project2(p, Dcam, Dpoint);
150 template <
class CAMERA,
class POINT>
152 return Point2_(internal::project4<CAMERA, POINT>, camera_, p_);
157 template <
class CALIBRATION,
class POINT>
165 template <
class CALIBRATION,
class POINT>
168 return Point2_(internal::project6<CALIBRATION, POINT>, x, p, K);
171 template <
class CALIBRATION>
176 template <
class CALIBRATION>
191 template <
typename T>
Point3_ unrotate(const Rot3_ &x, const Point3_ &p)
Point3 translation(const Pose3 &pose, OptionalJacobian< 3, 6 > H)
Point2_ project(const Point3_ &p_cam)
Expression version of PinholeBase::Project.
Pose3_ getPose(const Expression< PinholeCamera< CALIBRATION > > &cam)
const Point3 & translation(OptionalJacobian< 3, 6 > Hself={}) const
get translation
double dot(const V1 &a, const V2 &b)
Expression< double > Double_
Give fixed size dimension of a type, fails at compile time if dynamic.
Point2_ project2(const Expression< CAMERA > &camera_, const Expression< POINT > &p_)
Double_ distance(const OrientedPlane3_ &p)
static Cal3_S2 K(500, 500, 0.1, 640/2, 480/2)
Expression< Point2 > Point2_
Pose3 x2(Rot3::Ypr(0.0, 0.0, 0.0), l2)
Expression< Cal3Bundler > Cal3Bundler_
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
Pose3_ transformPoseTo(const Pose3_ &p, const Pose3_ &q)
Expression< Pose2 > Pose2_
Rot3 is a 3D rotation represented as a rotation matrix if the preprocessor symbol GTSAM_USE_QUATERNIO...
double distance(OptionalJacobian< 1, 3 > H={}) const
Return the perpendicular distance to the origin.
static void normalize(Signature::Row &row)
Represents a 3D point on a unit sphere.
Base class for all pinhole cameras.
Expression< OrientedPlane3 > OrientedPlane3_
Point3_ transformFrom(const Pose3_ &x, const Point3_ &p)
gtsam::Expression< typename gtsam::traits< T >::TangentVector > logmap(const gtsam::Expression< T > &x1, const gtsam::Expression< T > &x2)
logmap
Point3 unrotate(const Point3 &p, OptionalJacobian< 3, 3 > H1={}, OptionalJacobian< 3, 3 > H2={}) const
rotate point from world to rotated frame
Point3 cross(const Point3 &p, const Point3 &q, OptionalJacobian< 3, 3 > H1, OptionalJacobian< 3, 3 > H2)
cross product
Point2_ project3(const Pose3_ &x, const Expression< POINT > &p, const Expression< CALIBRATION > &K)
Array< int, Dynamic, 1 > v
static Point2 Project(const Point3 &pc, OptionalJacobian< 2, 3 > Dpoint={})
Point3 transformFrom(const Point3 &point, OptionalJacobian< 3, 6 > Hself={}, OptionalJacobian< 3, 3 > Hpoint={}) const
takes point in Pose coordinates and transforms it to world coordinates
Expression< Unit3 > Unit3_
Point2 project4(const CAMERA &camera, const POINT &p, OptionalJacobian< 2, CAMERA::dimension > Dcam, OptionalJacobian< 2, FixedDimension< POINT >::value > Dpoint)
Point2(* f)(const Point3 &, OptionalJacobian< 2, 3 >)
EIGEN_DEVICE_FUNC const Scalar & q
Point3_ rotate(const Rot3_ &x, const Point3_ &p)
Unit3_ normal(const OrientedPlane3_ &p)
The most common 5DOF 3D->2D calibration.
Point3_ p_cam(x, &Pose3::transformTo, p)
4 dimensional manifold of 3D lines
Expression< Point3 > Point3_
Point3_ point3(const Unit3_ &v)
Expression< Cal3_S2 > Cal3_S2_
static const Pose3 pose(Rot3(Vector3(1, -1, -1).asDiagonal()), Point3(0, 0, 0.5))
Double_ range(const Point2_ &p, const Point2_ &q)
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
Point2_ uncalibrate(const Expression< CALIBRATION > &K, const Point2_ &xy_hat)
Unit3 normal(OptionalJacobian< 2, 3 > H={}) const
Return the normal.
Point2 project6(const Pose3 &x, const Point3 &p, const Cal3_S2 &K, OptionalJacobian< 2, 6 > Dpose, OptionalJacobian< 2, 3 > Dpoint, OptionalJacobian< 2, 5 > Dcal)
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
Rot3 rotation(const Pose3 &pose, OptionalJacobian< 3, 6 > H)
static const CalibratedCamera camera(kDefaultPose)
GTSAM_EXPORT Point2 transformTo(const Point2 &point, OptionalJacobian< 2, 3 > Dpose={}, OptionalJacobian< 2, 2 > Dpoint={}) const
Pose3 transformPoseTo(const Pose3 &wTb, OptionalJacobian< 6, 6 > Hself={}, OptionalJacobian< 6, 6 > HwTb={}) 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
Expression< Line3 > Line3_
Expression< T > between(const Expression< T > &t1, const Expression< T > &t2)
Calibration used by Bundler.
Expression< Pose3 > Pose3_
The most common 5DOF 3D->2D calibration.
Point2 uncalibrate(const CAL &K, const Point2 &p, OptionalJacobian< 2, 5 > Dcal, OptionalJacobian< 2, 2 > Dp)