Go to the documentation of this file.
32 #include <VisionX/interface/components/PointCloudAndImageAndCalibrationProviderInterface.h>
35 #include <pcl/point_types.h>
43 class CStereoCalibration;
60 defineOptionalProperty<std::string>(
"ImageProviderAdapterName",
"Armar3ImageProvider",
"Name of the stereo image provider for the camera images and the calibration");
61 defineOptionalProperty<int>(
"DownsamplingRate", 1,
"Create a point only at every n-th pixel");
62 defineOptionalProperty<bool>(
"SmoothDisparity",
true,
"Smooth the disparity image to filter out noise, but loose sharp edges");
74 virtual public StereoImagePointCloudProviderInterface,
85 return "StereoImagePointCloudProvider";
146 return imagesAreUndistorted;
158 ImageProviderInterfacePrx imageProviderPrx;
159 std::string providerName;
160 CStereoCalibration* stereoCalibration;
161 CByteImage** cameraImages;
162 CByteImage** cameraImagesGrey;
163 CByteImage** resultImages;
164 CByteImage* disparityImage, *disparityImageRGB;
167 bool imagesAreUndistorted;
168 int downsamplingRate;
169 bool smoothDisparity;
171 std::mutex captureLock;
void process() override
Process the vision component.
The ImageProcessor class provides an interface for access to ImageProviders via Ice and shared memory...
bool doCapture() override
void onExitImageProvider() override
void onInitComponent() override
armarx::PropertyDefinitionsPtr createPropertyDefinitions() override
std::string prefix
Prefix of the properties such as namespace, domain, component name, etc.
void onExitComponent() override
std::string getDefaultName() const override
bool getImagesAreUndistorted(const ::Ice::Current &c=Ice::emptyCurrent) override
void onConnectImageProcessor() override
Implement this method in the ImageProcessor in order execute parts when the component is fully initia...
void onConnectComponent() override
void onExitCapturingPointCloudProvider() override
MetaPointCloudFormatPtr getDefaultPointCloudFormat() override
default point cloud format used to initialize shared memory
The CapturingPointCloudProvider provides a callback function to trigger the capturing of point clouds...
visionx::MonocularCalibration getMonocularCalibration(const ::Ice::Current &c=Ice::emptyCurrent) override
ImageProvider abstract class defines a component which provide images via ice or shared memory.
void onStartCapture(float frameRate) override
void onExitImageProcessor() override
Exit the ImapeProcessor component.
void onInitImageProcessor() override
Setup the vision component.
void onStopCapture() override
void onInitCapturingPointCloudProvider() override
StereoImagePointCloudProviderPropertyDefinitions(std::string prefix)
bool hasSharedMemorySupport(const Ice::Current &c=Ice::emptyCurrent) override
void onDisconnectComponent() override
Hook for subclass.
void onInitImageProvider() override