Skip to content

Commit

Permalink
PipelinePlanner: Reject approximate solutions
Browse files Browse the repository at this point in the history
  • Loading branch information
rhaschke committed Oct 13, 2023
1 parent 5b6287a commit d05ba1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/solvers/pipeline_planner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ bool PipelinePlanner::plan(const planning_scene::PlanningSceneConstPtr& from,
::planning_interface::MotionPlanResponse res;
bool success = planner_->generatePlan(from, req, res);
result = res.trajectory_;
return success;
return success && res.error_code_.val == moveit_msgs::msg::MoveItErrorCodes::SUCCESS;
}

bool PipelinePlanner::plan(const planning_scene::PlanningSceneConstPtr& from, const moveit::core::LinkModel& link,
Expand All @@ -206,7 +206,7 @@ bool PipelinePlanner::plan(const planning_scene::PlanningSceneConstPtr& from, co
::planning_interface::MotionPlanResponse res;
bool success = planner_->generatePlan(from, req, res);
result = res.trajectory_;
return success;
return success && res.error_code_.val == moveit_msgs::msg::MoveItErrorCodes::SUCCESS;
}
} // namespace solvers
} // namespace task_constructor
Expand Down

0 comments on commit d05ba1e

Please sign in to comment.