23#ifndef _ARMARX_COMPONENT_VisionX_CropRobotFromImage_H
24#define _ARMARX_COMPONENT_VisionX_CropRobotFromImage_H
27#include <VirtualRobot/Robot.h>
31#include <RobotAPI/interface/core/RobotState.h>
47#include <VisionX/interface/components/Calibration.h>
48#include <VisionX/interface/components/PointCloudAndImageAndCalibrationProviderInterface.h>
63 "providerName",
"ImageProvider",
"Name of the image provider that should be used");
65 "RobotStateComponentName",
66 "RobotStateComponent",
67 "Name of the robot state component that should be used");
69 "cameraFrameName",
"DepthCameraSim",
"The source frame name");
73 "The red value of the background color that has to be "
74 "different from the robots color. Range 0.f to 255.f");
77 "The green value of the background color that has to be "
78 "different from the robots color. Range 0.f to 255.f");
81 "The blue value of the background color that has to be "
82 "different from the robots color. Range 0.f to 255.f");
86 "When the collision model is used for the offscreen "
87 "rendering, it will be inflated by this margin.");
91 "The strength of the dilation after the masking, which can "
92 "thicken the part that is cut from the image.");
97 "Boolean that indicates, if the rendered image should be flipped. This is needed "
98 "e.g. when camera nodes ending on 'Sim' are used.");
102 "Boolean that indicates, if the full model should be used during the offscreen "
103 "rendering. Otherwise the collision model will be used.");
107 "numResultImages", 1,
"The number of images processed and provided.");
124 virtual public visionx::StereoCalibrationProcessorInterface
134 return "CropRobotFromImage";
137 visionx::StereoCalibration
140 return stereoCalibration;
146 return imagesAreUndistorted;
152 return referenceFrame;
184 int dilationStrength;
190 float collisionModelInflationMargin;
195 std::string providerName;
196 std::string cameraFrameName;
198 int numImages, numResultImages;
202 visionx::MonocularCalibration depthCameraCalibration;
215 visionx::StereoCalibration stereoCalibration;
216 bool imagesAreUndistorted;
218 std::string referenceFrame;
CropRobotFromImagePropertyDefinitions(std::string prefix)
Brief description of class CropRobotFromImage.
std::string getReferenceFrame(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 onExitImageProcessor() override
Exit the ImapeProcessor component.
visionx::StereoCalibration getStereoCalibration(const Ice::Current &c=Ice::emptyCurrent) override
virtual armarx::PropertyDefinitionsPtr createPropertyDefinitions() 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 onDisconnectImageProcessor() override
Implement this method in the ImageProcessor in order execute parts when the component looses network ...
virtual 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)
ImageProcessorPropertyDefinitions(std::string prefix)
The ImageProcessor class provides an interface for access to ImageProviders via Ice and shared memory...
std::shared_ptr< class Robot > RobotPtr
This file offers overloads of toIce() and fromIce() functions for STL container types.
IceUtil::Handle< class PropertyDefinitionContainer > PropertyDefinitionsPtr
PropertyDefinitions smart pointer type.
::IceInternal::ProxyHandle<::IceProxy::armarx::RobotStateComponentInterface > RobotStateComponentInterfacePrx