From 7a04a9f6037eeac40170558ec68aa094fa8c69c3 Mon Sep 17 00:00:00 2001 From: Robert Haschke Date: Wed, 5 Jan 2022 14:06:55 +0100 Subject: [PATCH] ParallelContainerBasePrivate::propagateStateTo*All*Children rename method to emphasize that state updates are propagated to all children --- core/include/moveit/task_constructor/container_p.h | 2 +- core/src/container.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core/include/moveit/task_constructor/container_p.h b/core/include/moveit/task_constructor/container_p.h index a2265ec9..c61195cf 100644 --- a/core/include/moveit/task_constructor/container_p.h +++ b/core/include/moveit/task_constructor/container_p.h @@ -233,7 +233,7 @@ protected: /// callback for new externally received states template - void propagateStateToChildren(Interface::iterator external, bool updated); + void propagateStateToAllChildren(Interface::iterator external, bool updated); private: // override for custom behavior on received interface states diff --git a/core/src/container.cpp b/core/src/container.cpp index 4f4eb7e1..54c10508 100644 --- a/core/src/container.cpp +++ b/core/src/container.cpp @@ -734,11 +734,11 @@ void ParallelContainerBasePrivate::initializeExternalInterfaces() { // States received by the container need to be copied to all children's pull interfaces. if (requiredInterface() & READS_START) starts() = std::make_shared([this](Interface::iterator external, bool updated) { - this->propagateStateToChildren(external, updated); + this->propagateStateToAllChildren(external, updated); }); if (requiredInterface() & READS_END) ends() = std::make_shared([this](Interface::iterator external, bool updated) { - this->propagateStateToChildren(external, updated); + this->propagateStateToAllChildren(external, updated); }); } @@ -774,7 +774,7 @@ void ParallelContainerBasePrivate::validateConnectivity() const { } template -void ParallelContainerBasePrivate::propagateStateToChildren(Interface::iterator external, bool updated) { +void ParallelContainerBasePrivate::propagateStateToAllChildren(Interface::iterator external, bool updated) { for (const Stage::pointer& stage : children()) copyState(external, stage->pimpl()->pullInterface(dir), updated); }