34#include <VisionX/interface/components/HandLocalization.h>
40#include <Image/ByteImage.h>
42class CStereoCalibration;
59 "Ice Adapter name of the image provider");
61 "RobotStateProxyName",
"RobotState",
"Ice Adapter name of the robot state proxy");
65 "Name of the robot state frame of the hand that will be localized");
69 "Name of the robot state frame of the primary camera");
87 virtual public visionx::HandLocalizationWithFingertipsInterface
96 return "RobotHandLocalizationWithFingertips";
110 armarx::FramedPoseBasePtr
getHandPose(
const Ice::Current&
c = Ice::emptyCurrent)
override;
115 visionx::FramedPositionBaseList
129 std::string providerName;
130 ImageProviderInterfacePrx imageProviderPrx;
131 ImageFormatInfo imageFormat;
132 std::string robotStateProxyName;
134 std::string handFrameName, cameraFrameName;
136 CStereoCalibration* stereoCalibration;
137 CByteImage** cameraImages;
138 CByteImage** resultImages;
139 static const int numResultImages = 4;
143 static const bool drawComplexHandModelInResultImage =
true;
std::string getConfigIdentifier()
Retrieve config identifier for this component as set in constructor.
std::string prefix
Prefix of the properties such as namespace, domain, component name, etc.
PropertyDefinition< PropertyType > & defineOptionalProperty(const std::string &name, PropertyType defaultValue, const std::string &description="", PropertyDefinitionBase::PropertyConstness constness=PropertyDefinitionBase::eConstant)
ImageProcessorPropertyDefinitions(std::string prefix)
The ImageProcessor class provides an interface for access to ImageProviders via Ice and shared memory...
RobotHandLocalizationWithFingertipsPropertyDefinitions(std::string prefix)
RobotHandLocalizationWithFingertips localizes the robot hand using the marker ball and the finger tip...
void onConnectImageProcessor() override
Implement this method in the ImageProcessor in order execute parts when the component is fully initia...
void onExitImageProcessor() override
Exit the ImapeProcessor component.
armarx::FramedPoseBasePtr getHandPose(const Ice::Current &c=Ice::emptyCurrent) override
Returns the hand pose.
visionx::FramedPositionBaseList getFingertipPositions(const Ice::Current &c=Ice::emptyCurrent) override
Returns the positions of the fingertips in this order: thumb, index, middle, ring,...
armarx::PropertyDefinitionsPtr createPropertyDefinitions() override
void process() override
Process the vision component.
void onInitImageProcessor() override
Setup the vision component.
std::string getDefaultName() const override
IceUtil::Handle< class PropertyDefinitionContainer > PropertyDefinitionsPtr
PropertyDefinitions smart pointer type.
::IceInternal::ProxyHandle<::IceProxy::armarx::RobotStateComponentInterface > RobotStateComponentInterfacePrx