rclcpp  master
C++ ROS Client Library API
Public Member Functions | List of all members
rclcpp::GenericRate< Clock > Class Template Reference

#include <rate.hpp>

Inheritance diagram for rclcpp::GenericRate< Clock >:
Inheritance graph
[legend]
Collaboration diagram for rclcpp::GenericRate< Clock >:
Collaboration graph
[legend]

Public Member Functions

 GenericRate (double rate)
 
 GenericRate (std::chrono::nanoseconds period)
 
virtual bool sleep ()
 
virtual bool is_steady () const
 
virtual void reset ()
 
std::chrono::nanoseconds period () const
 

Constructor & Destructor Documentation

◆ GenericRate() [1/2]

template<class Clock = std::chrono::high_resolution_clock>
rclcpp::GenericRate< Clock >::GenericRate ( double  rate)
inlineexplicit

◆ GenericRate() [2/2]

template<class Clock = std::chrono::high_resolution_clock>
rclcpp::GenericRate< Clock >::GenericRate ( std::chrono::nanoseconds  period)
inlineexplicit

Member Function Documentation

◆ sleep()

template<class Clock = std::chrono::high_resolution_clock>
virtual bool rclcpp::GenericRate< Clock >::sleep ( )
inlinevirtual

Implements rclcpp::RateBase.

◆ is_steady()

template<class Clock = std::chrono::high_resolution_clock>
virtual bool rclcpp::GenericRate< Clock >::is_steady ( ) const
inlinevirtual

Implements rclcpp::RateBase.

◆ reset()

template<class Clock = std::chrono::high_resolution_clock>
virtual void rclcpp::GenericRate< Clock >::reset ( )
inlinevirtual

Implements rclcpp::RateBase.

◆ period()

template<class Clock = std::chrono::high_resolution_clock>
std::chrono::nanoseconds rclcpp::GenericRate< Clock >::period ( ) const
inline

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