rclcpp  master
C++ ROS Client Library API
Public Member Functions | List of all members
rclcpp::Duration Class Reference

#include <duration.hpp>

Public Member Functions

 Duration (int32_t seconds, uint32_t nanoseconds)
 
 Duration (rcl_duration_value_t nanoseconds)
 
 Duration (std::chrono::nanoseconds nanoseconds)
 
 Duration (const builtin_interfaces::msg::Duration &duration_msg)
 
 Duration (const rcl_duration_t &duration)
 
 Duration (const Duration &rhs)
 
virtual ~Duration ()
 
 operator builtin_interfaces::msg::Duration () const
 
Durationoperator= (const Duration &rhs)
 
Durationoperator= (const builtin_interfaces::msg::Duration &Duration_msg)
 
bool operator== (const rclcpp::Duration &rhs) const
 
bool operator< (const rclcpp::Duration &rhs) const
 
bool operator<= (const rclcpp::Duration &rhs) const
 
bool operator>= (const rclcpp::Duration &rhs) const
 
bool operator> (const rclcpp::Duration &rhs) const
 
Duration operator+ (const rclcpp::Duration &rhs) const
 
Duration operator- (const rclcpp::Duration &rhs) const
 
Duration operator* (double scale) const
 
rcl_duration_value_t nanoseconds () const
 

Constructor & Destructor Documentation

◆ Duration() [1/6]

rclcpp::Duration::Duration ( int32_t  seconds,
uint32_t  nanoseconds 
)

◆ Duration() [2/6]

rclcpp::Duration::Duration ( rcl_duration_value_t  nanoseconds)
explicit

◆ Duration() [3/6]

rclcpp::Duration::Duration ( std::chrono::nanoseconds  nanoseconds)
explicit

◆ Duration() [4/6]

rclcpp::Duration::Duration ( const builtin_interfaces::msg::Duration &  duration_msg)

◆ Duration() [5/6]

rclcpp::Duration::Duration ( const rcl_duration_t duration)
explicit

◆ Duration() [6/6]

rclcpp::Duration::Duration ( const Duration rhs)

◆ ~Duration()

virtual rclcpp::Duration::~Duration ( )
virtual

Member Function Documentation

◆ operator builtin_interfaces::msg::Duration()

rclcpp::Duration::operator builtin_interfaces::msg::Duration ( ) const

◆ operator=() [1/2]

Duration& rclcpp::Duration::operator= ( const Duration rhs)

◆ operator=() [2/2]

Duration& rclcpp::Duration::operator= ( const builtin_interfaces::msg::Duration &  Duration_msg)

◆ operator==()

bool rclcpp::Duration::operator== ( const rclcpp::Duration rhs) const

◆ operator<()

bool rclcpp::Duration::operator< ( const rclcpp::Duration rhs) const

◆ operator<=()

bool rclcpp::Duration::operator<= ( const rclcpp::Duration rhs) const

◆ operator>=()

bool rclcpp::Duration::operator>= ( const rclcpp::Duration rhs) const

◆ operator>()

bool rclcpp::Duration::operator> ( const rclcpp::Duration rhs) const

◆ operator+()

Duration rclcpp::Duration::operator+ ( const rclcpp::Duration rhs) const

◆ operator-()

Duration rclcpp::Duration::operator- ( const rclcpp::Duration rhs) const

◆ operator*()

Duration rclcpp::Duration::operator* ( double  scale) const

◆ nanoseconds()

rcl_duration_value_t rclcpp::Duration::nanoseconds ( ) const

The documentation for this class was generated from the following file: