Go to the documentation of this file.
29 double d = (
q -
p1).norm();
31 *H1 <<
p1.x() -
q.x(),
p1.y() -
q.y(),
p1.z() -
q.z();
35 *H2 << -
p1.x() +
q.x(), -
p1.y() +
q.y(), -
p1.z() +
q.z();
42 double r =
sqrt(
p.x() *
p.x() +
p.y() *
p.y() +
p.z() *
p.z());
45 *
H <<
p.x() / r,
p.y() / r,
p.z() / r;
56 double x2 =
p.x() *
p.x(), y2 =
p.y() *
p.y(),
z2 =
p.z() *
p.z();
57 double xy =
p.x() *
p.y(), xz =
p.x() *
p.z(), yz =
p.y() *
p.z();
58 *
H << y2 +
z2, -
xy, -xz, -
xy,
x2 +
z2, -yz, -xz, -yz,
x2 + y2;
68 return Point3(
p.y() *
q.z() -
p.z() *
q.y(),
p.z() *
q.x() -
p.x() *
q.z(),
69 p.x() *
q.y() -
p.y() *
q.x());
74 if (H1) *H1 =
q.dot(
p) * I_3x3 +
p *
q.transpose() - 2 *
q *
p.transpose();
84 if (H1) *H1 <<
q.x(),
q.y(),
q.z();
85 if (H2) *H2 <<
p.x(),
p.y(),
p.z();
86 return p.x() *
q.x() +
p.y() *
q.y() +
p.z() *
q.z();
90 const size_t n = abPointPairs.size();
91 if (
n == 0)
throw std::invalid_argument(
"Point3::mean input Point3Pair vector is empty");
92 Point3 aSum(0, 0, 0), bSum(0, 0, 0);
93 for (
const Point3Pair &abPair : abPointPairs) {
95 bSum += abPair.second;
97 const double f = 1.0 /
n;
98 return {aSum *
f, bSum *
f};
103 os <<
p.first <<
" <-> " <<
p.second;
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
std::pair< Point3, Point3 > Point3Pair
Array< double, 1, 3 > e(1./3., 0.5, 2.)
static const double d[K][N]
double dot(const Point3 &p, const Point3 &q, OptionalJacobian< 1, 3 > H1, OptionalJacobian< 1, 3 > H2)
dot product
ofstream os("timeSchurFactors.csv")
Matrix3 skewSymmetric(double wx, double wy, double wz)
Point3 cross(const Point3 &p, const Point3 &q, OptionalJacobian< 3, 3 > H1, OptionalJacobian< 3, 3 > H2)
cross product
EIGEN_DEVICE_FUNC const Scalar & q
Point3 normalize(const Point3 &p, OptionalJacobian< 3, 3 > H)
normalize, with optional Jacobian
Jet< T, N > pow(const Jet< T, N > &f, double g)
Point2(* f)(const Point3 &, OptionalJacobian< 2, 3 >)
double norm3(const Point3 &p, OptionalJacobian< 1, 3 > H)
Distance of the point from the origin, with Jacobian.
Point3Pair means(const std::vector< Point3Pair > &abPointPairs)
Calculate the two means of a set of Point3 pairs.
ostream & operator<<(ostream &os, const gtsam::Point3Pair &p)
double distance3(const Point3 &p1, const Point3 &q, OptionalJacobian< 1, 3 > H1, OptionalJacobian< 1, 3 > H2)
distance between two points
Pose3 x2(Rot3::Ypr(0.0, 0.0, 0.0), l2)
Jet< T, N > sqrt(const Jet< T, N > &f)
Point3 doubleCross(const Point3 &p, const Point3 &q, OptionalJacobian< 3, 3 > H1, OptionalJacobian< 3, 3 > H2)
double cross product
gtsam
Author(s):
autogenerated on Sun Dec 22 2024 04:12:45