30#include <IceUtil/Time.h>
38#include <ArmarXSimulation/interface/simulator/SimulatorInterface.h>
40#include <MemoryX/interface/components/WorkingMemoryInterface.h>
56 "SimulatorProxyName",
"Simulator",
"Name of the simulator proxy to use.");
58 "RobotStateComponentName",
59 "RobotStateComponent",
60 "Name of the RobotStateComponent that should be used");
62 "UseLegacyWorkingMemory",
64 "Require the legacy MemoryX working memory to be available before starting.");
66 "Name of the kinematic unit that should be used");
85 return "HandUnitDynamicSimulation";
103 void setObjectGrasped(
const std::string& objectName,
const Ice::Current&)
override;
104 void setObjectReleased(
const std::string& objectName,
const Ice::Current&)
override;
128 void setShape(
const std::string& shapeName,
const Ice::Current&)
override;
130 const std::string& objectInstanceName,
131 const Ice::Current&
c = Ice::emptyCurrent)
override;
132 void setJointAngles(
const NameValueMap& jointAngles,
const Ice::Current&)
override;
HandUnitDynamicSimulationPropertyDefinitions(std::string prefix)
This unit connects to the physics simulator topic (default: "Simulator") and implements a HandUnit.
void onInitHandUnit() override
armarx::NameValueMap handUnitJointsToRobotJoints(const armarx::NameValueMap &joints)
void onExitHandUnit() override
memoryx::WorkingMemoryInterfacePrx workingMemoryPrx
void setObjectReleased(const std::string &objectName, const Ice::Current &) override
SimulatorInterfacePrx simulatorPrx
std::string objectPoseStorageName
std::string robotStateComponentName
KinematicUnitInterfacePrx kinematicUnitPrx
void onStartHandUnit() override
void setShape(const std::string &shapeName, const Ice::Current &) override
void setObjectGrasped(const std::string &objectName, const Ice::Current &) override
std::string getRobotNameFromHandUnitName()
NameValueMap getCurrentJointValues(const Ice::Current &c=Ice::emptyCurrent) override
PropertyDefinitionsPtr createPropertyDefinitions() override
Send command to the hand to open all fingers.
RobotStateComponentInterfacePrx robotStateComponentPrx
std::string simulatorPrxName
void setJointAngles(const NameValueMap &jointAngles, const Ice::Current &) override
std::string getHandSideFromHandUnitName()
void setShapeWithObjectInstance(const std::string &shapeName, const std::string &objectInstanceName, const Ice::Current &c=Ice::emptyCurrent) override
std::string getDefaultName() const override
Retrieve default name of component.
HandUnitPropertyDefinitions(std::string prefix)
Base unit for high-level access to robot hands.
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)
PropertyDefinition< PropertyType > & defineRequiredProperty(const std::string &name, const std::string &description="", PropertyDefinitionBase::PropertyConstness constness=PropertyDefinitionBase::eConstant)
This file offers overloads of toIce() and fromIce() functions for STL container types.
IceUtil::Handle< class PropertyDefinitionContainer > PropertyDefinitionsPtr
PropertyDefinitions smart pointer type.
::IceInternal::ProxyHandle<::IceProxy::armarx::RobotStateComponentInterface > RobotStateComponentInterfacePrx