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

#include <time.hpp>

Public Member Functions

 Time (int32_t seconds, uint32_t nanoseconds, rcl_time_source_type_t clock=RCL_SYSTEM_TIME)
 Time (uint64_t nanoseconds, rcl_time_source_type_t clock=RCL_SYSTEM_TIME)
 Time (const Time &rhs)
 Time (const builtin_interfaces::msg::Time &time_msg)
virtual ~Time ()
 operator builtin_interfaces::msg::Time () const
void operator= (const Time &rhs)
void operator= (const builtin_interfaces::msg::Time &time_msg)
bool operator== (const rclcpp::Time &rhs) const
bool operator< (const rclcpp::Time &rhs) const
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::Time &rhs) const
Time operator- (const rclcpp::Time &rhs) const
uint64_t nanoseconds () const

Static Public Member Functions

static Time now (rcl_time_source_type_t clock=RCL_SYSTEM_TIME)

Constructor & Destructor Documentation

◆ Time() [1/4]

rclcpp::Time::Time ( int32_t  seconds,
uint32_t  nanoseconds,
rcl_time_source_type_t  clock = RCL_SYSTEM_TIME 

◆ Time() [2/4]

rclcpp::Time::Time ( uint64_t  nanoseconds,
rcl_time_source_type_t  clock = RCL_SYSTEM_TIME 

◆ Time() [3/4]

rclcpp::Time::Time ( const Time rhs)

◆ Time() [4/4]

rclcpp::Time::Time ( const builtin_interfaces::msg::Time &  time_msg)

◆ ~Time()

virtual rclcpp::Time::~Time ( )

Member Function Documentation

◆ now()

static Time rclcpp::Time::now ( rcl_time_source_type_t  clock = RCL_SYSTEM_TIME)

◆ operator builtin_interfaces::msg::Time()

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

◆ operator=() [1/2]

void rclcpp::Time::operator= ( const Time rhs)

◆ operator=() [2/2]

void rclcpp::Time::operator= ( const builtin_interfaces::msg::Time &  time_msg)

◆ operator==()

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

◆ operator<()

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

◆ operator<=()

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

◆ operator>=()

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

◆ operator>()

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

◆ operator+()

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

◆ operator-()

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

◆ nanoseconds()

uint64_t rclcpp::Time::nanoseconds ( ) const

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