ARC Pro

Upgrade to ARC Pro

Discover the limitless potential of robot programming with Synthiam ARC Pro – where innovation and creativity meet seamlessly.

#1  

You can set variables (which are global)


$variablename = "This Value"

and then call other scripts as needed.


ControlCommand("OtherScriptNameHere", ScriptStart)

#3  

Can One Script do every thing, meaning, from Ping to moving the wheels on the robot, all on one script ?

#4  

Sure. I wouldn't do it that way, but it could be done that way.

The reason I said that I wouldn't is that you loose the multi-threading that is possible with multiple scripts. Each control runs in its own thread (a script being a control). There will be a lot of things going on with navigation that would probably be best done in parallel. Because of this, I would break it out to multiple scripts.

Also, it is a good practice to get into to compartmentalize your code. By this, I mean to do one thing, test it, make sure it works great, then start another script to do another thing. This lets you then have a master type script that calls all of these tested components.

#6  

Ok, Thank you very much for the information, I will follow your suggestions.