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";
116 armarx::FramedPoseBasePtr
getHandPose(
const Ice::Current&
c = Ice::emptyCurrent)
override;
121 visionx::FramedPositionBaseList
135 std::string providerName;
136 ImageProviderInterfacePrx imageProviderPrx;
137 ImageFormatInfo imageFormat;
138 std::string robotStateProxyName;
140 std::string handFrameName, cameraFrameName;
142 CStereoCalibration* stereoCalibration;
143 CByteImage** cameraImages;
144 CByteImage** resultImages;
145 static const int numResultImages = 4;
149 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.
static std::string GetDefaultName()
std::string getDefaultName() const override
Retrieve default name of component.
IceUtil::Handle< class PropertyDefinitionContainer > PropertyDefinitionsPtr
PropertyDefinitions smart pointer type.
::IceInternal::ProxyHandle<::IceProxy::armarx::RobotStateComponentInterface > RobotStateComponentInterfacePrx