clock_relay.h
Go to the documentation of this file.
1 
25 #ifndef CLOCK_RELAY_CLOCK_RELAY_H
26 #define CLOCK_RELAY_CLOCK_RELAY_H
27 
29 #include "multimaster_msgs/GetClockOffset.h"
30 #include "multimaster_msgs/ClockOffset.h"
31 
32 #include "ros/ros.h"
33 
34 #include <string>
35 
36 namespace clock_relay
37 {
38 
40 {
41 enum Type
42 {
44 };
45 
46 public:
47  ClockRelay(std::string from, std::string to, std::string clock_relay_type_string, double frequency);
48 
49 private:
50  bool getClockOffsetCb(multimaster_msgs::GetClockOffset::Request &req,
51  multimaster_msgs::GetClockOffset::Response &res);
52 
53  multimaster_msgs::ClockOffset offset_;
55 
58 
59  static const boost::unordered_map<std::string, Type> type_name_map_;
60 };
61 
62 } // namespace clock_relay
63 
64 #endif // CLOCK_RELAY_CLOCK_RELAY_H
ClockRelay(std::string from, std::string to, std::string clock_relay_type_string, double frequency)
Definition: clock_relay.cpp:37
static const boost::unordered_map< std::string, Type > type_name_map_
Definition: clock_relay.h:59
message_relay::TopicRelay::Ptr clock_relay_
Definition: clock_relay.h:56
bool getClockOffsetCb(multimaster_msgs::GetClockOffset::Request &req, multimaster_msgs::GetClockOffset::Response &res)
Definition: clock_relay.cpp:92
ros::ServiceServer offset_server_
Definition: clock_relay.h:54
multimaster_msgs::ClockOffset offset_
Definition: clock_relay.h:53
ros::Publisher offset_publisher_
Definition: clock_relay.h:57


clock_relay
Author(s):
autogenerated on Wed Jul 17 2019 03:27:57