OKVIS
|
Time representation. May either represent wall clock time or ROS clock time. More...
#include <Time.hpp>
Public Member Functions | |
Time () | |
Time (uint32_t _sec, uint32_t _nsec) | |
Time (double t) | |
Public Member Functions inherited from okvis::TimeBase< Time, Duration > | |
TimeBase () | |
TimeBase (uint32_t _sec, uint32_t _nsec) | |
TimeBase (double t) | |
~TimeBase () | |
Duration | operator- (const Time &rhs) const |
Time | operator- (const Duration &rhs) const |
Time | operator+ (const Duration &rhs) const |
Time & | operator+= (const Duration &rhs) |
Time & | operator-= (const Duration &rhs) |
bool | operator== (const Time &rhs) const |
bool | operator!= (const Time &rhs) const |
bool | operator> (const Time &rhs) const |
bool | operator< (const Time &rhs) const |
bool | operator>= (const Time &rhs) const |
bool | operator<= (const Time &rhs) const |
double | toSec () const |
Time & | fromSec (double t) |
uint64_t | toNSec () const |
Time & | fromNSec (uint64_t t) |
bool | isZero () const |
bool | is_zero () const |
Static Public Member Functions | |
static Time | now () |
Retrieve the current time. Returns the current wall clock time. More... | |
static bool | sleepUntil (const Time &end) |
Sleep until a specific time has been reached. More... | |
static void | init () |
static void | shutdown () |
static void | setNow (const Time &new_now) |
static bool | useSystemTime () |
static bool | isSimTime () |
static bool | isSystemTime () |
static bool | isValid () |
Returns whether or not the current time is valid. Time is valid if it is non-zero. More... | |
static bool | waitForValid () |
Wait for time to become valid. More... | |
static bool | waitForValid (const okvis::WallDuration &timeout) |
Wait for time to become valid, with timeout. More... | |
Additional Inherited Members | |
Public Attributes inherited from okvis::TimeBase< Time, Duration > | |
uint32_t | sec |
uint32_t | nsec |
Time representation. May either represent wall clock time or ROS clock time.
okvis::TimeBase provides most of its functionality.
|
inline |
|
inline |
|
inlineexplicit |
|
static |
|
static |
|
static |
|
static |
Returns whether or not the current time is valid. Time is valid if it is non-zero.
|
static |
Retrieve the current time. Returns the current wall clock time.
|
static |
|
static |
|
static |
Sleep until a specific time has been reached.
|
static |
|
static |
Wait for time to become valid.
|
static |
Wait for time to become valid, with timeout.