ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Concurrent smach state where if one side finishes the other must stop and finish aswell

asked 2021-07-14 05:37:20 -0500

Saphira7544 gravatar image

I'm implementing a state machine using smach, and my point in this particular part is to have a state that is continuously checking if my UAV can visualize the marker by implementing a MonitorState, and another concurrent state that is meant to draw the UAV towards that marker. However, if it cannot detect the marker, the Monitor State finished, but it gets stuck waiting for the other state to end. Is there any way that when the MonitorState ends, the concurrent state ends aswell? I was thinking Petri Net wise, as in, when the transition is triggered, they must both transition.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2021-07-14 06:13:32 -0500

Saphira7544 gravatar image

It appears I hadn't searched enough, found the answer here:

edit flag offensive delete link more

Question Tools


Asked: 2021-07-14 05:37:20 -0500

Seen: 60 times

Last updated: Jul 14 '21