PTU_GUI_Node.cpp
Go to the documentation of this file.
00001 
00008 #include "gui/PTU_GUI_Node.h"
00009 
00010 IMPLEMENT_APP(GUI_PTU::PTU_GUI_Node)
00011 
00012 namespace GUI_PTU {
00013 
00014 
00015 PTU_GUI_Node::PTU_GUI_Node()
00016 {
00017 }
00018 
00019 PTU_GUI_Node::~PTU_GUI_Node()
00020 {
00021 }
00022 
00023 bool PTU_GUI_Node::OnInit()
00024 {
00025         local_argv =  new char*[ argc ];
00026         for ( int i = 0; i < argc; ++i ) {
00027                 local_argv[ i ] = strdup( wxString( argv[ i ] ).char_str() );
00028         }
00029 
00030         ros::init(argc, local_argv, "PTU_GUI");
00031         nh.reset(new ros::NodeHandle);
00032         PTU_GUI* dialog = new PTU_GUI( (wxWindow*)NULL);
00033     dialog ->Show();
00034     SetTopWindow( dialog );
00035     return true;
00036 }
00037 
00038 int PTU_GUI_Node::OnExit() {
00039     for ( int i = 0; i < argc; ++i ) {
00040         free( local_argv[ i ] );
00041     }
00042     delete [] local_argv;
00043     return 0;
00044 }
00045 
00046 }
00047 
00048 
00049 


asr_flir_ptu_driver
Author(s): Valerij Wittenbeck, Joachim Gehrung, Pascal Meißner, Patrick Schlosser
autogenerated on Thu Jun 6 2019 21:16:44