Skip to content

Commit

Permalink
Fix descartes planner check if the graph built
Browse files Browse the repository at this point in the history
  • Loading branch information
Levi-Armstrong committed May 30, 2024
1 parent a7371ce commit cf0a863
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,16 @@ PlannerResponse DescartesMotionPlanner<FloatType>::solve(const PlannerRequest& r
try
{
descartes_light::LadderGraphSolver<FloatType> solver(problem->num_threads);
solver.build(problem->samplers, problem->edge_evaluators, problem->state_evaluators);

// Build Graph
if (!solver.build(problem->samplers, problem->edge_evaluators, problem->state_evaluators))
{
response.successful = false;
response.message = ERROR_FAILED_TO_BUILD_GRAPH;
return response;
}

// Search Graph
descartes_result = solver.search();
if (descartes_result.trajectory.empty())
{
Expand Down

0 comments on commit cf0a863

Please sign in to comment.