View Single Post
  #2   Spotlight this post!  
Unread 23-10-2012, 16:52
Hjelstrom's Avatar
Hjelstrom Hjelstrom is offline
Mentor
FRC #0987 (High Rollers)
Team Role: Mentor
 
Join Date: Mar 2008
Rookie Year: 2005
Location: Las Vegas
Posts: 146
Hjelstrom has a reputation beyond reputeHjelstrom has a reputation beyond reputeHjelstrom has a reputation beyond reputeHjelstrom has a reputation beyond reputeHjelstrom has a reputation beyond reputeHjelstrom has a reputation beyond reputeHjelstrom has a reputation beyond reputeHjelstrom has a reputation beyond reputeHjelstrom has a reputation beyond reputeHjelstrom has a reputation beyond reputeHjelstrom has a reputation beyond repute
Re: Autonomous scripting language

Very nice! We have been thinking about something similar for C++. The compile-download cycle is a real limitation when you're tweaking a complicated autonomous routine.

Quote:
Originally Posted by joelg236 View Post
As a side project, I have written a full scripting language for making autonomous modes based on a script instead of redeploying code. If you're interesting in seeing, the github repo is available here -> https://github.com/joelg236/ScriptReader/

To use it, either pull the repo or download as a zip file, and with netbeans, open the folder that contains the files as a Java project.

The ScriptReader file in src/org/reader/ScriptReader.java contains a static runScript(String) method, and you can use that to run a script. There is a main method that runs a file from the arguments run with. Use whatever you'd like.

There is a zip file that contains script examples and the jar file here -> https://github.com/joelg236/ScriptReader/downloads

Any questions, recommendations and interesting implementation possibilities are welcome. And of course, bugs.

Thanks,
Joel