Go to the documentation of this file.
29 #include <Image/StereoMatcher.h>
31 #include <VirtualRobot/VirtualRobot.h>
38 class CVisualTargetLocator;
39 class CColorParameterSet;
50 defineOptionalProperty<std::string>(
"ColorParameterFile",
"VisionX/examples/colors.txt",
"The color parameter file configures the colors used for segmentable recognition (usually colors.txt)");
51 defineOptionalProperty<bool>(
"ShowSegmentedResultImages",
true,
"Decide whether to calculate color-segmented images with the marker color and show them as result images. Causes small additional computational effort.");
52 defineOptionalProperty<bool>(
"UseVision",
true,
"You can switch off the use of the camera images. The returned pose will then just be taken from the forward kinematics.");
54 defineOptionalProperty<ObjectColor>(
"BlobColor", eOrange,
"")
58 .map(
"Colored", eColored)
60 .map(
"Green2", eGreen2)
61 .map(
"Green3", eGreen3)
62 .map(
"Orange", eOrange)
63 .map(
"Orange2", eOrange2)
64 .map(
"Orange3", eOrange3)
70 .map(
"Yellow", eYellow)
71 .map(
"Yellow2", eYellow2)
72 .map(
"Yellor3", eYellow3);
74 defineOptionalProperty<int>(
"nMinPixelsPerRegion", 450,
"");
75 defineOptionalProperty<double>(
"dMaxEpipolarDiff", 10,
"");
76 defineOptionalProperty<double>(
"dMinFilledRatio", 0.55,
"");
77 defineOptionalProperty<double>(
"dMaxSideRatio", 1.4,
"");
78 defineOptionalProperty<double>(
"dMinSize", 1150,
"");
79 defineOptionalProperty<double>(
"dMaxSize", 2200,
"");
111 return "BigBowlLocalization";
158 void drawCrossInImage(CByteImage* image, Eigen::Vector3f point,
bool leftCamera);
166 CVisualTargetLocator* visualTargetLocator;
167 ObjectColor objectColor;
174 bool showSegmentedResultImages;
175 CColorParameterSet* colorParameterSet;
179 CStereoMatcher* stereoMatcher;
CByteImage ** resultImages
void onConnectObjectLocalizerProcessor() override
Initialize stuff here?
BigBowlLocalizationPropertyDefinitions(std::string prefix)
std::string prefix
Prefix of the properties such as namespace, domain, component name, etc.
armarx::PropertyDefinitionsPtr createPropertyDefinitions() override
void onInitObjectLocalizerProcessor() override
memoryx::ObjectLocalizationResultList localizeObjectClasses(const std::vector< std::string > &objectClassNames, CByteImage **cameraImages, armarx::MetaInfoSizeBasePtr imageMetaInfo, CByteImage **resultImages) override
localize one or both hand markers
BigBowlLocalization uses the CVisualTargetLocator of IVT in order to recognize and localize the marke...
armarx::MetaInfoSizeBasePtr imageMetaInfo
bool initRecognizer() override
Initializes segmentable recognition.
std::string getDefaultName() const override
CByteImage * cameraImages[2]
VectorXD< 3, double > Vec3d
void onExitObjectLocalizerProcessor() override
std::string getConfigIdentifier()
Retrieve config identifier for this component as set in constructor.
bool addObjectClass(const memoryx::EntityPtr &objectClassEntity, const memoryx::GridFileManagerPtr &fileManager) override
ObjectLocalizerProcessor interface: The addObjectClass method needs to be implemented by any ObjectLo...
std::shared_ptr< GridFileManager > GridFileManagerPtr
IceUtil::Handle< class PropertyDefinitionContainer > PropertyDefinitionsPtr
PropertyDefinitions smart pointer type.
armarx::DebugDrawerInterfacePrx debugDrawerPrx
std::shared_ptr< class Robot > RobotPtr
ObjectLocalizerProcessor.