Reply To: FSM Send Event with Multiple parameters

NodeCanvas Forums General Discussion FSM Send Event with Multiple parameters Reply To: FSM Send Event with Multiple parameters

#10964
Gavalakis
Keymaster

Hey,

You can do something like this using the generic versions of SendEvent and CheckEvent tasks. The generic (T) versions of all tasks are able to work with any type of parameter, but right now only one parameter is possible. For example:

In FSM A, use the SendEvent(T) and override the Self parameter to reference the target FSM B.
In FSM B you can use the CheckEvent(T) of the same type, to catch the event and store the T data send to a blackboard variable.
You can then repeat the process from FSM B to FSM A if you want.

For your convenince, here is what I mean by overriding the Self parameter:
Override Self Parameter

Please let me know if you need any clarification on the above and of course if this works for you, or you have any alternative workflow to suggest? 🙂

Thanks!

Join us on Discord: https://discord.gg/97q2Rjh