smach states based on topic messages
Hi,
for my project i started to create a SMACH state machine. The state transitions should be based on results from actionservers and their responses and mainly on the data received on one specific topic which contains commands from speech recognition. The only way i found from tutorials and entries on answers.ros.org is to implement a subscriber in every state of my state machine and work with the data from within this state. As this would produce a lot of duplicate code i would like to know if there is any way to avoid this and handle the incoming data in one place only from which the states can use the data and act accordingly.
Thanks
I'm facing the same problem. Did you ever figure out a good solution?