speech
Loading...
Searching...
No Matches
main.cpp
1/*
2 * Copyright (C) 2017 iCub Facility - Istituto Italiano di Tecnologia
3 * Author: Vadim Tikhanoff
4 * email: vadim.tikhanoff@iit.it
5 * Permission is granted to copy, distribute, and/or modify this program
6 * under the terms of the GNU General Public License, version 2 or any
7 * later version published by the Free Software Foundation.
8 *
9 * A copy of the license can be found at
10 * http://www.robotcub.org/icub/license/gpl.txt
11 *
12 * This program is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
15 * Public License for more details
16 */
17
18
19#include "start-ask.h"
20
21using namespace yarp::os;
22
23int main(int argc, char * argv[])
24{
25 /* initialize yarp network */
26 Network::init();
27
28 /* create the module */
29 STARTModule module;
30
31 /* prepare and configure the resource finder */
32 ResourceFinder rf;
33 rf.setDefaultContext( "start-ask" );
34 rf.setDefaultConfigFile( "start-ask" );
35 rf.setDefault("name","start-ask");
36 rf.configure( argc, argv );
37
38 /* run the module: runModule() calls configure first and, if successful, it then runs */
39 module.runModule(rf);
40 Network::fini();
41
42 return 0;
43}
44//empty line to make gcc happy