9#ifndef __CAMCALIBMODULE__
10#define __CAMCALIBMODULE__
16#include <opencv2/core/core_c.h>
19#include <yarp/os/all.h>
20#include <yarp/sig/all.h>
23#include <iCub/PinholeCalibTool.h>
24#include <iCub/SphericalCalibTool.h>
25#include <iCub/CalibToolFactory.h>
26#include <iCub/ICalibTool.h>
33class CamCalibPort :
public yarp::os::BufferedPort<yarp::sig::ImageOf<yarp::sig::PixelRgb> >
36 yarp::os::BufferedPort<yarp::sig::ImageOf<yarp::sig::PixelRgb> > *portImgOut;
43 virtual void onRead(yarp::sig::ImageOf<yarp::sig::PixelRgb> &yrpImgIn);
49 void setPointers(yarp::os::BufferedPort<yarp::sig::ImageOf<yarp::sig::PixelRgb> > *_portImgOut,
ICalibTool *_calibTool);
66 yarp::os::BufferedPort<yarp::sig::ImageOf<yarp::sig::PixelRgb> > _prtImgOut;
67 yarp::os::Port _configPort;
77 virtual bool configure(yarp::os::ResourceFinder &rf);
81 virtual bool respond(
const yarp::os::Bottle& command, yarp::os::Bottle& reply);
Camera Calibration Module class.
virtual bool interruptModule()
virtual bool respond(const yarp::os::Bottle &command, yarp::os::Bottle &reply)
virtual bool configure(yarp::os::ResourceFinder &rf)
Passes config on to CalibTool.
virtual bool updateModule()
virtual double getPeriod()
Camera Calibration Port class.
void setSaturation(double satVal)
void setVerbose(const bool sw)
void setPointers(yarp::os::BufferedPort< yarp::sig::ImageOf< yarp::sig::PixelRgb > > *_portImgOut, ICalibTool *_calibTool)