Go to the documentation of this file.
29 #include <RobotAPI/interface/units/HandUnitInterface.h>
35 #include <VirtualRobot/VirtualRobot.h>
51 defineRequiredProperty<std::string>(
"RobotFileName",
"VirtualRobot XML file in which the endeffector is is stored.");
52 defineRequiredProperty<std::string>(
"EndeffectorName",
"Name of the endeffector as stored in the XML file (will publish values on EndeffectorName + 'State')");
72 virtual public HandUnitInterface,
115 void setShape(
const std::string& shapeName,
const Ice::Current&
c = Ice::emptyCurrent)
override;
125 void setShapeWithObjectInstance(
const std::string& shapeName,
const std::string& objectInstanceName,
const Ice::Current&
c = Ice::emptyCurrent)
override;
130 SingleTypeVariantListBasePtr
getShapeNames(
const Ice::Current&
c = Ice::emptyCurrent)
override;
135 void setObjectGrasped(
const std::string& objectName,
const Ice::Current&)
override;
136 void setObjectReleased(
const std::string& objectName,
const Ice::Current&)
override;
163 VirtualRobot::EndEffectorPtr
eef;
175 std::string
getHandName(
const Ice::Current& = Ice::emptyCurrent)
override;
177 void sendJointCommands(
const NameCommandMap& targetJointCommands,
const Ice::Current&)
override;
Base unit for high-level access to robot hands.
void onConnectComponent() override
Calls armarx::PlatformUnit::onStartPlatformUnit().
SingleTypeVariantListPtr shapeNames
List containing the names of all valid shapes.
std::string describeHandState(const Ice::Current &) override
VirtualRobot::RobotPtr robot
void setObjectReleased(const std::string &objectName, const Ice::Current &) override
std::string prefix
Prefix of the properties such as namespace, domain, component name, etc.
std::string graspedObject
std::string listenerChannelName
Ice Topic name on which armarx::HandUnit::listenerPrx publishes information.
std::string getHandName(const Ice::Current &=Ice::emptyCurrent) override
HandUnitListenerPrx listenerPrx
HandUnitListener proxy for publishing state updates.
void setObjectGrasped(const std::string &objectName, const Ice::Current &) override
void onInitComponent() override
Retrieve proxy for publishing State information and call armarx::PlatformUnit::onInitPlatformUnit().
VirtualRobot::EndEffectorPtr eef
void setJointForces(const NameValueMap &targetJointForces, const Ice::Current &) override
SingleTypeVariantListBasePtr getShapeNames(const Ice::Current &c=Ice::emptyCurrent) override
NameValueMap getCurrentJointValues(const Ice::Current &c=Ice::emptyCurrent) override
virtual void onExitHandUnit()=0
PropertyDefinitionsPtr createPropertyDefinitions() override
void setShape(const std::string &shapeName, const Ice::Current &c=Ice::emptyCurrent) override
Send command to the hand to form a specific shape position.
void setShapeWithObjectInstance(const std::string &shapeName, const std::string &objectInstanceName, const Ice::Current &c=Ice::emptyCurrent) override
setShapeWithObjectInstance Send command to the hand to form a specific shape position.
NameValueMap getShapeJointValues(const std::string &shapeName, const Ice::Current &c=Ice::emptyCurrent) override
Defines all necessary properties for armarx::HandUnit.
HandUnitPropertyDefinitions(std::string prefix)
void onExitComponent() override
Calls armarx::PlatformUnit::onExitPlatformUnit().
Default component property definition container.
virtual void onStartHandUnit()=0
Base Class for SensorActorUnits.
void sendJointCommands(const NameCommandMap &targetJointCommands, const Ice::Current &) override
std::map< std::string, float > handJoints
virtual void onInitHandUnit()=0
std::string kinematicUnitName
std::string getDefaultName() const override
Retrieve default name of component.
void setJointAngles(const NameValueMap &targetJointAngles, const Ice::Current &) override
This file offers overloads of toIce() and fromIce() functions for STL container types.
std::shared_ptr< class Robot > RobotPtr