PTU_GUI_Node.cpp
Go to the documentation of this file.
1 
8 #include "gui/PTU_GUI_Node.h"
9 
10 IMPLEMENT_APP(GUI_PTU::PTU_GUI_Node)
11 
12 namespace GUI_PTU {
13 
14 
15 PTU_GUI_Node::PTU_GUI_Node()
16 {
17 }
18 
19 PTU_GUI_Node::~PTU_GUI_Node()
20 {
21 }
22 
23 bool PTU_GUI_Node::OnInit()
24 {
25  local_argv = new char*[ argc ];
26  for ( int i = 0; i < argc; ++i ) {
27  local_argv[ i ] = strdup( wxString( argv[ i ] ).char_str() );
28  }
29 
30  ros::init(argc, local_argv, "PTU_GUI");
31  nh.reset(new ros::NodeHandle);
32  PTU_GUI* dialog = new PTU_GUI( (wxWindow*)NULL);
33  dialog ->Show();
34  SetTopWindow( dialog );
35  return true;
36 }
37 
38 int PTU_GUI_Node::OnExit() {
39  for ( int i = 0; i < argc; ++i ) {
40  free( local_argv[ i ] );
41  }
42  delete [] local_argv;
43  return 0;
44 }
45 
46 }
47 
48 
49 
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
Definition: GUI.h:41


asr_flir_ptu_driver
Author(s): Valerij Wittenbeck, Joachim Gehrung, Pascal Mei├čner, Patrick Schlosser
autogenerated on Mon Dec 2 2019 03:15:17