RVMI / skiros2

A skill-based platform for ROS v.2
Other
144 stars 19 forks source link

New: "NoSuccess" decorator processor #75

Open matthias-mayr opened 1 year ago

matthias-mayr commented 1 year ago

This decorator can be useful as part of a recovery process that should still produce a failure feedback to the parent.

matthias-mayr commented 1 year ago

If this is merged, it should be mentioned here in the wiki as well.

frovida commented 1 year ago

Nothing against. I would take the chance to give a more clear naming: FailureIsSuccess, and SuccessIsFailure. Borrowed from pytree https://py-trees.readthedocs.io/en/devel/decorators.html . If you have spare time, you could consider to put in a base class to avoid repeat 70% of the code.