Skip to content
Snippets Groups Projects
Unverified Commit 919e3899 authored by Florent Lamiraux's avatar Florent Lamiraux Committed by GitHub
Browse files

Merge pull request #116 from florent-lamiraux/devel

[ProblemSolver] Allow non-graph steering method in createPathProjector
parents 862e1b9b b8c5cdf0
No related branches found
No related tags found
No related merge requests found
Pipeline #19250 failed
...@@ -105,9 +105,8 @@ core::PathProjectorPtr_t createPathProjector( ...@@ -105,9 +105,8 @@ core::PathProjectorPtr_t createPathProjector(
steeringMethod::GraphPtr_t gsm = steeringMethod::GraphPtr_t gsm =
HPP_DYNAMIC_PTR_CAST(steeringMethod::Graph, problem->steeringMethod()); HPP_DYNAMIC_PTR_CAST(steeringMethod::Graph, problem->steeringMethod());
if (!gsm) if (!gsm)
throw std::logic_error( return PathProjectorType::create(problem->distance(),
"The steering method should be of type" problem->steeringMethod(), step);
" steeringMethod::Graph");
return PathProjectorType::create(problem->distance(), return PathProjectorType::create(problem->distance(),
gsm->innerSteeringMethod(), step); gsm->innerSteeringMethod(), step);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment