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