$search
00001 00002 /*************************************************************************** 00003 * main.cpp - Plugin Tool Gui 00004 * 00005 * Created: Thu Nov 09 20:13:45 2007 00006 * Copyright 2007 Daniel Beck 00007 * 2010 Tim Niemueller 00008 * 00009 ****************************************************************************/ 00010 00011 /* This program is free software; you can redistribute it and/or modify 00012 * it under the terms of the GNU General Public License as published by 00013 * the Free Software Foundation; either version 2 of the License, or 00014 * (at your option) any later version. 00015 * 00016 * This program is distributed in the hope that it will be useful, 00017 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00018 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00019 * GNU Library General Public License for more details. 00020 * 00021 * Read the full text in the LICENSE.GPL file in the doc directory. 00022 */ 00023 00024 #include "rosspawn_gui.h" 00025 #include <iostream> 00026 00027 #include <ros/ros.h> 00028 #include <ros/console.h> 00029 00030 using namespace std; 00031 00032 int main(int argc, char** argv) 00033 { 00034 ros::init(argc, argv, "rosspawn_gui", ros::init_options::NoSigintHandler); 00035 Gtk::Main kit(argc, argv); 00036 00037 Glib::RefPtr<Gtk::Builder> builder = 00038 Gtk::Builder::create_from_file(RESDIR"/rosspawn_gui.ui"); 00039 00040 RosSpawnGuiWindow *window = NULL; 00041 builder->get_widget_derived("wnd_main", window); 00042 00043 ros::NodeHandle n; 00044 window->set_ros_node(n); 00045 ros::AsyncSpinner spinner(1); 00046 spinner.start(); 00047 00048 kit.run( *window ); 00049 00050 spinner.stop(); 00051 00052 delete window; 00053 return 0; 00054 }