virtual void setToOriginImpl() override
Set the underlying TimeDiff estimate to default.
VertexTimeDiff(double dt, bool fixed=false)
Construct the TimeDiff vertex with a value.
virtual bool write(std::ostream &os) const override
Write the estimate to an output stream.
virtual void oplusImpl(const double *update) override
Define the update increment . A simple addition implements what we want.
VertexTimeDiff(bool fixed=false)
Default constructor.
double & dt()
Access the timediff value of the vertex.
const double & dt() const
Access the timediff value of the vertex (read-only)
This class stores and wraps a time difference into a vertex that can be optimized via g2o...
virtual bool read(std::istream &is) override
Read an estimate of from an input stream.