![]() |
Fixposition SDK 0.0.0-heads/main-0-g97f6014
Collection of c++ libraries and apps for use with Fixposition products on Linux
|
Minimal ros::Time() / rplcpp::Time implementation (that doesn't throw) More...
#include <time.hpp>
Public Member Functions | |
| RosTime (const uint32_t sec, const uint32_t nsec) | |
| Constructor. | |
| double | ToSec () const |
| Convert to seconds. | |
| uint64_t | ToNSec () const |
| Convert to nanoseconds. | |
| bool | IsZero () const |
| Check if time is zero (invalid, unset) | |
| bool | operator== (const RosTime &rhs) const |
| Equal. | |
Public Attributes | |
| 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)
| fpsdk::common::time::RosTime::RosTime | ( | const uint32_t | sec, |
| const uint32_t | nsec ) |
| double fpsdk::common::time::RosTime::ToSec | ( | ) | const |
Convert to seconds.
| uint64_t fpsdk::common::time::RosTime::ToNSec | ( | ) | const |
Convert to nanoseconds.
| bool fpsdk::common::time::RosTime::IsZero | ( | ) | const |
Check if time is zero (invalid, unset)
| uint32_t fpsdk::common::time::RosTime::sec_ |
Seconds part of time.
Definition at line 187 of file time.hpp.
Referenced by fpsdk::ros2::bagwriter::BagWriter::WriteMessage().
| uint32_t fpsdk::common::time::RosTime::nsec_ |
Nanoseconds part of time (should be in range 0-999999999)
Definition at line 188 of file time.hpp.
Referenced by fpsdk::ros2::bagwriter::BagWriter::WriteMessage().