Go to the documentation of this file.
24 using namespace gtsam;
27 #define TEST(TITLE,STATEMENT) \
29 for(int i = 0; i < n; i++) \
35 return r1.inverse() *
r2;
49 double c =
c1 *
c2 + s1 * s2,
s = -s1 *
c2 +
c1 * s2;
54 double x =
dt.x(),
y =
dt.y();
59 double dt1 = -s2 *
x +
c2 *
y;
60 double dt2 = -
c2 *
x - s2 *
y;
64 0.0, 0.0,-1.0).finished();
77 return measured.localCoordinates(hx);
103 cout <<
"NOTE: Times are reported for " <<
n <<
" calls" << endl;
106 double x = 4.0,
y = 2.0, r = 0.3;
111 TEST(Retract,
X.retract(
v));
112 TEST(Logmap, Pose2::Logmap(
X2));
113 TEST(localCoordinates,
X.localCoordinates(
X2));
Array< double, 1, 3 > e(1./3., 0.5, 2.)
Pose2 Pose2betweenDefault(const Pose2 &r1, const Pose2 &r2)
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
Pose2 Pose2betweenOptimized(const Pose2 &r1, const Pose2 &r2, OptionalJacobian< 3, 3 > H1={}, OptionalJacobian< 3, 3 > H2={})
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic, Eigen::RowMajor > Matrix
Pose2_ Expmap(const Vector3_ &xi)
AnnoyingScalar atan2(const AnnoyingScalar &y, const AnnoyingScalar &x)
Vector Pose2BetweenFactorEvaluateErrorOptimizedBetweenFixed(const Pose2 &measured, const Pose2 &p1, const Pose2 &p2, OptionalJacobian< 3, 3 > H1, OptionalJacobian< 3, 3 > H2)
Vector Pose2BetweenFactorEvaluateErrorDefault(const Pose2 &measured, const Pose2 &p1, const Pose2 &p2, OptionalJacobian< 3, 3 > H1, OptionalJacobian< 3, 3 > H2)
Vector Pose2BetweenFactorEvaluateErrorOptimizedBetween(const Pose2 &measured, const Pose2 &p1, const Pose2 &p2, OptionalJacobian< 3, 3 > H1, OptionalJacobian< 3, 3 > H2)
#define TEST(TITLE, STATEMENT)
Array< int, Dynamic, 1 > v
Eigen::Matrix< double, Eigen::Dynamic, 1 > Vector
Rot2 R(Rot2::fromAngle(0.1))
gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:09:01