grasp
All Data Structures Namespaces Functions Modules
main.cpp
1 /* Copyright: (C) 2014 iCub Facility - Istituto Italiano di Tecnologia
2  * Authors: Ilaria Gori
3  * email: ilaria.gori@iit.it
4  * Permission is granted to copy, distribute, and/or modify this program
5  * under the terms of the GNU General Public License, version 2 or any
6  * later version published by the Free Software Foundation.
7  *
8  * A copy of the license can be found in the file LICENSE located in the
9  * root directory.
10  *
11  * This program is distributed in the hope that it will be useful, but
12  * WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
14  * Public License for more details
15 */
16 
105 #include <yarp/os/Network.h>
106 #include <yarp/os/ResourceFinder.h>
107 #include <objectReconstr.h>
108 
109 int main(int argc, char *argv[])
110 {
111  Network yarp;
112 
113  if (!yarp.checkNetwork())
114  {
115  printf("No yarp network\n");
116  return 1;
117  }
118 
119  ResourceFinder rf;
120  rf.setVerbose(true);
121  rf.setDefaultContext("object-reconstruction");
122  rf.setDefaultConfigFile("config.ini");
123  rf.configure(argc,argv);
124 
125  ObjectReconstr mod;
126 
127  return mod.runModule(rf);
128 }
129