00001 /* \file Main.java 00002 * \brief Main class for the re_comm package 00003 * 00004 * The main class for the re_comm package. 00005 * 00006 * This file is part of the RoboEarth ROS re_comm package. 00007 * 00008 * It was originally created for <a href="http://www.roboearth.org/">RoboEarth</a>. 00009 * The research leading to these results has received funding from the 00010 * European Union Seventh Framework Programme FP7/2007-2013 00011 * under grant agreement no248942 RoboEarth. 00012 * 00013 * Copyright (C) 2010 by 00014 * <a href=" mailto:perzylo@cs.tum.edu">Alexander Perzylo</a> 00015 * Technische Universitaet Muenchen 00016 * 00017 * Redistribution and use in source and binary forms, with or without 00018 * modification, are permitted provided that the following conditions are met: 00019 * 00020 * <UL> 00021 * <LI> Redistributions of source code must retain the above copyright 00022 * notice, this list of conditions and the following disclaimer. 00023 * <LI> Redistributions in binary form must reproduce the above copyright 00024 * notice, this list of conditions and the following disclaimer in the 00025 * documentation and/or other materials provided with the distribution. 00026 * <LI> Neither the name of Willow Garage, Inc. nor the names of its 00027 * contributors may be used to endorse or promote products derived from 00028 * this software without specific prior written permission. 00029 * </UL> 00030 * 00031 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 00032 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 00033 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 00034 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 00035 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 00036 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 00037 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 00038 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 00039 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 00040 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 00041 * POSSIBILITY OF SUCH DAMAGE. 00042 * 00043 * \author Alexander Perzylo 00044 * \version 1.0 00045 * \date 2010 00046 * \image html http://www.roboearth.org/sites/default/files/RoboEarth.org_logo.gif 00047 * \image latex http://www.roboearth.org/sites/default/files/RoboEarth.org_logo.gif 00048 */ 00049 package roboearth.wp5; 00050 00051 import ros.Ros; 00052 00060 public class Main { 00061 00066 public static void main(String[] args) { 00067 00068 if (!ReCommCore.checkArguments(args)) { 00069 return; 00070 } 00071 00072 Ros ros = ReCommCore.init(); 00073 if (ros != null) { 00074 ros.spin(); 00075 } 00076 00077 } 00078 00079 }