Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance the subscribers.ToBlackboard behaviour with non-blocking policy #214

Open
GiancarloAllasia opened this issue Jun 6, 2023 · 1 comment

Comments

@GiancarloAllasia
Copy link

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).

@sorawit112
Copy link

I think the easy way is add decorator RunningIsFailure as Parent of Subscriber

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants