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 {
bool success = true;
States_t states = graph->stateSelector()->getStates();
for (States_t::const_iterator _state = states.begin();
_state != states.end(); ++_state) {
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;
}
for (std::size_t i = 1; i < graph->nbComponents(); ++i)
if (!validate(graph->get(i).lock())) success = false;
return success;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment