00001 #include <stdexcept>
00002 #include <ros/ros.h>
00003 #include "tracker-client.hh"
00004
00005 int main(int argc, char **argv)
00006 {
00007 try
00008 {
00009 ros::init(argc, argv, "tracker_mbt_client");
00010 visp_tracker::TrackerClient client(100);
00011 if (ros::ok())
00012 client.spin();
00013 }
00014 catch (std::exception& e)
00015 {
00016 std::cerr << "fatal error: " << e.what() << std::endl;
00017 ROS_ERROR_STREAM("fatal error: " << e.what());
00018 return 1;
00019 }
00020 catch (...)
00021 {
00022 ROS_ERROR_STREAM("unexpected error");
00023 return 2;
00024 }
00025 return 0;
00026 }