mirror of
https://github.com/moveit/moveit_task_constructor.git
synced 2025-11-04 14:49:57 +08:00
ParallelContainerBasePrivate::propagateStateTo*All*Children
rename method to emphasize that state updates are propagated to all children
This commit is contained in:
parent
986d3c8766
commit
7a04a9f603
@ -233,7 +233,7 @@ protected:
|
|||||||
|
|
||||||
/// callback for new externally received states
|
/// callback for new externally received states
|
||||||
template <typename Interface::Direction>
|
template <typename Interface::Direction>
|
||||||
void propagateStateToChildren(Interface::iterator external, bool updated);
|
void propagateStateToAllChildren(Interface::iterator external, bool updated);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// override for custom behavior on received interface states
|
// override for custom behavior on received interface states
|
||||||
|
|||||||
@ -734,11 +734,11 @@ void ParallelContainerBasePrivate::initializeExternalInterfaces() {
|
|||||||
// States received by the container need to be copied to all children's pull interfaces.
|
// States received by the container need to be copied to all children's pull interfaces.
|
||||||
if (requiredInterface() & READS_START)
|
if (requiredInterface() & READS_START)
|
||||||
starts() = std::make_shared<Interface>([this](Interface::iterator external, bool updated) {
|
starts() = std::make_shared<Interface>([this](Interface::iterator external, bool updated) {
|
||||||
this->propagateStateToChildren<Interface::FORWARD>(external, updated);
|
this->propagateStateToAllChildren<Interface::FORWARD>(external, updated);
|
||||||
});
|
});
|
||||||
if (requiredInterface() & READS_END)
|
if (requiredInterface() & READS_END)
|
||||||
ends() = std::make_shared<Interface>([this](Interface::iterator external, bool updated) {
|
ends() = std::make_shared<Interface>([this](Interface::iterator external, bool updated) {
|
||||||
this->propagateStateToChildren<Interface::BACKWARD>(external, updated);
|
this->propagateStateToAllChildren<Interface::BACKWARD>(external, updated);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -774,7 +774,7 @@ void ParallelContainerBasePrivate::validateConnectivity() const {
|
|||||||
}
|
}
|
||||||
|
|
||||||
template <Interface::Direction dir>
|
template <Interface::Direction dir>
|
||||||
void ParallelContainerBasePrivate::propagateStateToChildren(Interface::iterator external, bool updated) {
|
void ParallelContainerBasePrivate::propagateStateToAllChildren(Interface::iterator external, bool updated) {
|
||||||
for (const Stage::pointer& stage : children())
|
for (const Stage::pointer& stage : children())
|
||||||
copyState<dir>(external, stage->pimpl()->pullInterface(dir), updated);
|
copyState<dir>(external, stage->pimpl()->pullInterface(dir), updated);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user