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 
225 #include <yarp/os/Network.h>
226 #include <yarp/os/ResourceFinder.h>
227 
228 #include "powerGrasp.h"
229 
230 int main(int argc, char *argv[])
231 {
232  yarp::os::Network yarp;
233 
234  if (!yarp.checkNetwork())
235  return 1;
236 
237  yarp::os::ResourceFinder rf;
238  rf.setVerbose(true);
239  rf.setDefaultContext("power-grasp");
240  rf.setDefaultConfigFile("config.ini");
241  rf.configure(argc,argv);
242 
243  PowerGrasp mod;
244 
245  return mod.runModule(rf);
246 }
247