Can a rosnode have a global state of it's own ?
Hi, I wish to create a statemachine for a rosnode. However I want the state machine to be broken into parts and execute these parts independently. E.g. Initial State of the rosnode is A A Service S1 is called Then tranistion happens A->B. Now the global state of the node is B Then when another service/action is called tranistion happens B->C , with the global state as C, and so on.
So over all my state machine is A->B->C. But the parts A->B, B->C are based on triggers for Services and Actions. And also at a given point, the rosnode has a global state based on these transitions. Can smach help me to get it done ?
Hi @gvdhoorn@knxa !! Sorry to pull you into this question. But as I really had some good comments from you, I thought I'll get you help over here too. What do think about this question ? A ros node can be seen as a controller node with a state. I am trying to get the node state at any moment.