Пример #1
0
void GraspPlanningTask::plannerComplete()
{
  DBGA("planner Complete");
  //save solutions that have accumulated in last loop
  //plannerLoopUpdate();
  if(!saveGrasps())
    mStatus = ERROR;
  else	//finish
    mStatus = DONE;
}
Пример #2
0
void AutoGraspGenerationDlg::timerUpdate()
{
    std::cout << "timer update called" << std::endl;
    std::cout << "cloud_with_normals.size() " << cloud_with_normals.size() << std::endl;
    std::cout << "currentHandPositionIndex" << currentMeshPointIndex << std::endl;

    if (cloud_with_normals.size() < currentMeshPointIndex)
    {
        stopPlanner();
        saveGrasps();
    }
    else
    {
        moveHandToNextPose();
    }
}