Skip to content
Snippets Groups Projects
Commit 3e018bd5 authored by Fabian Reister's avatar Fabian Reister
Browse files

KnownGraspProviderSegment: fix: if robot name consists of robot + hand, split...

KnownGraspProviderSegment: fix: if robot name consists of robot + hand, split and use only robot name
parent c5312132
No related branches found
No related tags found
1 merge request!497euROBIN
Pipeline #21780 failed
This commit is part of merge request !497. Comments created here will be created in the context of that merge request.
#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())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment