mirror of
https://github.com/moveit/moveit_task_constructor.git
synced 2025-11-04 14:49:57 +08:00
fix SerialContainer::canCompute()
This commit is contained in:
parent
d731e943f1
commit
159beeb044
@ -614,7 +614,12 @@ void SerialContainer::validateConnectivity() const
|
||||
|
||||
bool SerialContainer::canCompute() const
|
||||
{
|
||||
return !pimpl()->children().empty();
|
||||
size_t num_finished = 0;
|
||||
for(const auto& stage : pimpl()->children()) {
|
||||
if (!stage->pimpl()->canCompute())
|
||||
++num_finished;
|
||||
}
|
||||
return num_finished < pimpl()->children().size();
|
||||
}
|
||||
|
||||
bool SerialContainer::compute()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user