ros / executive_smach

A procedural python-based task execution framework with ROS integration.
Other
173 stars 141 forks source link

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

Open ML-S opened 4 years ago

ML-S commented 4 years ago

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 commented 4 years ago

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?