diff --git a/src/grasping/grasp_util.cpp b/src/grasping/grasp_util.cpp index 64399434b5c074228af995fec9402c169336f2b5..e1973ec3801e12d4ed22f10ec5d284d76b59f2a0 100644 --- a/src/grasping/grasp_util.cpp +++ b/src/grasping/grasp_util.cpp @@ -183,7 +183,7 @@ GraspUtil::pickFromSide(moveit::planning_interface::MoveGroupInterface &move_gro if(object_to_pick.type == shape_msgs::SolidPrimitive::CYLINDER){ - if(object_to_pick.dimensions[0] <= 0.08){ + if(object_to_pick.dimensions[1] >= 0.08){ ROS_ERROR("Could not grasp: Cylinder object to big."); return false; }