16 using namespace gtsam;
18 static const double tol=1
e-5;
21 TEST( testBearingS2, basics ) {
26 double expAzi = 0.2, expEle = 0.3;
47 TEST( testBearingS2, manifold ) {
Provides additional testing facilities for common data structures.
static int runAllTests(TestResult &result)
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 origin
bool assert_equal(const Matrix &expected, const Matrix &actual, double tol)
bool assert_inequal(const Matrix &A, const Matrix &B, double tol)
size_t dim() const
Dimensionality of tangent space = 2 DOF.
const Rot2 & elevation() const
const Rot2 & azimuth() const
BearingS2 retract(const Vector &v) const
Vector localCoordinates(const BearingS2 &p2) const
Local coordinates of BearingS2 manifold neighborhood around current pose.
#define EXPECT(condition)
Array< double, 1, 3 > e(1./3., 0.5, 2.)
#define EXPECT_LONGS_EQUAL(expected, actual)
static Rot2 fromAngle(double theta)
Named constructor from angle in radians.
TEST(SmartFactorBase, Pinhole)
Manifold measurement between two points on a unit sphere.
static const Eigen::MatrixBase< Vector2 >::ConstantReturnType Z_2x1