30 #include <VirtualRobot/VirtualRobot.h>
34 class CVisualTargetLocator;
35 class CColorParameterSet;
46 defineOptionalProperty<std::string>(
"ColorParameterFile",
"VisionX/examples/colors.txt",
"The color parameter file configures the colors used for segmentable recognition (usually colors.txt)");
47 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.");
48 defineOptionalProperty<std::string>(
"TCPNameLeft",
"TCP L",
"Name of the TCP of the left robot hand.");
49 defineOptionalProperty<std::string>(
"TCPNameRight",
"TCP R",
"Name of the TCP of the right robot hand.");
50 defineOptionalProperty<std::string>(
"MarkerNameLeft",
"Marker L",
"Name of the marker ball at the left robot hand.");
51 defineOptionalProperty<std::string>(
"MarkerNameRight",
"Marker R",
"Name of the marker ball at the right robot hand.");
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.");
53 defineOptionalProperty<std::string>(
"RobotStateComponentName",
"RobotStateComponent",
"Name of the RobotStateComponent that should be used");
54 defineOptionalProperty<float>(
"MaximalAcceptedDistanceFromForwardKinematics", 200,
"Maximal distance that the localization result may have from the position determined by forward kinematics. If it is further away, it is discarded..");
85 return "HandMarkerLocalization";
137 void drawCrossInImage(CByteImage* image, Eigen::Vector3f point,
bool leftCamera);
144 CVisualTargetLocator* visualTargetLocator;
145 std::map<std::string, ObjectColor> markerColors;
149 std::string tcpNameLeft, tcpNameRight, markerNameLeft, markerNameRight;
152 bool showSegmentedResultImages;
153 CColorParameterSet* colorParameterSet;