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>
62 defineOptionalProperty<std::string>(
63 "providerName",
"ImageProvider",
"Name of the image provider that should be used");
64 defineOptionalProperty<std::string>(
65 "RobotStateComponentName",
66 "RobotStateComponent",
67 "Name of the robot state component that should be used");
68 defineOptionalProperty<std::string>(
69 "cameraFrameName",
"DepthCameraSim",
"The source frame name");
71 defineOptionalProperty<float>(
"filterColorR",
73 "The red value of the background color that has to be "
74 "different from the robots color. Range 0.f to 255.f");
75 defineOptionalProperty<float>(
"filterColorG",
77 "The green value of the background color that has to be "
78 "different from the robots color. Range 0.f to 255.f");
79 defineOptionalProperty<float>(
"filterColorB",
81 "The blue value of the background color that has to be "
82 "different from the robots color. Range 0.f to 255.f");
84 defineOptionalProperty<float>(
"collisionModelInflationMargin",
86 "When the collision model is used for the offscreen "
87 "rendering, it will be inflated by this margin.");
89 defineOptionalProperty<int>(
"dilationStrength",
91 "The strength of the dilation after the masking, which can "
92 "thicken the part that is cut from the image.");
94 defineOptionalProperty<bool>(
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.");
99 defineOptionalProperty<bool>(
102 "Boolean that indicates, if the full model should be used during the offscreen "
103 "rendering. Otherwise the collision model will be used.");
106 defineOptionalProperty<int>(
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;