Skip to content
Snippets Groups Projects
Unverified Commit 9a6abfb3 authored by Joseph Mirabel's avatar Joseph Mirabel Committed by GitHub
Browse files

Merge pull request #72 from florent-lamiraux/devel

[steeringMethod::Graph] If q1 == q2, call problem inner steering method.
parents b3dfdcf8 ab205f3a
No related merge requests found
......@@ -80,6 +80,13 @@ namespace hpp {
PathPtr_t Graph::impl_compute (ConfigurationIn_t q1, ConfigurationIn_t q2) const
{
graph::Edges_t possibleEdges;
// If q1 and q2 are the same, call the problem steering method between
// them
if (q1 == q2) {
core::SteeringMethodPtr_t sm
(problem_.manipulationSteeringMethod()->innerSteeringMethod());
return (*sm) (q1, q2);
}
if (!problem_.constraintGraph())
throw std::invalid_argument ("The constraint graph should be set to use the steeringMethod::Graph");
const graph::Graph& graph = *problem_.constraintGraph ();
......
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