3 #include <VirtualRobot/Grasping/GraspSet.h>
4 #include <VirtualRobot/ManipulationObject.h>
5 #include <VirtualRobot/RobotNodeSet.h>
11 namespace grasp_control::util
23 std::vector<VirtualRobot::RobotNodeSetPtr> possibleNodeSets;
31 ARMARX_INFO <<
"Found possible node set for grasp: " << nodeSet->getName()
32 <<
". The TCP is: " << nodeSet->getTCP()->getName();
33 auto nodeSetName = nodeSet->getName();
34 auto tcpName = nodeSet->getTCP()->getName();
37 auto currentNumOfJoints = nodeSet->size();
40 tcpPoseGlobal.block<3, 1>(0, 3))
46 currentNumOfJoints) or
52 <<
VAROUT(currentNumOfJoints) <<
" <-> " <<
VAROUT(numOfJoints);
56 numOfJoints = currentNumOfJoints;
63 SelectBestGraspSetForObjectOutput
69 for (
const auto& [name, gs] : in.
graspInfo.graspSets)
72 if (gs.endeffector != in.
tcpName)
84 GetPlatformOffsetForObjectGraspOutput
90 auto targetPlatformPoseLocal =
94 targetPlatformPoseLocal(1, 3) += -600;
95 if (tcpPoseLocal(0, 3) < 0)
97 targetPlatformPoseLocal(0, 3) += 100;
101 targetPlatformPoseLocal(0, 3) += -100;
115 GetPlatformOffsetAfterObjectGraspOutput
121 movePlatformBack(1, 3) = -400;