#include <duration.hpp>
◆ Duration() [1/6]
rclcpp::Duration::Duration |
( |
int32_t |
seconds, |
|
|
uint32_t |
nanoseconds |
|
) |
| |
◆ Duration() [2/6]
◆ Duration() [3/6]
◆ Duration() [4/6]
rclcpp::Duration::Duration |
( |
const builtin_interfaces::msg::Duration & |
duration_msg | ) |
|
◆ Duration() [5/6]
◆ Duration() [6/6]
rclcpp::Duration::Duration |
( |
const Duration & |
rhs | ) |
|
◆ ~Duration()
virtual rclcpp::Duration::~Duration |
( |
| ) |
|
|
virtual |
◆ operator builtin_interfaces::msg::Duration()
rclcpp::Duration::operator builtin_interfaces::msg::Duration |
( |
| ) |
const |
◆ operator=() [1/2]
◆ operator=() [2/2]
Duration& rclcpp::Duration::operator= |
( |
const builtin_interfaces::msg::Duration & |
Duration_msg | ) |
|
◆ operator==()
◆ operator<()
◆ operator<=()
◆ operator>=()
◆ operator>()
◆ operator+()
◆ operator-()
◆ max()
static Duration rclcpp::Duration::max |
( |
| ) |
|
|
static |
◆ operator*()
Duration rclcpp::Duration::operator* |
( |
double |
scale | ) |
const |
◆ nanoseconds()
◆ seconds()
double rclcpp::Duration::seconds |
( |
| ) |
const |
- Returns
- the duration in seconds as a floating point number.
- Warning
- Depending on sizeof(double) there could be significant precision loss. When an exact time is required use nanoseconds() instead.
The documentation for this class was generated from the following file: