mirror of
https://github.com/moveit/moveit_task_constructor.git
synced 2025-11-04 14:49:57 +08:00
implement ParallelContainer's pruneInterface()
This commit is contained in:
parent
0dc4f5c53e
commit
bcacda8507
@ -731,7 +731,11 @@ InterfaceFlags ParallelContainerBasePrivate::requiredInterface() const
|
|||||||
|
|
||||||
void ParallelContainerBasePrivate::pruneInterface(InterfaceFlags accepted)
|
void ParallelContainerBasePrivate::pruneInterface(InterfaceFlags accepted)
|
||||||
{
|
{
|
||||||
// TODO: forward pruning to all children with UNKNOWN required interface
|
// forward pruning to all children with UNKNOWN required interface
|
||||||
|
for (const Stage::pointer& stage : children()) {
|
||||||
|
if (stage->pimpl()->requiredInterface() == UNKNOWN)
|
||||||
|
stage->pimpl()->pruneInterface(accepted);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void ParallelContainerBasePrivate::onNewExternalState(Interface::Direction dir, Interface::iterator external, bool updated) {
|
void ParallelContainerBasePrivate::onNewExternalState(Interface::Direction dir, Interface::iterator external, bool updated) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user