25 using namespace gtsam;
43 TEST(Double , Invariants) {
45 EXPECT(check_group_invariants(
p1, p2));
46 EXPECT(check_manifold_invariants(
p1, p2));
59 EXPECT(check_group_invariants(
p1, p2));
60 EXPECT(check_manifold_invariants(
p1, p2));
137 Matrix expectedH, actualH;
143 expectedH = (
Matrix(1, 2) << 1.0, 1.0).finished();
152 expectedH = (
Matrix(1, 2) <<
x2.
x()/actual,
x2.
y()/actual).finished();
163 Matrix expectedH1, actualH1, expectedH2, actualH2;
Concept check for values that can be used in unit tests.
Provides convenient mappings of common member functions for testing.
static int runAllTests(TestResult &result)
TEST(Point2, Constructor)
#define DOUBLES_EQUAL(expected, actual, threshold)
BOOST_CONCEPT_ASSERT((boost::RandomAccessRangeConcept< ListOfOneContainer< int > >))
double distance2(const Point2 &p, const Point2 &q, OptionalJacobian< 1, 2 > H1, OptionalJacobian< 1, 2 > H2)
distance between two points
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 offset
EIGEN_DEVICE_FUNC const SqrtReturnType sqrt() const
Some functions to compute numerical derivatives.
Pose3 x2(Rot3::Ypr(0.0, 0.0, 0.0), l2)
internal::FixedSizeMatrix< Y, X1 >::type numericalDerivative21(const boost::function< Y(const X1 &, const X2 &)> &h, const X1 &x1, const X2 &x2, double delta=1e-5)
#define GTSAM_CONCEPT_LIE_INST(T)
#define EXPECT_DOUBLES_EQUAL(expected, actual, threshold)
EIGEN_DEVICE_FUNC const CosReturnType cos() const
bool equality(const T &input=T())
internal::FixedSizeMatrix< Y, X2 >::type numericalDerivative22(boost::function< Y(const X1 &, const X2 &)> h, const X1 &x1, const X2 &x2, double delta=1e-5)
double norm2(const Point2 &p, OptionalJacobian< 1, 2 > H)
Distance of the point from the origin, with Jacobian.
#define EXPECT(condition)
static const Symbol l3('l', 3)
Array< double, 1, 3 > e(1./3., 0.5, 2.)
Pose3 x3(Rot3::Ypr(M_PI/4.0, 0.0, 0.0), l2)
bool assert_equal(const Matrix &expected, const Matrix &actual, double tol)
Annotation to mark enums as an arithmetic type.
#define EXPECT_LONGS_EQUAL(expected, actual)
boost::optional< Point2 > circleCircleIntersection(double R_d, double r_d, double tol)
EIGEN_DEVICE_FUNC const SinReturnType sin() const
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic, Eigen::RowMajor > Matrix
internal::FixedSizeMatrix< Y, X >::type numericalDerivative11(boost::function< Y(const X &)> h, const X &x, double delta=1e-5)
New-style numerical derivatives using manifold_traits.
double norm_proxy(const Point3 &point)
#define GTSAM_CONCEPT_TESTABLE_INST(T)