flexbe_behavior_engine icon indicating copy to clipboard operation
flexbe_behavior_engine copied to clipboard

Get current behavior after executed first time

Open kanehuang opened this issue 6 years ago • 2 comments

Hello,

I am using behaviors without operator and want to get correct executing behavior to know the current process. The process is launch roslaunch flexbe_onboard behavior_onboard.launch run flexbe_widget be_action_server and flexbe_mirror. It used to be an unstable process to get current behavior and somehow related to flexbe_mirror threading problem which has been fixed by adding threading lock. However, it also introduces another issue that we can get first and only the first behavior. It seems caused by return without releasing the lock. If I released the lock at the end of _mirror_callback function, things look good to me. I can get current behaviors after second time executing. Do you thing that is the cause/fix to this problem?

kanehuang avatar Feb 25 '19 22:02 kanehuang

Thank you for reporting! I am not sure if I understand you correctly, though. Can you add the steps that I would need to execute to reproduce the problem?

If you think you already found a way to fix it, that's great! If you open a pull request, I can check your proposed change.

pschillinger avatar Apr 09 '19 15:04 pschillinger

Any further discussion on this before I close?

dcconner avatar May 17 '23 19:05 dcconner