diff --git a/source/RobotAPI/libraries/armem_grasping/server/KnownGraspProviderSegment.cpp b/source/RobotAPI/libraries/armem_grasping/server/KnownGraspProviderSegment.cpp index c805d2ee70a55356bfd46c463cd2f9b315aec583..cb9ac5c50080f6fababdf1e7ed7914c2c6e4af83 100644 --- a/source/RobotAPI/libraries/armem_grasping/server/KnownGraspProviderSegment.cpp +++ b/source/RobotAPI/libraries/armem_grasping/server/KnownGraspProviderSegment.cpp @@ -1,5 +1,6 @@ #include "KnownGraspProviderSegment.h" +#include <SimoxUtility/algorithm/string/string_tools.h> #include <VirtualRobot/Grasping/GraspSet.h> #include <VirtualRobot/XML/ObjectIO.h> @@ -63,7 +64,9 @@ namespace armarx::armem::grasping::segment arondto::KnownGraspSet retGraspSet; retGraspSet.name = graspSet->getName(); - retGraspSet.robot = graspSet->getRobotType(); + + retGraspSet.robot = simox::alg::split(graspSet->getRobotType(), " ").front(); + retGraspSet.endeffector = graspSet->getEndEffector(); for (const VirtualRobot::GraspPtr& grasp : graspSet->getGrasps())