flexbe_behavior_engine icon indicating copy to clipboard operation
flexbe_behavior_engine copied to clipboard

feature request: restart engine

Open machinekoder opened this issue 5 years ago • 2 comments

It would be very useful to be able to restart the onboard engine for testing new code. Reloading Python modules at runtime is tricky and doesn't work most of the time. The patch here implements this feature: https://github.com/machinekoder/flexbe_behavior_engine/tree/feature/restart and here a button for the GUI: https://github.com/machinekoder/flexbe_app/tree/feature/restart

machinekoder avatar Apr 09 '20 10:04 machinekoder

Thanks for the suggestion! However, restarting the process as in the suggested commit appears a bit harsh to me. How about this new commit, would this address the issue of reloading modules for you? If not, what would be missing?

pschillinger avatar Apr 17 '20 11:04 pschillinger

Can I modify the states and test in the Flexbe App immediately without relaunch everything? So far with the Flexbe engine and app started, if I changed some python code of states, then execute behavior in Flexbe App, it still runs old state, unless I restart the behavior engine.

smartsgic avatar Jan 29 '21 05:01 smartsgic