Go to the documentation of this file.
31 defineOptionalProperty<std::string>(
"HandUnitNameCSV",
"",
"");
37 return "MultiHandUnit";
43 const auto units = getPropertyAsCSV<std::string>(
"HandUnitNameCSV");
48 _handInfos.reserve(units.size());
49 for (
const auto& name : units)
51 _handInfos.emplace_back();
52 _handInfos.back().proxyName = name;
59 for (
auto& info : _handInfos)
61 getProxy(info.proxy, info.proxyName);
62 info.handName = info.proxy->getHandName();
63 _hands[info.handName] = info.proxy;
90 _hands.at(handName)->setJointAngles(jointValues);
95 return _hands.at(handName)->getCurrentJointValues();
virtual void onConnectComponent() override
NameValueMap getJointValues(const std::string &handName, const Ice::Current &=Ice::emptyCurrent) override
MultiHandUnitPropertyDefinitions(std::string prefix)
virtual void onDisconnectComponent() override
virtual std::string getDefaultName() const override
virtual void onInitComponent() override
virtual void onExitComponent() override
virtual armarx::PropertyDefinitionsPtr createPropertyDefinitions() override
void setJointValues(const std::string &handName, const NameValueMap &jointValues, const Ice::Current &=Ice::emptyCurrent) override
std::string getConfigIdentifier()
Retrieve config identifier for this component as set in constructor.
Default component property definition container.
HandInfoSeq getHandInfos(const Ice::Current &=Ice::emptyCurrent) override
IceUtil::Handle< class PropertyDefinitionContainer > PropertyDefinitionsPtr
PropertyDefinitions smart pointer type.
Ice::ObjectPrx getProxy(long timeoutMs=0, bool waitForScheduler=true) const
Returns the proxy of this object (optionally it waits for the proxy)
bool usingProxy(const std::string &name, const std::string &endpoints="")
Registers a proxy for retrieval after initialization and adds it to the dependency list.
This file offers overloads of toIce() and fromIce() functions for STL container types.