You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi everybody and many thanks for this development, it is really impressive and very useful.
I currently use ChaiScript to allow to program/control robots in live on the c++ application (image below).
My problem is that I don't find a solution to interrupt a script at any time, without success, I have checked :
Maybe I miss something and I'm sorry if it is the case.
As I drive several real robots, I need to stop all running scripts too. It is more safe and I don't want to kill the thread where the script runs because the behavior can change according to the operating system.
I saw that the function Boxed_Value eval(const chaiscript::detail::Dispatch_State &t_e) const final (close to the line 136 of the file chaiscript_eval.hpp) seams to be called for each interpreting step. I can add something here to interrupt or maybe it is a bad idea.
So, do you have some advises, ideas or solutions to do that ?
Thank you very much.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everybody and many thanks for this development, it is really impressive and very useful.
I currently use ChaiScript to allow to program/control robots in live on the c++ application (image below).
My problem is that I don't find a solution to interrupt a script at any time, without success, I have checked :
Maybe I miss something and I'm sorry if it is the case.
As I drive several real robots, I need to stop all running scripts too. It is more safe and I don't want to kill the thread where the script runs because the behavior can change according to the operating system.
I saw that the function
Boxed_Value eval(const chaiscript::detail::Dispatch_State &t_e) const final
(close to the line 136 of the file chaiscript_eval.hpp) seams to be called for each interpreting step. I can add something here to interrupt or maybe it is a bad idea.So, do you have some advises, ideas or solutions to do that ?
Thank you very much.
The image of the robots software :

Beta Was this translation helpful? Give feedback.
All reactions