28 using namespace gtsam;
31 static const double ms = 1
e-3;
32 static const double cm = 1
e-2;
46 Event actual(t, 201.5 *
cm, 201.5 *
cm, (212 - 45) *
cm);
51 Event event(0, 1, 0, 0);
67 Matrix expectedH1 = numericalDerivative11<double, Event>(
71 Matrix expectedH2 = numericalDerivative11<double, Point3>(
const gtsam::Symbol key('X', 0)
static int runAllTests(TestResult &result)
Eigen::Matrix< double, 1, 1 > Vector1
bool assert_equal(const Matrix &expected, const Matrix &actual, double tol)
Some functions to compute numerical derivatives.
Event retract(const Vector4 &v) const
Updates a with tangent space delta.
#define EXPECT_DOUBLES_EQUAL(expected, actual, threshold)
Expressions for Block Automatic Differentiation.
static const Event exampleEvent(timeOfEvent, 1, 0, 0)
static const Point3 microphoneAt0(0, 0, 0)
#define EXPECT(condition)
Array< int, Dynamic, 1 > v
Array< double, 1, 3 > e(1./3., 0.5, 2.)
Time of arrival to given sensor.
static SharedNoiseModel model(noiseModel::Isotropic::Sigma(1, 0.5 *ms))
T value(const Values &values, std::vector< Matrix > *H=nullptr) const
Return value and optional derivatives, reverse AD version Notes: this is not terribly efficient...
static const TimeOfArrival kToa(kSpeedOfSound)
void insert(Key j, const Value &val)
The matrix class, also used for vectors and row-vectors.
static const double kSpeedOfSound
static const double timeOfEvent
std::uint64_t Key
Integer nonlinear key type.
noiseModel::Base::shared_ptr SharedNoiseModel