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

Event subscriptions: test-and-set required #124

Open
mcamp opened this issue Apr 27, 2016 · 0 comments
Open

Event subscriptions: test-and-set required #124

mcamp opened this issue Apr 27, 2016 · 0 comments

Comments

@mcamp
Copy link
Collaborator

mcamp commented Apr 27, 2016

We should support "event" subscription.
There are data that is sent only once when something happens, like the result of the action lib or the bumper of the turtlebot in simulation.
Now, for this kind of subscriptions, I add on the onentry action of the state where the subscription is needed. The onentry action "reset" the value to nil and I checked everytime is the variable is nil or not. We need something special to not overload the sourcecode with this kind of onentry action.

This onentry actions work well, howevery when we need the specific value of this subscription the program need to check first if the value is nil, then check the actual value. This also should be fixed

@jfabry jfabry changed the title Event subscriptions Event subscriptions: test-and-set required Apr 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant