mirror of
https://github.com/moveit/moveit_task_constructor.git
synced 2025-11-04 14:49:57 +08:00
relax ParallelContainer's validateConnectivity()
This commit is contained in:
parent
bcacda8507
commit
dcf23f6147
@ -802,9 +802,10 @@ void ParallelContainerBase::validateConnectivity() const
|
|||||||
auto impl = pimpl();
|
auto impl = pimpl();
|
||||||
InterfaceFlags my_interface = impl->interfaceFlags();
|
InterfaceFlags my_interface = impl->interfaceFlags();
|
||||||
|
|
||||||
// check that input / output interfaces of all children match my_interface
|
// check that input / output interfaces of all children are handled by my interface
|
||||||
for (const auto& child : pimpl()->children()) {
|
for (const auto& child : pimpl()->children()) {
|
||||||
if (child->pimpl()->interfaceFlags() != my_interface)
|
InterfaceFlags current = child->pimpl()->interfaceFlags();
|
||||||
|
if ((current & my_interface) != current)
|
||||||
errors.push_back(*this, "interface of child '" + child->name() + "' doesn't match mine");
|
errors.push_back(*this, "interface of child '" + child->name() + "' doesn't match mine");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user