icub-basic-demos
main.cpp
1 
22 // yarp
23 #include <yarp/os/Network.h>
24 
25 // iCub
26 #include <iCub/pf3dBottomup.hpp>
27 
28 using namespace std;
29 using namespace yarp::os;
30 
31 int main(int argc, char *argv[])
32 {
33  Network yarp;
34  if (!yarp::os::Network::checkNetwork())
35  {
36  yError("YARP server not available!");
37  return 1;
38  }
39 
40  ResourceFinder rf;
41  rf.setDefaultContext("pf3dBottomup");
42  rf.setDefaultConfigFile("pf3dBottomup.ini");
43  rf.configure(argc, argv);
44 
45  pf3dBottomup bottomup;
46  bottomup.setName("/pf3dBottomup");
47  return bottomup.runModule(rf);
48 }
49