00001 #include <stdexcept>
00002 #include <ros/ros.h>
00003 #include "tracker.hh"
00004
00005 int main(int argc, char **argv)
00006 {
00007 ros::init(argc, argv, "tracker_mbt");
00008 try
00009 {
00010 visp_tracker::Tracker tracker(100);
00011 if (ros::ok())
00012 tracker.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 }