iCub-main
Loading...
Searching...
No Matches
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/*
4 * Copyright (C) 2007 Jonas Ruesch
5 * CopyPolicy: Released under the terms of the GNU GPL v2.0.
6 *
7 */
8
126// yarp
127#include <yarp/os/Network.h>
128
129// iCub
130#include <iCub/CalibToolFactory.h>
131#include <iCub/PinholeCalibTool.h>
132#include <iCub/SphericalCalibTool.h>
133#include <iCub/CamCalibModule.h>
134
135// OpenCV
136#include <opencv2/core/core_c.h>
137
138using namespace std;
139using namespace yarp::os;
140using namespace yarp::sig;
141
142
143int main(int argc, char *argv[]) {
144
146 pool.add(new CalibToolFactoryOf<PinholeCalibTool>("pinhole"));
147 pool.add(new CalibToolFactoryOf<SphericalCalibTool>("spherical"));
148
149 Network yarp;
150 ResourceFinder rf;
151 rf.setDefaultConfigFile("camCalib.ini"); //overridden by --from parameter
152 rf.setDefaultContext("cameraCalibration"); //overridden by --context parameter
153 rf.configure(argc, argv);
154 CamCalibModule module;
155 return module.runModule(rf);
156}
static CalibToolFactories & getPool()
void add(CalibToolFactory *factory)
Camera Calibration Module class.
int main()
Definition main.cpp:67
Copyright (C) 2008 RobotCub Consortium.