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

Using same data in different states of SMACH Concurrent-container #76

Open
ML-S opened this issue Sep 21, 2020 · 1 comment
Open

Using same data in different states of SMACH Concurrent-container #76

ML-S opened this issue Sep 21, 2020 · 1 comment

Comments

@ML-S
Copy link

ML-S commented Sep 21, 2020

Hey there,
I'm working on a project on which I have concurrent container in which two state machines run concurrently. The states inside those concurrently running state machines need to access and modify the same userdata. A more specific description with code can be found here:
Is there anyway I can use and modify a parent userdata in child-states?

@ML-S
Copy link
Author

ML-S commented Sep 22, 2020

I found a workaround using mutable objects as userdata (see the answer to the stackoverflow-post I referred to in the issue description). Is there maybe a more elegant solution doing this using the userdata-structure?

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

No branches or pull requests

1 participant