Go to the documentation of this file.
27 #include <ArmarXCore/interface/observers/ObserverInterface.h>
29 #include <ArmarXGui/interface/RemoteGuiInterface.h>
47 defineRequiredProperty<std::string>(
"MAC",
"The KIT Prosthetic Hand's Bluetooth MAC");
48 defineOptionalProperty<std::string>(
"RemoteGuiName",
"",
"Name of the remote gui");
49 defineOptionalProperty<std::string>(
"DebugObserverName",
51 "Name of the debug observer that should be used");
75 return "KITProstheticHandUnit";
82 const Ice::Current& = Ice::emptyCurrent)
override;
85 void addShape(
const std::string& name,
const std::map<std::string, float>& shape);
89 void setShape(
const std::string& shapeName,
90 const Ice::Current&
c = Ice::emptyCurrent)
override;
99 std::unique_ptr<BLEProthesisInterface> _driver;
100 std::map<std::string, std::map<std::string, float>> _shapes;
104 RemoteGuiInterfacePrx _remoteGuiPrx;
107 float _lastGuiValueThumb{0};
108 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