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

Fix graph::Validate::validateGraph

parent cb974797
No related branches found
No related tags found
No related merge requests found
...@@ -147,16 +147,8 @@ namespace hpp { ...@@ -147,16 +147,8 @@ namespace hpp {
bool success = true; bool success = true;
States_t states = graph->stateSelector()->getStates(); States_t states = graph->stateSelector()->getStates();
for (States_t::const_iterator _state = states.begin(); for (std::size_t i = 1; i < graph->nbComponents(); ++i)
_state != states.end(); ++_state) { if (!validate(graph->get(i).lock())) success = false;
if (!validateState(*_state)) success = false;
}
states = graph->stateSelector()->getWaypointStates();
for (States_t::const_iterator _state = states.begin();
_state != states.end(); ++_state) {
if (!validateState(*_state)) success = false;
}
return success; return success;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment