Go to the documentation of this file.
33 #include <ArmarXSimulation/interface/simulator/SimulatorInterface.h>
35 #include <MemoryX/interface/components/WorkingMemoryInterface.h>
37 #include <IceUtil/Time.h>
56 defineOptionalProperty<std::string>(
"SimulatorProxyName",
"Simulator",
"Name of the simulator proxy to use.");
57 defineOptionalProperty<std::string>(
"RobotStateComponentName",
"RobotStateComponent",
"Name of the RobotStateComponent that should be used");
58 defineOptionalProperty<bool>(
"UseLegacyWorkingMemory",
false,
59 "Require the legacy MemoryX working memory to be available before starting.");
60 defineRequiredProperty<std::string>(
"KinematicUnitName",
"Name of the kinematic unit that should be used");
79 return "HandUnitDynamicSimulation";
97 void setObjectGrasped(
const std::string& objectName,
const Ice::Current&)
override;
98 void setObjectReleased(
const std::string& objectName,
const Ice::Current&)
override;
123 void setShape(
const std::string& shapeName,
const Ice::Current&)
override;
124 void setShapeWithObjectInstance(
const std::string& shapeName,
const std::string& objectInstanceName,
const Ice::Current&
c = Ice::emptyCurrent)
override;
Base unit for high-level access to robot hands.
void setShape(const std::string &shapeName, const Ice::Current &) override
std::string getDefaultName() const override
Retrieve default name of component.
std::string robotStateComponentName
memoryx::WorkingMemoryInterfacePrx workingMemoryPrx
KinematicUnitInterfacePrx kinematicUnitPrx
HandUnitDynamicSimulationPropertyDefinitions(std::string prefix)
armarx::NameValueMap handUnitJointsToRobotJoints(const armarx::NameValueMap &joints)
void setObjectReleased(const std::string &objectName, const Ice::Current &) override
std::string prefix
Prefix of the properties such as namespace, domain, component name, etc.
void onInitHandUnit() override
void setJointAngles(const NameValueMap &jointAngles, const Ice::Current &) override
This unit connects to the physics simulator topic (default: "Simulator") and implements a HandUnit.
std::string objectPoseStorageName
NameValueMap getCurrentJointValues(const Ice::Current &c=Ice::emptyCurrent) override
std::string simulatorPrxName
std::string getHandSideFromHandUnitName()
Defines all necessary properties for armarx::HandUnit.
void setObjectGrasped(const std::string &objectName, const Ice::Current &) override
void setShapeWithObjectInstance(const std::string &shapeName, const std::string &objectInstanceName, const Ice::Current &c=Ice::emptyCurrent) override
const KinematicUnitDatafieldCreator jointAngles("jointAngles")
PropertyDefinitionsPtr createPropertyDefinitions() override
Send command to the hand to open all fingers.
SimulatorInterfacePrx simulatorPrx
RobotStateComponentInterfacePrx robotStateComponentPrx
void onExitHandUnit() override
void onStartHandUnit() override
std::string getRobotNameFromHandUnitName()
This file offers overloads of toIce() and fromIce() functions for STL container types.