00001
00028 #include <ros/ros.h>
00029 #include <time.h>
00030 #include "cyberglove/cyberglove_publisher.h"
00031 #include "cyberglove/cyberglove_service.h"
00032 #include "cyberglove/Start.h"
00033 #include <boost/smart_ptr.hpp>
00034 using namespace cyberglove_publisher;
00035 using namespace cyberglove_service;
00036
00037
00038
00040
00042
00043
00052 int main(int argc, char** argv)
00053 {
00054 ros::init(argc, argv, "cyberglove_publisher");
00055
00056 boost::shared_ptr<CyberglovePublisher> cyberglove_pub(new CyberglovePublisher());
00057
00058 CybergloveService service(cyberglove_pub);
00059
00060 while( ros::ok() )
00061 {
00062 if(cyberglove_pub->isPublishing()){
00063 cyberglove_pub->publish();
00064 }
00065
00066 }
00067
00068 return 0;
00069 }