Skip to content
Snippets Groups Projects
Commit dbb56443 authored by Le Quang Anh's avatar Le Quang Anh
Browse files

Allow non-graph steering method for manipulation

parent d83a71c2
No related branches found
No related tags found
No related merge requests found
......@@ -111,9 +111,10 @@ namespace hpp {
steeringMethod::GraphPtr_t gsm =
HPP_DYNAMIC_PTR_CAST
(steeringMethod::Graph, problem->steeringMethod());
if (!gsm) throw std::logic_error
("The steering method should be of type"
" steeringMethod::Graph");
if (!gsm) {
return PathProjectorType::create (problem->distance(),
problem->steeringMethod(), step);
}
return PathProjectorType::create (problem->distance(),
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