28#include <pcl/point_types.h>
31#include <ArmarXCore/interface/observers/ObserverInterface.h>
33#include <RobotAPI/interface/visualization/DebugDrawerInterface.h>
37#include <VisionX/interface/components/ImageToPointCloud.h>
47 typedef pcl::PointXYZRGBL
PointL;
61 "Name of the topic the DebugObserver listens on");
65 "Must match the image width (cannot be read automaically "
66 "from imageprovider as early as needed)");
69 "Must match the image height (cannot be read automaically "
70 "from imageprovider as early as needed)");
74 "The vertical viewing angle of the camera. Only used "
75 "when no calibration can be retrieved.");
78 "The horizontal viewing angle of the camera. Only used "
79 "when no calibration can be retrieved.");
81 "ComputeViewAngleFromCalibration",
83 "Use the field of view provided by the calibration provider");
87 "NaNValue", -1.0,
"NaN value to use if reported disparity is not available.");
91 "The maximum distance for measurements. Ignored if smaller than zero");
93 "MinDist", 0.0,
"The minimum distance for measurements. ");
97 "Rotation around Z of the provided pointcloud",
102 "ImageProvider name. image[0]: rgb image, image[1]: depth image, "
103 "image[2](optional): label integer");
106 "CalibrationProvider name. Optional. Useful if the "
107 "images are processed and forwarded.");
125 virtual public armarx::ImageToPointCloudInterface
134 return "ImageToPointCloud";
147 visionx::StereoCalibration
150 return calibrationPrx->getStereoCalibration();
156 return calibrationPrx->getImagesAreUndistorted();
162 return calibrationPrx->getReferenceFrame();
205 visionx::StereoCalibrationInterfacePrx calibrationPrx;
207 armarx::MetaInfoSizeBasePtr imageMetaInfo;
216 int processCounter = 0;
218 std::string providerName;
223 pcl::PointCloud<PointL>::Ptr cloud, transformedCloud;
ImageToPointCloudPropertyDefinitions(std::string prefix)
Brief description of class ImageToPointCloud.
std::string getReferenceFrame(const Ice::Current &c=Ice::emptyCurrent) override
virtual armarx::PropertyDefinitionsPtr createPropertyDefinitions()
void onInitComponent() override
Pure virtual hook for the subclass.
virtual visionx::MetaPointCloudFormatPtr getDefaultPointCloudFormat()
default point cloud format used to initialize shared memory
void onConnectImageProcessor() override
Implement this method in the ImageProcessor in order execute parts when the component is fully initia...
void onDisconnectComponent() override
Hook for subclass.
void onExitImageProcessor() override
Exit the ImapeProcessor component.
visionx::StereoCalibration getStereoCalibration(const Ice::Current &c=Ice::emptyCurrent) override
void process() override
Process the vision component.
void onInitImageProcessor() override
Setup the vision component.
bool getImagesAreUndistorted(const Ice::Current &c=Ice::emptyCurrent) override
void onConnectComponent() override
Pure virtual hook for the subclass.
void onInitPointCloudProvider()
This is called when the Component::onInitComponent() is called.
void onExitComponent() override
Hook for subclass.
void onExitPointCloudProvider()
This is called when the Component::onExitComponent() setup is called.
std::string getDefaultName() const override
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)
PropertyDefinition< PropertyType > & defineRequiredProperty(const std::string &name, 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...
void onInitComponent() override
void onConnectComponent() override
void onExitComponent() override
PointCloudProvider abstract class defines a component which provide point clouds via ice or shared me...
void onInitComponent() override
void onConnectComponent() override
void onExitComponent() override
This file offers overloads of toIce() and fromIce() functions for STL container types.
::IceInternal::ProxyHandle<::IceProxy::armarx::DebugObserverInterface > DebugObserverInterfacePrx
IceUtil::Handle< class PropertyDefinitionContainer > PropertyDefinitionsPtr
PropertyDefinitions smart pointer type.