Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007 #ifndef TIME_SERVER_H_
00008 #define TIME_SERVER_H_
00009
00010 #include "ros/ros.h"
00011 #include "time_server/time_srv.h"
00012
00021 class TimeServer
00022 {
00023 public:
00024 TimeServer() { init(); }
00025
00026 private:
00027 void init();
00028 bool service(time_server::time_srv::Request& req,
00029 time_server::time_srv::Response& res);
00030
00031 ros::NodeHandle n_;
00032 ros::ServiceServer service_;
00033 ros::Duration offset_;
00034 };
00035
00036 #endif