$search
00001 00002 /*************************************************************************** 00003 * main.cpp - Node monitoring text-based user interface: main app 00004 * 00005 * Created: Sat Apr 09 11:03:57 2011 00006 * Copyright 2011 Tim Niemueller [www.niemueller.de] 00007 * 2011 SRI International 00008 * 2011 Carnegie Mellon University 00009 * 2011 Intel Labs Pittsburgh 00010 * 2011 Columbia University in the City of New York 00011 * 00012 ****************************************************************************/ 00013 00014 /* This program is free software; you can redistribute it and/or modify 00015 * it under the terms of the 3-clase BSD License. 00016 * 00017 * This program is distributed in the hope that it will be useful, 00018 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00019 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00020 * GNU Library General Public License for more details. 00021 * 00022 * Read the full text in the LICENSE file in the root directory. 00023 */ 00024 00025 #include <ros/ros.h> 00026 00027 #include "nodemon_tui.h" 00028 00029 int 00030 main(int argc, char **argv) 00031 { 00032 ros::init(argc, argv, "nodemon_tui"); 00033 ros::NodeHandle n; 00034 00035 if (!setlocale(LC_CTYPE, "")) { 00036 fprintf(stderr, "Can't set the specified locale! " 00037 "Check LANG, LC_CTYPE, LC_ALL.\n"); 00038 return 1; 00039 } 00040 00041 NodeMonTUI tui(n); 00042 //printf("Test: %lc\n", L'\u2661'); 00043 00044 ros::spin(); // run ROS node main loop 00045 return 0; 00046 }