Thumbnail

Script

How to add the Script robot skill

  1. Load the most recent release of ARC (Get ARC).
  2. Press the Project tab from the top menu bar in ARC.
  3. Press Add Robot Skill from the button ribbon bar in ARC.
  4. Choose the Scripting category tab.
  5. Press the Script icon to add the robot skill to your project.

Don't have a robot yet?

Follow the Getting Started Guide to build a robot and use the Script robot skill.

How to use the Script robot skill

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:


Main Window


1. Start/Stop Button
Executes the script that is written in this skill.

2. Status Display
Displays the status according to the script written in this skill.

Settings - Blockly


1. Title Field
This field contains the title of the Script skill. You can change it if you'd like. *Note: Changing the title will also change the title in the controlCommand() associated with this skill.

2. Roboscratch Module Checkbox
Check this box if you'd like to use this script as a module for Roboscratch.

3. Start/Stop Button
Executes/Stops the Blockly script that is written in the worksheet.

4. Clear Sketch Button
Clears the worksheet.

5. Create Variable Button
Press this button to create a new variable accessible under the variable block section.

6. Load Worksheet Button
Loads a previously developed Blockly worksheet.

7. Save Worksheet Button
Save the current Blockly worksheet.

8. Camera Preview
Displays the configured camera output.

9. Block selection area
Select the program blocks from this section.

10. Status Display
Displays the status according to the script written in this skill.

11. Blockly Worksheet
This is the area where you build your Blockly script.

Settings - Javascript


1. Name Field
Enter the name of the scripting skill.

2. Roboscratch Module Checkbox
Check this box if you'd like to use this script as a module for Roboscratch.

3. Font Smaller/Larger Buttons
Decreases/Increases the font in the script editor.

4. Enable Intellisense Checkbox
Check this box if you would like programming shortcuts to appear while scripting.

5. Script Editor
This is where you write your Javascript.

6. Run Button
Executes your script in the script editor before saving. This allows you to test your script before moving forward.

Settings - EZ-Script


1. Name Field
Enter the name of the scripting skill.

2. Roboscratch Module Checkbox
Check this box if you'd like to use this script as a module for Roboscratch.

3. Format Button
Press this button to format your script automatically.

4. Font Smaller/Larger Buttons
Decreases/Increases the font in the script editor.

5. Enable Intellisense Checkbox
Check this box if you would like programming shortcuts to appear while scripting.

6. Script Editor
This is where you write your script.

7. Run Button
Executes your script in the script editor before saving. This allows you to test your script before moving forward.

Settings - Python



1. Name Field
Enter the name of the scripting skill.

2. Roboscratch Module Checkbox
Check this box if you'd like to use this script as a module for Roboscratch.

3. Font Smaller/Larger Buttons
Decreases/Increases the font in the script editor.

4. Enable Intellisense Checkbox
Check this box if you would like programming shortcuts to appear while scripting.

5. Script Editor
This is where you write your Python script.

6. Run Button
Executes your script in the script editor before saving. This allows you to test your script before moving forward.

How to Use Script Skill

1) Add the Script skill to your ARC project (Project -> Add Skill -> Scripting -> Script).

2) Go into the skill settings, write a script in your chosen language, and save.

3) Press the Start button in the skill's main window to execute the script.

Related Tutorials

Related Hack Events

Related Questions


ARC Pro

Upgrade to ARC Pro

Unleash your creativity with the power of easy robot programming using Synthiam ARC Pro