Skip to content

Commit cf0a863

Browse files
Fix descartes planner check if the graph built
1 parent a7371ce commit cf0a863

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

tesseract_motion_planners/descartes/include/tesseract_motion_planners/descartes/impl/descartes_motion_planner.hpp

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,16 @@ PlannerResponse DescartesMotionPlanner<FloatType>::solve(const PlannerRequest& r
8686
try
8787
{
8888
descartes_light::LadderGraphSolver<FloatType> solver(problem->num_threads);
89-
solver.build(problem->samplers, problem->edge_evaluators, problem->state_evaluators);
89+
90+
// Build Graph
91+
if (!solver.build(problem->samplers, problem->edge_evaluators, problem->state_evaluators))
92+
{
93+
response.successful = false;
94+
response.message = ERROR_FAILED_TO_BUILD_GRAPH;
95+
return response;
96+
}
97+
98+
// Search Graph
9099
descartes_result = solver.search();
91100
if (descartes_result.trajectory.empty())
92101
{

0 commit comments

Comments
 (0)