22#include <gtsam/nonlinear/ExpressionFactor.h>
23#include <gtsam_unstable/geometry/Event.h>
44 model, toaMeasurement,
45 Double_(TimeOfArrival(speed), eventExpression, sensorExpression)) {}
61 static void InsertEvent(
Key key,
const Event& event,
62 boost::shared_ptr<Values> values) {
63 values->insert(key, event);
Global functions in a separate testing namespace.
Definition: chartTesting.h:28
Vector3 Point3
As of GTSAM 4, in order to make GTSAM more lean, it is now possible to just typedef Point3 to Vector3...
Definition: Point3.h:35
noiseModel::Base::shared_ptr SharedNoiseModel
Note, deliberately not in noiseModel namespace.
Definition: NoiseModel.h:736
std::uint64_t Key
Integer nonlinear key type.
Definition: types.h:69
Factor that supports arbitrary expressions via AD.
Definition: ExpressionFactor.h:44
A "Time of Arrival" factor - so little code seems hardly worth it :-)
Definition: TOAFactor.h:28
TOAFactor(const Expression< Event > &eventExpression, const Expression< Point3 > &sensorExpression, double toaMeasurement, const SharedNoiseModel &model, double speed=330)
Most general constructor with two expressions.
Definition: TOAFactor.h:40
TOAFactor(const Expression< Event > &eventExpression, const Point3 &sensor, double toaMeasurement, const SharedNoiseModel &model, double speed=330)
Constructor with fixed sensor.
Definition: TOAFactor.h:55