Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix is_running behaviour in case of exception in the state #50

Merged
merged 1 commit into from
Jun 13, 2023

Conversation

okalachev
Copy link

As I mentioned in #47, StateMachine.is_running() returns True even if user's state has terminated with an exception.

I fixed this for StateMachine and Sequence containers.

However, I did not fix it for Iterator and Concurrence containers as:

  1. Iterator and Concurrence lack is_running method (only _is_running field exists).
  2. Iterator is not unit tested at all yet.

@okalachev okalachev changed the title Fix is_running behaviour in case of exception in a state Fix is_running behaviour in case of exception in the state Oct 1, 2017
@130s
Copy link
Member

130s commented Jun 13, 2023

Thank you for contribution.
I have not tested nor thoroughly reviewed but brief look the goal you describe seems achieved.

Merging and will depend on the community to further test.

@130s 130s merged commit 92cff5d into ros:indigo-devel Jun 13, 2023
130s added a commit to 130s/executive_smach that referenced this pull request Jun 13, 2023
Fix is_running behaviour in case of exception in the state
@130s 130s mentioned this pull request Jun 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants