splintered-reality / py_trees

Python implementation of behaviour trees.
Other
433 stars 143 forks source link

[common] a practically usable inf #366

Closed stonier closed 1 year ago

stonier commented 1 year ago

An upper bound to represent blocking may as well be an actual float, which can then be used in implementations without it tripping up, e.g. validators that don't know how to handle an inf value.

This could be backported to earlier versions if desired, sys.float_info.max seems to have been around for at least all of python 3.

stonier commented 1 year ago

Will resolve https://github.com/splintered-reality/py_trees_ros/issues/184.