27#include <VirtualRobot/VirtualRobot.h>
34#include <RobotAPI/interface/units/HandUnitInterface.h>
48 "RobotFileName",
"VirtualRobot XML file in which the endeffector is is stored.");
51 "Name of the endeffector as stored in the XML file (will publish values on "
52 "EndeffectorName + 'State')");
113 void setShape(
const std::string& shapeName,
114 const Ice::Current&
c = Ice::emptyCurrent)
override;
125 const std::string& objectInstanceName,
126 const Ice::Current&
c = Ice::emptyCurrent)
override;
131 SingleTypeVariantListBasePtr
132 getShapeNames(
const Ice::Current&
c = Ice::emptyCurrent)
override;
135 const Ice::Current&
c = Ice::emptyCurrent)
override;
138 void setObjectGrasped(
const std::string& objectName,
const Ice::Current&)
override;
139 void setObjectReleased(
const std::string& objectName,
const Ice::Current&)
override;
140 void setJointAngles(
const NameValueMap& targetJointAngles,
const Ice::Current&)
override;
151 void startTare(
const Ice::Current&)
override;
153 void tare(
const Ice::Current&)
override;
174 VirtualRobot::EndEffectorPtr
eef;
186 std::string
getHandName(
const Ice::Current& = Ice::emptyCurrent)
override;
187 void setJointForces(
const NameValueMap& targetJointForces,
const Ice::Current&)
override;
189 const Ice::Current&)
override;
ComponentPropertyDefinitions(std::string prefix, bool hasObjectNameParameter=true)
HandUnitPropertyDefinitions(std::string prefix)
Base unit for high-level access to robot hands.
virtual void onExitHandUnit()=0
void onInitComponent() override
Retrieve proxy for publishing State information and call armarx::PlatformUnit::onInitPlatformUnit().
std::string getHandName(const Ice::Current &=Ice::emptyCurrent) override
HandUnitListenerPrx listenerPrx
HandUnitListener proxy for publishing state updates.
SingleTypeVariantListPtr shapeNames
List containing the names of all valid shapes.
std::string describeHandState(const Ice::Current &) override
VirtualRobot::RobotPtr robot
VirtualRobot::EndEffectorPtr eef
std::string kinematicUnitName
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 setObjectReleased(const std::string &objectName, const Ice::Current &) override
void setJointForces(const NameValueMap &targetJointForces, const Ice::Current &) override
virtual void onInitHandUnit()=0
void sendJointCommands(const NameCommandMap &targetJointCommands, const Ice::Current &) override
std::map< std::string, float > handJoints
SingleTypeVariantListBasePtr getShapeNames(const Ice::Current &c=Ice::emptyCurrent) override
std::string graspedObject
void setObjectGrasped(const std::string &objectName, const Ice::Current &) override
void onConnectComponent() override
Calls armarx::PlatformUnit::onStartPlatformUnit().
void setJointAngles(const NameValueMap &targetJointAngles, const Ice::Current &) override
NameValueMap getCurrentJointValues(const Ice::Current &c=Ice::emptyCurrent) override
void tare(const Ice::Current &) override
PropertyDefinitionsPtr createPropertyDefinitions() override
void reloadPreshapes(const Ice::Current &) override
std::string listenerChannelName
Ice Topic name on which armarx::HandUnit::listenerPrx publishes information.
void startTare(const Ice::Current &) override
void onExitComponent() override
Calls armarx::PlatformUnit::onExitPlatformUnit().
void rebootEmbeddedSystem(const Ice::Current &) override
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.
virtual void onStartHandUnit()=0
NameValueMap getShapeJointValues(const std::string &shapeName, const Ice::Current &c=Ice::emptyCurrent) override
std::string getDefaultName() const override
Retrieve default name of component.
std::string prefix
Prefix of the properties such as namespace, domain, component name, etc.
PropertyDefinition< PropertyType > & defineRequiredProperty(const std::string &name, const std::string &description="", PropertyDefinitionBase::PropertyConstness constness=PropertyDefinitionBase::eConstant)
SensorActorUnit()
Constructs a SensorActorUnit.
std::shared_ptr< class Robot > RobotPtr
This file offers overloads of toIce() and fromIce() functions for STL container types.
IceInternal::Handle< SingleTypeVariantList > SingleTypeVariantListPtr
IceUtil::Handle< class PropertyDefinitionContainer > PropertyDefinitionsPtr
PropertyDefinitions smart pointer type.