28 #include <VirtualRobot/VirtualRobot.h>
34 class CVisualTargetLocator;
35 class CColorParameterSet;
46 defineOptionalProperty<std::string>(
48 "VisionX/examples/colors.txt",
49 "The color parameter file configures the colors used for segmentable recognition "
50 "(usually colors.txt)");
51 defineOptionalProperty<bool>(
52 "ShowSegmentedResultImages",
54 "Decide whether to calculate color-segmented images with the marker color and show "
55 "them as result images. Causes small additional computational effort.");
56 defineOptionalProperty<std::string>(
57 "TCPNameLeft",
"TCP L",
"Name of the TCP of the left robot hand.");
58 defineOptionalProperty<std::string>(
59 "TCPNameRight",
"TCP R",
"Name of the TCP of the right robot hand.");
60 defineOptionalProperty<std::string>(
61 "MarkerNameLeft",
"Marker L",
"Name of the marker ball at the left robot hand.");
62 defineOptionalProperty<std::string>(
63 "MarkerNameRight",
"Marker R",
"Name of the marker ball at the right robot hand.");
64 defineOptionalProperty<bool>(
67 "You can switch off the use of the camera images. The returned pose will then just "
68 "be taken from the forward kinematics.");
69 defineOptionalProperty<std::string>(
70 "RobotStateComponentName",
71 "RobotStateComponent",
72 "Name of the RobotStateComponent that should be used");
73 defineOptionalProperty<float>(
74 "MaximalAcceptedDistanceFromForwardKinematics",
76 "Maximal distance that the localization result may have from the position "
77 "determined by forward kinematics. If it is further away, it is discarded..");
108 return "HandMarkerLocalization";
159 memoryx::ObjectLocalizationResultList
167 void drawCrossInImage(CByteImage* image, Eigen::Vector3f point,
bool leftCamera);
174 CVisualTargetLocator* visualTargetLocator;
175 std::map<std::string, ObjectColor> markerColors;
179 std::string tcpNameLeft, tcpNameRight, markerNameLeft, markerNameRight;
182 bool showSegmentedResultImages;
183 CColorParameterSet* colorParameterSet;