Public Member Functions | Private Attributes | List of all members
realtime_tools::RealtimeClock Class Reference

#include <realtime_clock.h>

Public Member Functions

ros::Time getSystemTime (const ros::Time &realtime_time)
 
void loop ()
 
 RealtimeClock ()
 
 ~RealtimeClock ()
 

Private Attributes

ros::Duration clock_offset_
 
bool initialized_ = false
 
ros::Time last_realtime_time_
 
unsigned int lock_misses_ = 0
 
std::mutex mutex_
 
bool running_ = false
 
ros::Time system_time_
 
std::thread thread_
 

Detailed Description

Definition at line 50 of file realtime_clock.h.

Constructor & Destructor Documentation

◆ RealtimeClock()

realtime_tools::RealtimeClock::RealtimeClock ( )

Definition at line 46 of file realtime_clock.cpp.

◆ ~RealtimeClock()

realtime_tools::RealtimeClock::~RealtimeClock ( )

Definition at line 53 of file realtime_clock.cpp.

Member Function Documentation

◆ getSystemTime()

ros::Time realtime_tools::RealtimeClock::getSystemTime ( const ros::Time realtime_time)

Definition at line 61 of file realtime_clock.cpp.

◆ loop()

void realtime_tools::RealtimeClock::loop ( )

Definition at line 97 of file realtime_clock.cpp.

Member Data Documentation

◆ clock_offset_

ros::Duration realtime_tools::RealtimeClock::clock_offset_
private

Definition at line 63 of file realtime_clock.h.

◆ initialized_

bool realtime_tools::RealtimeClock::initialized_ = false
private

Definition at line 67 of file realtime_clock.h.

◆ last_realtime_time_

ros::Time realtime_tools::RealtimeClock::last_realtime_time_
private

Definition at line 65 of file realtime_clock.h.

◆ lock_misses_

unsigned int realtime_tools::RealtimeClock::lock_misses_ = 0
private

Definition at line 61 of file realtime_clock.h.

◆ mutex_

std::mutex realtime_tools::RealtimeClock::mutex_
private

Definition at line 68 of file realtime_clock.h.

◆ running_

bool realtime_tools::RealtimeClock::running_ = false
private

Definition at line 66 of file realtime_clock.h.

◆ system_time_

ros::Time realtime_tools::RealtimeClock::system_time_
private

Definition at line 62 of file realtime_clock.h.

◆ thread_

std::thread realtime_tools::RealtimeClock::thread_
private

Definition at line 69 of file realtime_clock.h.


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


realtime_tools
Author(s): Stuart Glaser
autogenerated on Mon Feb 28 2022 23:22:45