Skip to content
Snippets Groups Projects
Commit ab205f3a authored by Florent Lamiraux's avatar Florent Lamiraux Committed by Florent Lamiraux florent@laas.fr
Browse files

[steeringMethod::Graph] If q1 == q2, call problem inner steering method.

parent b3dfdcf8
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