30#include <opencv2/opencv.hpp>
34#include <VisionX/interface/components/KinectAndCameraCalibration.h>
39#include <Math/Math2d.h>
40#include <Math/Math3d.h>
57 "Armar3ImageProvider",
58 "Ice Adapter name of the camera image provider");
60 "OpenNIPointCloudProvider",
61 "Ice Adapter name of the Kinect image provider");
63 "NumberOfImages", 20,
"Number of images used for the calibration");
65 "WaitingIntervalBetweenImages", 500,
"Waiting time between captured images, in ms");
67 "NumberOfRows", 5,
"Number of rows on the calibration pattern");
69 "NumberOfColumns", 5,
"Number of columns on the calibration pattern");
71 "PatternSquareSize", 30.0,
"Size of the squares on the calibration pattern");
73 "OutputFileName",
"cameras.txt",
"Path to the file for saving the calibration");
94 virtual public visionx::KinectAndCameraCalibrationInterface
103 return "KinectAndCameraCalibration";
111 visionx::KinectPoseCalibration
134 std::string cameraImageProviderName, kinectImageProviderName;
135 ImageProviderInterfacePrx cameraImageProviderPrx, kinectImageProviderPrx;
138 CByteImage **cameraImages, **kinectImages;
139 int waitingIntervalBetweenImages, desiredNumberOfImages, numberOfCapturedImages;
140 double etalonParams[3];
142 std::string m_sCameraParameterFileName;
144 IceUtil::Time startingTime, timeOfLastCapture;
148 KinectPoseCalibration result;
149 KinectAndCameraCalibrationListenerPrx listenerPrx;
std::string getConfigIdentifier()
Retrieve config identifier for this component as set in constructor.
std::string prefix
Prefix of the properties such as namespace, domain, component name, etc.
PropertyDefinition< PropertyType > & defineOptionalProperty(const std::string &name, PropertyType defaultValue, const std::string &description="", PropertyDefinitionBase::PropertyConstness constness=PropertyDefinitionBase::eConstant)
ImageProcessorPropertyDefinitions(std::string prefix)
The ImageProcessor class provides an interface for access to ImageProviders via Ice and shared memory...
KinectAndCameraCalibrationPropertyDefinitions(std::string prefix)
KinectAndCameraCalibration executes the calibration for the left camera of the stereo and kinect rgb ...
void onConnectImageProcessor() override
Implement this method in the ImageProcessor in order execute parts when the component is fully initia...
void onExitImageProcessor() override
Exit the ImapeProcessor component.
armarx::PropertyDefinitionsPtr createPropertyDefinitions() override
void process() override
Process the vision component.
void startCalibration(const ::Ice::Current &c=Ice::emptyCurrent) override
ice related functions (todo: put comments)
void stopCalibration(const ::Ice::Current &c=Ice::emptyCurrent) override
void onInitImageProcessor() override
Setup the vision component.
visionx::KinectPoseCalibration getCalibrationParameters(const ::Ice::Current &c=Ice::emptyCurrent) override
std::string getDefaultName() const override
IceUtil::Handle< class PropertyDefinitionContainer > PropertyDefinitionsPtr
PropertyDefinitions smart pointer type.