Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Script interruption on demand #617

Unanswered
Gehogor asked this question in Q&A
Discussion options

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 :
Robin-studio (Personnalisé)

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
🙏
Q&A
Labels
None yet
1 participant
Morty Proxy This is a proxified and sanitized view of the page, visit original site.