00001 /* 00002 * ClientTracker.cpp 00003 * 00004 * Created on: Nov 30, 2012 00005 * Author: vgrabe 00006 */ 00007 00008 00009 #include <vrpn_tracker/VRPNTrackerClient.hpp> 00010 #include <vrpn_tracker/VRPNTrackerClientOptions.hpp> 00011 00012 int main(int argc, char **argv) { 00013 ros::init(argc,argv,"VRPNClientTracker"); 00014 00015 VRPNTrackerClientOptions* options = new VRPNTrackerClientOptions(); 00016 00017 VRPNTrackerClient* client; 00018 00019 client = new VRPNTrackerClient(options->tVRPNClientObject); 00020 00021 00022 while(ros::ok()) { 00023 client->spin(); 00024 usleep(10); 00025 } 00026 00027 delete client; 00028 delete options; 00029 00030 return EXIT_SUCCESS; 00031 } 00032 00033 00034 00035