28 using namespace GraspObjectGroup;
43 std::string handName = in.getHandNameInMemory();
44 std::string locationName = in.getLocationName();
48 if (handName.find(
"left") != std::string::npos || handName.find(
"Left") != std::string::npos)
52 else if (handName.find(
"right") != std::string::npos || handName.find(
"Right") != std::string::npos)
56 else if (handName.find(
"l") != std::string::npos || handName.find(
"L") != std::string::npos)
66 if (locationName.find(
"fridge") != std::string::npos || locationName.find(
"Fridge") != std::string::npos)
70 local.setPregraspConfig(in.getPregraspConfigFridgeRight());
74 ARMARX_ERROR <<
"cannot grasp from fridge with left hand";
81 local.setPregraspConfig(in.getPregraspConfigDefaultRight());
85 local.setPregraspConfig(in.getPregraspConfigDefaultLeft());