rclcpp
master
C++ ROS Client Library API
|
Go to the documentation of this file.
15 #ifndef RCLCPP__TIME_HPP_
16 #define RCLCPP__TIME_HPP_
18 #include "builtin_interfaces/msg/time.hpp"
54 explicit Time(int64_t
nanoseconds = 0, rcl_clock_type_t clock_type = RCL_SYSTEM_TIME);
68 const builtin_interfaces::msg::Time & time_msg,
69 rcl_clock_type_t clock_type = RCL_ROS_TIME);
84 operator builtin_interfaces::msg::Time()
const;
101 operator=(
const builtin_interfaces::msg::Time & time_msg);
183 rcl_time_point_value_t
226 #endif // RCLCPP__TIME_HPP_
rcl_clock_type_t get_clock_type() const
Get the clock type.
bool operator>=(const rclcpp::Time &rhs) const
bool operator!=(const rclcpp::Time &rhs) const
bool operator==(const rclcpp::Time &rhs) const
Time operator+(const rclcpp::Duration &lhs, const rclcpp::Time &rhs)
virtual ~Time()
Time destructor.
Time & operator+=(const rclcpp::Duration &rhs)
This header provides the get_node_base_interface() template function.
Definition: allocator_common.hpp:24
rcl_time_point_value_t nanoseconds() const
Get the nanoseconds since epoch.
#define RCLCPP_PUBLIC
Definition: visibility_control.hpp:50
bool operator>(const rclcpp::Time &rhs) const
bool operator<=(const rclcpp::Time &rhs) const
Definition: duration.hpp:26
double seconds() const
Get the seconds since epoch.
Time & operator-=(const rclcpp::Duration &rhs)
Time operator+(const rclcpp::Duration &rhs) const
Duration operator-(const rclcpp::Time &rhs) const
Time & operator=(const Time &rhs)
bool operator<(const rclcpp::Time &rhs) const
static Time max()
Get the maximum representable value.
Time(int32_t seconds, uint32_t nanoseconds, rcl_clock_type_t clock_type=RCL_SYSTEM_TIME)
Time constructor.