28 using namespace GraspObjectGroup;
31 MoveToPregraspArmConfig::SubClassRegistry
44 std::string handName = in.getHandNameInMemory();
45 std::string locationName = in.getLocationName();
49 if (handName.find(
"left") != std::string::npos || handName.find(
"Left") != std::string::npos)
53 else if (handName.find(
"right") != std::string::npos ||
54 handName.find(
"Right") != std::string::npos)
58 else if (handName.find(
"l") != std::string::npos || handName.find(
"L") != std::string::npos)
68 if (locationName.find(
"fridge") != std::string::npos ||
69 locationName.find(
"Fridge") != std::string::npos)
73 local.setPregraspConfig(in.getPregraspConfigFridgeRight());
77 ARMARX_ERROR <<
"cannot grasp from fridge with left hand";
84 local.setPregraspConfig(in.getPregraspConfigDefaultRight());
88 local.setPregraspConfig(in.getPregraspConfigDefaultLeft());