44 model, toaMeasurement,
45 Double_(
TimeOfArrival(speed), eventExpression, sensorExpression)) {}
62 std::shared_ptr<Values>
values) {
63 values->insert(key, event);
const gtsam::Symbol key('X', 0)
TOAFactor(const Expression< Event > &eventExpression, const Expression< Point3 > &sensorExpression, double toaMeasurement, const SharedNoiseModel &model, double speed=330)
noiseModel::Diagonal::shared_ptr model
static void InsertEvent(Key key, const Event &event, std::shared_ptr< Values > values)
A "Time of Arrival" factor - so little code seems hardly worth it :-)
Expression< double > Double_
Time of arrival to given sensor.
std::uint64_t Key
Integer nonlinear key type.
TOAFactor(const Expression< Event > &eventExpression, const Point3 &sensor, double toaMeasurement, const SharedNoiseModel &model, double speed=330)
noiseModel::Base::shared_ptr SharedNoiseModel