문제

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.

도움이 되었습니까?

해결책

Have a look at this - it should contain everything you need

http://www.ros.org/wiki/ROS/Tutorials/WritingPublisherSubscriber(c%2B%2B)

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top