Go to the documentation of this file.00001
00002
00003 #include <stdlib.h>
00004 #include <iostream>
00005 #include <gvars3/instances.h>
00006 #include "ptam/System.h"
00007 #include <ptam/Params.h>
00008
00009 #include "ros/ros.h"
00010
00011 using namespace std;
00012 using namespace GVars3;
00013
00014 int main(int argc, char** argv)
00015 {
00016 ros::init(argc, argv, "ptam");
00017 ROS_INFO("starting ptam with node name %s", ros::this_node::getName().c_str());
00018
00019 cout << " Welcome to PTAM " << endl;
00020 cout << " --------------- " << endl;
00021 cout << " Parallel tracking and mapping for Small AR workspaces" << endl;
00022 cout << " Copyright (C) Isis Innovation Limited 2008 " << endl;
00023 cout << endl;
00024
00025 GUI.StartParserThread();
00026 atexit(GUI.StopParserThread);
00027
00028 try
00029 {
00030 std::cout<<"Gui is "<<(PtamParameters::fixparams().gui ? "on" : "off")<<std::endl;
00031 System s;
00032 s.Run();
00033 }
00034 catch(CVD::Exceptions::All& e)
00035 {
00036 cout << endl;
00037 cout << "!! Failed to run system; got exception. " << endl;
00038 cout << " Exception was: " << endl;
00039 cout << e.what << endl;
00040 }
00041 }
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051