iCub-main
main.cpp
Go to the documentation of this file.
1 // -*- mode:C++; tab-width:4; c-basic-offset:4; indent-tabs-mode:nil -*-
2 
3 // Copyright (C) 2015 Istituto Italiano di Tecnologia - iCub Facility
4 // Author: Marco Randazzo <marco.randazzo@iit.it>
5 // CopyPolicy: Released under the terms of the GNU GPL v2.0.
6 
7 // ***** THIS MODULE IS EXPERIMENTAL *****
8 
9 // yarp
10 #include <yarp/os/Network.h>
11 
12 // iCub
13 #include <iCub/CalibToolFactory.h>
14 #include <iCub/PinholeCalibTool.h>
15 #include <iCub/SphericalCalibTool.h>
17 
18 // OpenCV
19 #include <opencv2/core/core_c.h>
20 
21 using namespace std;
22 using namespace yarp::os;
23 using namespace yarp::sig;
24 
25 
26 int main(int argc, char *argv[]) {
27 
29  pool.add(new CalibToolFactoryOf<PinholeCalibTool>("pinhole"));
30  pool.add(new CalibToolFactoryOf<SphericalCalibTool>("spherical"));
31 
32  Network yarp;
33  ResourceFinder rf;
34  rf.setDefaultConfigFile("camCalib.ini"); //overridden by --from parameter
35  rf.setDefaultContext("cameraCalibration"); //overridden by --context parameter
36  rf.configure(argc, argv);
37  CamCalibModule module;
38  return module.runModule(rf);
39 }
static CalibToolFactories & getPool()
void add(CalibToolFactory *factory)
Camera Calibration Module class.
int main(int argc, char *argv[])
Definition: main.cpp:31
Copyright (C) 2008 RobotCub Consortium.