23 #include <gtsam_unstable/dllexport.h> 45 Event() : time_(0), location_(0, 0, 0) {}
52 : time_(t), location_(x, y, z) {}
59 static const Matrix14 JacobianZ = (Matrix14() << 0, 0, 0, 1).finished();
60 if (
H) *
H = JacobianZ;
65 GTSAM_UNSTABLE_EXPORT
void print(
const std::string&
s =
"")
const;
68 GTSAM_UNSTABLE_EXPORT
bool equals(
const Event& other,
69 double tol = 1
e-9)
const;
73 return Event(time_ + v[0], location_ +
Point3(v.tail<3>()));
78 return Vector4::Zero();
99 return event.time() + distance / speed_;
110 *H1 << 1.0, D1 / speed_;
114 return event.time() + distance / speed_;
GTSAM_UNSTABLE_EXPORT void print(const std::string &s="") const
Both ManifoldTraits and Testable.
const double speed_
signal speed
Vector4 localCoordinates(const Event &q) const
Returns inverse retraction.
Event retract(const Vector4 &v) const
Updates a with tangent space delta.
Event(double t, const Point3 &p)
Constructor from time and location.
Event(double t, double x, double y, double z)
Constructor with doubles.
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 set rrange[*:*] noreverse nowriteback set trange[*:*] noreverse nowriteback set urange[*:*] noreverse nowriteback set vrange[*:*] noreverse nowriteback set xlabel matrix size set x2label set timefmt d m y n H
double height(OptionalJacobian< 1, 4 > H=boost::none) const
double distance3(const Point3 &p1, const Point3 &q, OptionalJacobian< 1, 3 > H1, OptionalJacobian< 1, 3 > H2)
distance between two points
double measure(const Event &event, const Point3 &sensor) const
Calculate time of arrival.
double operator()(const Event &event, const Point3 &sensor, OptionalJacobian< 1, 4 > H1=boost::none, OptionalJacobian< 1, 3 > H2=boost::none) const
Calculate time of arrival, with derivatives.
TimeOfArrival(double speed=330)
Constructor with optional speed of signal, in m/sec.
Point3 location_
Location at time event was generated.
Event()
Default Constructor.
Array< double, 1, 3 > e(1./3., 0.5, 2.)
EIGEN_DEVICE_FUNC const Scalar & q
GTSAM_UNSTABLE_EXPORT bool equals(const Event &other, double tol=1e-9) const
Time of arrival to given sensor.
double time_
Time event was generated.
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 x