time_server.h
Go to the documentation of this file.
00001 /*
00002  * time_server.h
00003  * Copyright 2013 University of Massachusetts Lowell
00004  * Author: Jonathan Hasenzahl
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


time_server
Author(s): Jonathan Hasenzahl
autogenerated on Sun Jan 5 2014 11:12:28