REDummyUploader.java
Go to the documentation of this file.
00001 /* \file REClients.java
00002  * \brief RoboEarth Client code for being called from Prolog
00003  * 
00004  * This file is part of the RoboEarth ROS re_comm package.
00005  * 
00006  * It was originally created for <a href="http://www.roboearth.org/">RoboEarth</a>.
00007  * The research leading to these results has received funding from the 
00008  * European Union Seventh Framework Programme FP7/2007-2013 
00009  * under grant agreement no248942 RoboEarth.
00010  *
00011  * Copyright (C) 2010 by 
00012  * <a href=" mailto:tenorth@cs.tum.edu">Moritz Tenorth</a>
00013  * Technische Universitaet Muenchen
00014  * 
00015  * Redistribution and use in source and binary forms, with or without
00016  * modification, are permitted provided that the following conditions are met:
00017  * 
00018  *    <UL>
00019  *     <LI> Redistributions of source code must retain the above copyright
00020  *       notice, this list of conditions and the following disclaimer.
00021  *     <LI> Redistributions in binary form must reproduce the above copyright
00022  *       notice, this list of conditions and the following disclaimer in the
00023  *       documentation and/or other materials provided with the distribution.
00024  *     <LI> Neither the name of Willow Garage, Inc. nor the names of its
00025  *       contributors may be used to endorse or promote products derived from
00026  *       this software without specific prior written permission.
00027  *    </UL>
00028  * 
00029  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
00030  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
00031  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
00032  * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
00033  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
00034  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
00035  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
00036  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
00037  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
00038  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
00039  * POSSIBILITY OF SUCH DAMAGE.
00040  *
00041  * \author Moritz Tenorth
00042  * \version 1.0
00043  * \date 2010
00044  * \image html http://www.roboearth.org/sites/default/files/RoboEarth.org_logo.gif
00045  * \image latex http://www.roboearth.org/sites/default/files/RoboEarth.org_logo.gif
00046  */
00047 package roboearth.wp5;
00048 
00049 
00050 import edu.tum.cs.ias.knowrob.utils.ros.*;
00051 
00052 
00053 public class REDummyUploader {
00054 
00055 
00056         //
00057         // ugly method for conveniently resetting the database content to the state
00058         // before the update
00059         //
00060         public static void resetDBcontent() {
00061                 
00062                 System.out.println("Updating expedit: " + RosUtilities.rospackFind("re_ontology"));
00063                 
00064                 
00065                 //REClients.updateObjectOWL(RosUtilities.rospackFind("re_ontology") + "/owl/cabinet_model.owl", "cabinet.ikeaexpedit2x4", "");
00066                 System.out.println("Updating bedrecmodel");
00067                 REClients.updateObjectOWL("/home/tenorth/re-obj-models/bed/bed.owl", "bedrecmodel.bedrecmodel", "");
00068                 
00069                 System.out.println("Updating bottlerecmodel");
00070                 REClients.updateObjectOWL("/home/tenorth/re-obj-models/bottle/bottle.owl", "bottlerecmodel.bottlerecmodel", "");
00071                 
00072                 System.out.println("Updating expedit");
00073                 REClients.updateObjectOWL("/home/tenorth/re-obj-models/expedit/expedit.owl", "cabinet.ikeaexpedit2x4", "");
00074 
00075                  
00076                 
00077                 //System.out.println("Updating ks map");
00078                 //updateMap("/home/tenorth/re-obj-models/semantic-map-ks.owl", "semanticenvironmentmap.semanticenvironmentmap7635", "");
00079                 
00080                 //System.out.println("Updating fmi map");
00081                 //updateMap("/home/tenorth/re-obj-models/semantic-map-fmi.owl", "semanticenvironmentmap.semanticenvironmentmap7398", "");
00082         }
00083 
00084         
00085         public static void main(String[] args) {
00086                 
00087                 if(args.length==0) {
00088                         System.err.println("USAGE: reset_models [reset | update]");
00089                 }
00090                 
00091                 if(args[0].equals("reset"))
00092                 REDummyUploader.resetDBcontent();
00093         }
00094 }


re_comm
Author(s): Alexander Perzylo
autogenerated on Sun Jan 5 2014 11:29:48