Go to the documentation of this file.
28 #include <VirtualRobot/VirtualRobot.h>
32 #include <Image/StereoMatcher.h>
39 class CVisualTargetLocator;
40 class CColorParameterSet;
51 defineOptionalProperty<std::string>(
53 "VisionX/examples/colors.txt",
54 "The color parameter file configures the colors used for segmentable recognition "
55 "(usually colors.txt)");
56 defineOptionalProperty<bool>(
57 "ShowSegmentedResultImages",
59 "Decide whether to calculate color-segmented images with the marker color and show "
60 "them as result images. Causes small additional computational effort.");
61 defineOptionalProperty<bool>(
64 "You can switch off the use of the camera images. The returned pose will then just "
65 "be taken from the forward kinematics.");
67 defineOptionalProperty<ObjectColor>(
"BlobColor", eOrange,
"")
71 .map(
"Colored", eColored)
73 .map(
"Green2", eGreen2)
74 .map(
"Green3", eGreen3)
75 .map(
"Orange", eOrange)
76 .map(
"Orange2", eOrange2)
77 .map(
"Orange3", eOrange3)
83 .map(
"Yellow", eYellow)
84 .map(
"Yellow2", eYellow2)
85 .map(
"Yellor3", eYellow3);
87 defineOptionalProperty<int>(
"nMinPixelsPerRegion", 450,
"");
88 defineOptionalProperty<double>(
"dMaxEpipolarDiff", 10,
"");
89 defineOptionalProperty<double>(
"dMinFilledRatio", 0.55,
"");
90 defineOptionalProperty<double>(
"dMaxSideRatio", 1.4,
"");
91 defineOptionalProperty<double>(
"dMinSize", 1150,
"");
92 defineOptionalProperty<double>(
"dMaxSize", 2200,
"");
123 return "BigBowlLocalization";
167 memoryx::ObjectLocalizationResultList
175 void drawCrossInImage(CByteImage* image, Eigen::Vector3f point,
bool leftCamera);
183 CVisualTargetLocator* visualTargetLocator;
184 ObjectColor objectColor;
191 bool showSegmentedResultImages;
192 CColorParameterSet* colorParameterSet;
196 CStereoMatcher* stereoMatcher;
CByteImage ** resultImages
void onConnectObjectLocalizerProcessor() override
Initialize stuff here?
VectorXD< 3, double > Vec3d
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]
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.