Closed stonier closed 2 years ago
The reason why the redundancy is unexpected is because the documentation for Behaviour.terminate()
specifies that it should only be called when the behavior finishes execution or was interrupted.
https://py-trees.readthedocs.io/en/devel/modules.html#py_trees.behaviour.Behaviour.terminate
Thanks for the library in general and for fixing this issue in particular (as it is currently bothering me)!
The contributing guidelines say that
If you are interested in seeing your changes make it into a release (sooner rather than later) and distributed on PyPi, PPA or via the ROS ecosystem, please make the request via a comment in your PR or in an issue.
Could you release the current version of py-trees, so this fix gets available on PyPi etc? That would be great!
Can provoke it with this test script:
Output: