Public Member Functions |
| Time () |
| Time (uint32_t _sec, uint32_t _nsec) |
| Time (double t) |
Static Public Member Functions |
static Time | fromBoost (const boost::posix_time::ptime &t) |
static Time | fromBoost (const boost::posix_time::time_duration &d) |
static void | init () |
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.
|
static Time | now () |
| Retrieve the current time. If ROS clock time is in use, this returns the time according to the ROS clock. Otherwise returns the current wall clock time.
|
static void | setNow (const Time &new_now) |
static void | shutdown () |
static bool | sleepUntil (const Time &end) |
| Sleep until a specific time has been reached.
|
static bool | useSystemTime () |
static bool | waitForValid () |
| Wait for time to become valid.
|
static bool | waitForValid (const ros::WallDuration &timeout) |
| Wait for time to become valid, with timeout.
|
Time representation. May either represent wall clock time or ROS clock time.
ros::TimeBase provides most of its functionality.
Definition at line 169 of file time.h.