NMS Faux Odometry icon NMS Faux Odometry Estimate pose odometry from movement distance for robots without encoders, calibrated by speed. Suited for DIY navigation; pose drifts with lidar. Try it →
Asked — Edited

Running Multiple Scripts

i have a script for jaw movement and a script for the say wait movement only one script can run at a time. in other words either the servo jaw runs or the voice comes out not both, how do you fix this


ARC Pro

Upgrade to ARC Pro

ARC Pro is more than a tool; it's a creative playground for robot enthusiasts, where you can turn your wildest ideas into reality.

Author Avatar
United Kingdom
LinkedIn Twitter Google+ YouTube
#1  

Why can only one script be run at a time? You can run a lot of scripts at the same time. You can also have one script start, stop or pause another script with control commands.

You will want to use a ControlCommand in the script with the saywait() command which will start the jaw script, the jaw script should be looping so it's always moving while talking and then once the talking is finished use another ControlCommand to stop the jaw moving.

Something like this... ("Script" is the name of the script you want to start and stop)

ControlCommand("Script", ScriptStart)
SayWait("This is some jibber jabber")
ControlCommand("Script", ScriptStop)
#2  

@Frank.... try and post your "scripts" to allow further inspection!:)