mirror of
https://github.com/moveit/moveit_task_constructor.git
synced 2025-11-04 14:49:57 +08:00
Improve readability
This commit is contained in:
parent
b2c116edab
commit
7af3d8ebd7
@ -260,7 +260,7 @@ void ContainerBasePrivate::copyState(Interface::iterator external, const Interfa
|
|||||||
auto internals{ externalToInternalMap().equal_range(&*external) };
|
auto internals{ externalToInternalMap().equal_range(&*external) };
|
||||||
for (auto& i = internals.first; i != internals.second; ++i) {
|
for (auto& i = internals.first; i != internals.second; ++i) {
|
||||||
// TODO: Not only update status, but full priority!
|
// TODO: Not only update status, but full priority!
|
||||||
setStatus<dir>(i->second, external->priority().status());
|
setStatus<dir>(i->get<INTERNAL>(), external->priority().status());
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -690,9 +690,8 @@ bool SerialContainer::canCompute() const {
|
|||||||
|
|
||||||
void SerialContainer::compute() {
|
void SerialContainer::compute() {
|
||||||
for (const auto& stage : pimpl()->children()) {
|
for (const auto& stage : pimpl()->children()) {
|
||||||
if (!stage->pimpl()->canCompute())
|
if (stage->pimpl()->canCompute())
|
||||||
continue;
|
stage->pimpl()->runCompute();
|
||||||
stage->pimpl()->runCompute();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user