py_trees_ros icon indicating copy to clipboard operation
py_trees_ros copied to clipboard

Enhance the subscribers.ToBlackboard behaviour with non-blocking policy

Open GiancarloAllasia opened this issue 1 year ago • 1 comments

I would like to propose to add the functionality to this behavior to decide to return SUCCESS or FAILURE, not only RUNNING, if no data has arrived yet on the subscribed ROS topic. This comes from a problem that I have with a node that manages an image classification algorithm and just publishes on the topic whenever there are objects classified in the current frame. I need my BT to be subscribed to that topic (among others) and put on the BB just the last message, IF ARRIVED. Otherwise, go on checking other topics (with all the other subscribers appended to a sequence control node as seen in tutorials).

GiancarloAllasia avatar Jun 06 '23 08:06 GiancarloAllasia