31 #include <SimoxUtility/algorithm/string/string_tools.h>
43 kinematicUnitObserverName = getProperty<std::string>(
"KinematicUnitObserverName").getValue();
45 usingProxy(getProperty<std::string>(
"KinematicUnitName").getValue());
46 usingProxy(getProperty<std::string>(
"RobotStateComponentName").getValue());
49 if (!getProperty<std::string>(
"HandUnits").getValue().
empty())
51 std::string handUnitsProp = getProperty<std::string>(
"HandUnits").getValue();
54 for (
size_t i = 0; i < handUnitList.size(); i++)
56 simox::alg::trim(handUnitList.at(i));
62 headIKUnitName = getProperty<std::string>(
"HeadIKUnitName").getValue();
65 if (!headIKUnitName.empty())
78 std::string rbStateName = getProperty<std::string>(
"RobotStateComponentName").getValue();
80 std::string kinUnitName = getProperty<std::string>(
"KinematicUnitName").getValue();
86 if (!headIKUnitName.empty())
88 headIKUnitPrx = getProxy<HeadIKUnitInterfacePrx>(headIKUnitName);
93 if (!getProperty<std::string>(
"HandUnits").getValue().
empty())
95 std::string handUnitsProp = getProperty<std::string>(
"HandUnits").getValue();
98 for (
size_t i = 0; i < handUnitList.size(); i++)
100 simox::alg::trim(handUnitList.at(i));
101 HandUnitInterfacePrx handPrx = getProxy<HandUnitInterfacePrx>(handUnitList.at(i));
103 ARMARX_INFO <<
"Fetched handUnit proxy " << handUnitList.at(i) <<
": " << handPrx <<
flush;
122 ARMARX_INFO <<
"Found proxy of hand unit with name " << handUnitName <<
flush;
126 ARMARX_INFO <<
"Do not know proxy of hand unit with name " << handUnitName <<
flush;
127 std::map<std::string, HandUnitInterfacePrx>::iterator it =
handUnits.begin();
131 ARMARX_INFO <<
"************ Known hand units: " << it->first <<
":" << it->second <<
flush;
135 return HandUnitInterfacePrx();