rclcpp
master
C++ ROS Client Library API
|
Go to the documentation of this file.
15 #ifndef RCLCPP__DURATION_HPP_
16 #define RCLCPP__DURATION_HPP_
20 #include "builtin_interfaces/msg/duration.hpp"
43 "Use Duration::from_nanoseconds instead or std::chrono_literals. For example:"
44 "rclcpp::Duration::from_nanoseconds(int64_variable);"
45 "rclcpp::Duration(0ns);")]]
53 template<
class Rep,
class Period>
60 Duration(
const builtin_interfaces::msg::Duration & duration_msg);
72 operator builtin_interfaces::msg::Duration()
const;
79 operator=(
const builtin_interfaces::msg::Duration & duration_msg);
114 operator*(
double scale)
const;
134 from_seconds(
double seconds);
144 template<
class DurationT>
163 #endif // RCLCPP__DURATION_HPP_
DurationT to_chrono() const
Convert Duration into a std::chrono::Duration.
Definition: duration.hpp:146
Time operator+(const rclcpp::Duration &lhs, const rclcpp::Time &rhs)
Duration(const std::chrono::duration< Rep, Period > &duration)
Definition: duration.hpp:55
This header provides the get_node_base_interface() template function.
Definition: allocator_common.hpp:24
#define RCLCPP_PUBLIC
Definition: visibility_control.hpp:50
bool operator==(const NetworkFlowEndpoint &left, const NetworkFlowEndpoint &right)
Check if two NetworkFlowEndpoint instances are equal.
Definition: duration.hpp:26
rcutils_duration_value_t rcl_duration_value_t
bool operator!=(const NetworkFlowEndpoint &left, const NetworkFlowEndpoint &right)
Check if two NetworkFlowEndpoint instances are not equal.