I am currently developing a GUI using QT that changes based on an XML string it receives from a ROS message being sent from another QT GUI. This is working fine however I need to create a node using ROS and SMACH that will send different XML strings to the GUI based on what state the SMACH state machine is in.
I have no experience with SMACH and have been unable to find a good example of how to integrate a ROS Publisher and Subscriber with a SMACH state machine.
Any examples or help would be greatly appreciated.