59 if (!relative && (sec < 0 || nsec < 0))
61 throw std::invalid_argument(
"Negative values for sec or nsec are only allowed for relative time specification!");
TrajectoryTime(long sec, long nsec, bool relative)
Full constructor for specifiying a time either as relative offset or as absolute timestamp.
static TrajectoryTime RelativeToEnd(unsigned long sec=0, unsigned long nsec=0)
Creates a time stamp from the given values as an offset from the end point of the trajectory...
static TrajectoryTime RelativeToStart(unsigned long sec=0, unsigned long nsec=0)
Creates a time stamp from the given values as an offset to the start point of the trajectory...
static TrajectoryTime Absolute(unsigned long sec, unsigned long nsec)
Creates an absolute time stamp of the given values.
Represents a time stamp to query the trajectory of rcvisard's slam module.