Script Robot Skills

The Scripting category in Synthiam ARC empowers users to create custom scripts and behaviors for robots. It includes scripting languages and tools that allow users to define complex and customized robot actions, expanding the flexibility and capabilities of robotic systems. Here are the manuals for JavaScript, Python, EZ-Script, Blockly, and RoboScratch.

Nearly all robot skills can execute a script. However, there are robot skills specific to scripting. These scripting robot skills allow you to run programs or customize features, such as creating a custom movement panel.


This skill gives you a console directly to the EZ-Script engine. You can execute commands in real-time. A history of your commands is saved and can be recalled using the UP and DOWN arrow keys. <br /><br /> <h2>Main Window</h2><br> <center><img src="/uploads/imagesrc/ScriptConsolemain-num-637400190411109506.png" alt="" /></center><br> <b>1. Clear Button</b><br> This button clears the console display....


This skill adds a new ez-script function GetLineContainingFromArray() that will return an item from the array that <em>contains</em> the specified text.  <h2>Main Window</h2> <a href="/uploads/user/F894A22A79D8EE11B554FCE4A5AA349F/iesmamuv.PNG" target=_blank><img class="img-fluid pt-1 pb-1" src="/uploads/user/F894A22A79D8EE11B554FCE4A5AA349F/iesmamuv.PNG" alt="User-inserted image"></a> <strong>1. Start...


<p> This skill allows you to trigger scripts based on the robots movement. It is best to understand what a movement panel is by reading <a href="https://synthiam.com/Support/ARC-Overview/movement-panels">this support document</a> first. </p> <p> For example, all "Movements" are global. So if you use a Movement Panel of any kind, this skill will execute the script for the movement direction that was activated, such as if you have a Modified Servo...


This skill will execute a script when a variable has changed. Add the variable to watch, and a respective script. When the variable has changed, the script will run. <h2>Main Window</h2> <div class="text-center"><a href="/uploads/user/F894A22A79D8EE11B554FCE4A5AA349F/3bbc0a3m.png" target=_blank><img class="img-fluid pt-1 pb-1" src="/uploads/user/F894A22A79D8EE11B554FCE4A5AA349F/3bbc0a3m.png" alt="User-inserted...


This control uses a random-like algorithm to add a unique personality to your robot. By adding script commands to the Config section, the commands will be executed within the specified High/Low timeframe (in seconds).<br /> <br /> This control can run in the background while your robot operates. The control will add unique actions that you create. For example, add script commands such as: <br /> - left(1000) <br /> - right(1000) <br /> - SetServo(d1, 20) <br...


This skill is a mimic tool. You perform specific actions while the skill records communication between the EZB and your PC (movement, servo positions, digital set, etc.). It then allows you to play those actions back on demand. You can save many recordings and trigger them from scripts. To create multiple recordings, add, and rename several instances of the Recorder skill. <br /><Br /> <b>*Note:</b> This skill isnt a macro recorder. It doesnt record your actions across...


The script skill is very versatile; it can interact with most ARC skills. It is also very intuitive, as it contains multiple detailed manuals for assistance with programming in its settings menu. The Script skill currently includes the following languages to program in: <br><br> <ul> <li><a href="https://synthiam.com/Docs/Programming/Block/Blockly">Blockly</a></li> <li><a...


This control holds many scripts. Rather than having one control per script, this contains many.<br /> <Br /> Like the regular Script control, you can execute scripts within the Script Manager using the ControlCommand(). Here is an example that will execute a script within the Script Manager named MyScript.<br /> <Br /> <i>ControlCommand("Script Manager", ScriptStart, "MyScript")</i><br /> <br /> To view all available...


This is a diagnosing tool to identify scripts that are running. Many skills have script events that are triggered based on activity. For example, a Wii Skill will execute a script when a button is pressed. Because these scripts are executed in the background, this skill lets you monitor the activity. <Br /><Br /> If your script has a loop, it may run extra long. Using this monitor; you can see which scripts continue to run. <br /><br /> <h2>Main...


Bind a script to servo position movements. This allows you to create scripts that run each time a servo is moved. A good use case for this is to control a smart serial-style servo as a real servo by binding to a specific servo port. If you had a servo that worked via Serial UART and wanted it to operate as a regular ARC servo, you could write code here to bind to it.  The alternative method would be creating your behavior control that binds to the servo movement event. This is covered in the...


There are so many ways to present visual feedback with this skill. The Sketch Pad allows you to draw with controlCommand() from a script. You can create scripts that draw object locations in a room or display information from the path the robot has driven. You can also display custom face emotions using simple graphic shapes of circles, squares, and rectangles. Use your creativity to visualize robot data! <br><br> <b>*Note:</b> For usage information, reference ARCs...


This skill operates similarly to the Servo Slide controls but adjusts the specified variable with a slider. You can also specify a script to execute when the slider value has been reached. <br><br> <h2>Main Window</h2><br> <center><img src="/uploads/imagesrc/ScriptSlidermain-num-637406263915720157.png" alt="" /></center><br> <b>1. Slider</b><br> Press and hold the left mouse button in this area to adjust...


This is a smarter variable watcher that replaces the standard built-in version. This version uses less CPU for large projects. When large arrays are defined, it may take a long time for the grid to render the data. However, once rendered, the data will update much faster than the ARC built-in variable watcher.  <a href="/uploads/user/DB763BE15E695777689418BE7364E0A3/re0lztzm.png" target=_blank><img class="img-fluid pt-1 pb-1"...


This has been replaced with the Sound Script robot skill: https://synthiam.com/Support/Skills/Audio/Speech-Script?id=20204


Split complex tasks into several simple scripts. Each Script is a stage of completing a task, executed one after another. A large, seemingly overwhelming task will be transformed into a set of smaller, more manageable microtasks that can each be accomplished independently. For example, you can use this to have your robot navigate into a room, look for an item, move toward the object, pick up the article, and return to another point. Each task step is split into stages with a script for each...


Add custom ez-script functions in c# using this example. The source code is available here: <a href="/uploads/user/DB763BE15E695777689418BE7364E0A3/UserDefinedFunctionExample-636138069159498260.zip" rel="nofollow">UserDefinedFunctionExample.zip</a> Additional tutorial information can be found here: https://synthiam.com/Support/Create-Robot-Skill/Examples/Example-Custom-EZ-Script-Function Optionally, you can create custom JavaScript functions with these...


The Variable State Server skill allows a robot to retain important variable data between sessions, enhancing its ability to remember past interactions or states, thus providing users with a more consistent and personalized experience. By enabling automatic or manual saving and loading of variable states, this skill ensures that a robot can quickly restore its operational context upon startup, making it more efficient and adaptable to ongoing tasks and user preferences. If you have some variables...


This skill views the known script variables and their respective values. Variable Watch automatically refreshes to show variable values. This is a great skill for debugging your programs and viewing the variable data. <br /><br /> <b>*Note:</b> It is advised to run the <a href="/Support/Skills/Scripting/Smart-Variable-Watcher?id=20379">Smart Variable Watcher</a> robot skill instead of this. This skill may cause performance challenges with your...