splintered-reality / py_trees

Python implementation of behaviour trees.
Other
415 stars 139 forks source link

[behaviours] Add ProbabilisticBehaviour(Behaviour) class #411

Closed gitpushoriginmaster closed 1 year ago

gitpushoriginmaster commented 1 year ago

This behaviour will return a status based on a probability distribution, if unspecified - a uniform distribution will be used.

gitpushoriginmaster commented 1 year ago

@stonier , I see that sphinx buikd returns "py_trees/behaviours.py:docstring of py_trees.behaviours.BlackboardToStatus:1: WARNING: Field list ends without a blank line; unexpected unindent.". Since I did not change that class, would you be able to take a look and see why a warning is raised there? I think docstring looks ok...

stonier commented 1 year ago

That's odd .... #413 passed without fails (today). Investigating.

stonier commented 1 year ago

ufmt picked up a few formatting fixes too.

Running poetry tox -e format or just ufmt py_trees (from the root of the project) should catch them for you.