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