Skip to content
Snippets Groups Projects
Commit 1ad7da20 authored by Joseph Mirabel's avatar Joseph Mirabel Committed by Joseph Mirabel
Browse files

Check that graph is valid in GraphSteeringMethod::impl_compute

parent c73a1041
No related branches found
No related tags found
No related merge requests found
...@@ -78,6 +78,8 @@ namespace hpp { ...@@ -78,6 +78,8 @@ namespace hpp {
PathPtr_t GraphSteeringMethod::impl_compute (ConfigurationIn_t q1, ConfigurationIn_t q2) const PathPtr_t GraphSteeringMethod::impl_compute (ConfigurationIn_t q1, ConfigurationIn_t q2) const
{ {
graph::Edges_t possibleEdges; graph::Edges_t possibleEdges;
if (!problem_.constraintGraph())
throw std::invalid_argument ("The constraint graph should be set to use the GraphSteeringMethod");
const graph::Graph& graph = *problem_.constraintGraph (); const graph::Graph& graph = *problem_.constraintGraph ();
try { try {
possibleEdges = graph.getEdges possibleEdges = graph.getEdges
......
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