Minimal ros::Time() / rplcpp::Time implementation (that doesn't throw)
More...
#include <time.hpp>
|
| RosTime (const uint32_t sec, const uint32_t nsec) |
| Constructor.
|
|
double | ToSec () const |
| Convert to seconds.
|
|
bool | IsZero () const |
| Check if time is zero (invalid, unset)
|
|
|
uint32_t | sec_ |
| Seconds part of time.
|
|
uint32_t | nsec_ |
| Nanoseconds part of time (should be in range 0-999999999)
|
|
Minimal ros::Time() / rplcpp::Time implementation (that doesn't throw)
Definition at line 66 of file time.hpp.
◆ RosTime()
fpsdk::common::time::RosTime::RosTime |
( |
const uint32_t | sec, |
|
|
const uint32_t | nsec ) |
Constructor.
- Parameters
-
[in] | sec | Time value seconds |
[in] | nsec | Time value nanoseconds |
◆ ToSec()
double fpsdk::common::time::RosTime::ToSec |
( |
| ) |
const |
Convert to seconds.
- Returns
- the time value (time since epoch) in [s]
◆ IsZero()
bool fpsdk::common::time::RosTime::IsZero |
( |
| ) |
const |
Check if time is zero (invalid, unset)
- Returns
- true if time is zero (invalid, unset)
◆ sec_
uint32_t fpsdk::common::time::RosTime::sec_ |
Seconds part of time.
Definition at line 91 of file time.hpp.
◆ nsec_
uint32_t fpsdk::common::time::RosTime::nsec_ |
Nanoseconds part of time (should be in range 0-999999999)
Definition at line 92 of file time.hpp.
The documentation for this struct was generated from the following file:
- fpsdk_common/include/fpsdk_common/time.hpp