mirror of
https://github.com/moveit/moveit_task_constructor.git
synced 2025-11-04 14:49:57 +08:00
SerialContainer: don't consider failures for solutions
This commit is contained in:
parent
a24039846a
commit
12582f6bbc
@ -312,6 +312,10 @@ void SerialContainer::onNewSolution(const SolutionBase ¤t)
|
||||
const StagePrivate *creator = current.creator();
|
||||
auto& children = impl->children();
|
||||
|
||||
if (current.isFailure()) {
|
||||
return; // don't consider failures
|
||||
}
|
||||
|
||||
// find number of stages before and after creator stage
|
||||
size_t num_before = 0, num_after = 0;
|
||||
for (auto it = children.begin(), end = children.end(); it != end; ++it, ++num_before)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user