Go to the documentation of this file.
27 #include <ArmarXCore/interface/observers/ObserverInterface.h>
29 #include <ArmarXGui/interface/RemoteGuiInterface.h>
48 defineRequiredProperty<std::string>(
"MAC",
"The KIT Prosthetic Hand's Bluetooth MAC");
49 defineOptionalProperty<std::string>(
"RemoteGuiName",
"",
"Name of the remote gui");
50 defineOptionalProperty<std::string>(
"DebugObserverName",
"DebugObserver",
"Name of the debug observer that should be used");
74 return "KITProstheticHandUnit";
83 void addShape(
const std::string& name,
const std::map<std::string, float>& shape);
87 void setShape(
const std::string& shapeName,
const Ice::Current&
c = Ice::emptyCurrent)
override;
96 std::unique_ptr<BLEProthesisInterface> _driver;
97 std::map<std::string, std::map<std::string, float>> _shapes;
101 RemoteGuiInterfacePrx _remoteGuiPrx;
104 float _lastGuiValueThumb{0};
105 float _lastGuiValueFingers{0};
void onInitHandUnit() override
Base unit for high-level access to robot hands.
void addShape(const std::string &name, const std::map< std::string, float > &shape)
void setShape(const std::string &shapeName, const Ice::Current &c=Ice::emptyCurrent) override
std::string prefix
Prefix of the properties such as namespace, domain, component name, etc.
void onStartHandUnit() override
void onExitHandUnit() override
KITProstheticHandUnitPropertyDefinitions(std::string prefix)
std::string getDefaultName() const override
Defines all necessary properties for armarx::HandUnit.
void addShapeName(const std::string &name)
armarx::PropertyDefinitionsPtr createPropertyDefinitions() override
Brief description of class KITProstheticHandUnit.
void setJointAngles(const NameValueMap &targetJointAngles, const Ice::Current &=Ice::emptyCurrent) override
This file offers overloads of toIce() and fromIce() functions for STL container types.
NameValueMap getCurrentJointValues(const Ice::Current &) override