30#include <opencv2/opencv.hpp>
37#include <Math/Math2d.h>
38#include <Math/Math3d.h>
55 "Ice Adapter name of the image provider");
57 "NumberOfImages", 20,
"Number of images used for the calibration");
59 "WaitingIntervalBetweenImages", 500,
"Waiting time between captured images, in ms");
61 "NumberOfRows", 5,
"Number of rows on the calibration pattern");
63 "NumberOfColumns", 5,
"Number of columns on the calibration pattern");
65 "PatternSquareSize", 30.0,
"Size of the squares on the calibration pattern");
67 "OutputFileName",
"cameras.txt",
"Path to the file for saving the calibration");
94 return "CalibrationCreator";
117 std::string providerName;
118 ImageProviderInterfacePrx imageProviderPrx;
120 CvPoint2D32f* m_pCorners2DFloat;
121 CvPoint2D64f* m_pCorners2D;
122 CvPoint3D64f* m_pCorners3D;
124 CByteImage** cameraImages;
125 int waitingIntervalBetweenImages, desiredNumberOfImages, numberOfCapturedImages;
126 std::string m_sCameraParameterFileName;
128 IceUtil::Time startingTime, timeOfLastCapture;
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)
CalibrationCreatorPropertyDefinitions(std::string prefix)
CalibrationCreator determines if the robot hand is colliding with another object, causing it to move.
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 onInitImageProcessor() override
Setup the vision component.
std::string getDefaultName() const override
ImageProcessorPropertyDefinitions(std::string prefix)
The ImageProcessor class provides an interface for access to ImageProviders via Ice and shared memory...
IceUtil::Handle< class PropertyDefinitionContainer > PropertyDefinitionsPtr
PropertyDefinitions smart pointer type.