test-RT100Qt.cpp

Go to the documentation of this file.
00001 /*! @file Qt/test-RT100Qt.cpp rt100 QT arm control : */
00002 
00003 // $HeadURL: svn://isvn.usc.edu/software/invt/trunk/saliency/src/Qt/test-RT100Qt.cpp $
00004 // $Id: test-RT100Qt.cpp 8267 2007-04-18 18:24:24Z rjpeters $
00005 
00006 #include "Qt/ui/rt100controlForm.h"
00007 #include "Component/ModelManager.H"
00008 #include "Devices/rt100.H"
00009 #include <qapplication.h>
00010 
00011 int main( int argc, char ** argv )
00012 {
00013   ModelManager manager("RT100 robot control");
00014 
00015   nub::soft_ref<RT100> rt100(new RT100(manager));
00016   manager.addSubComponent(rt100);
00017 
00018   // Parse command-line:
00019   if (manager.parseCommandLine(argc, argv, "", 0, 0) == false) return(1);
00020 
00021   manager.start();
00022 
00023   QApplication a( argc, argv );
00024   RT100ControlForm rt100Form;
00025   rt100Form.init(&manager, rt100);
00026   rt100Form.show();
00027   a.connect( &a, SIGNAL( lastWindowClosed() ), &a, SLOT( quit() ) );
00028 
00029   int retval = a.exec();
00030 
00031   manager.stop();
00032 
00033   return retval;
00034 
00035 }
Generated on Sun May 8 08:05:33 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3