View Single Post
  #27   Spotlight this post!  
Unread 13-06-2010, 22:34
apalrd's Avatar
apalrd apalrd is offline
More Torque!
AKA: Andrew Palardy (Most people call me Palardy)
VRC #3333
Team Role: College Student
 
Join Date: Mar 2009
Rookie Year: 2009
Location: Auburn Hills, MI
Posts: 1,347
apalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond repute
Re: Using A Scripting Language To Script Robot Behaviour

1. I was not intending to writing raw XML. I was intending to write another program to write the XML files based on a map of waypoints and data. In a pinch, you could edit the raw XML files. Also, the authoring program could simulate the expressions that would be run through the scripting engine, with user-set variables and such to determine the expected result and error state.

2. If you had an autonomous editor, you could punch in coordinates of each waypoint and it would generate the XML file, and you could then go to each waypoint and set the states of mechanisms, scripts to be evaluated for values, check the results of the scripts given simulated data, check for errors, etc.

3. On error, you could revert to a alt. value, so the line that determined speed could look like this:
Code:
<speed script=1 alt=12>= 14 - ( (35 - nav_d__remain) * elev_error * .1 )</speed>
__________________
Kettering University - Computer Engineering
Kettering Motorsports
Williams International - Commercial Engines - Controls and Accessories
FRC 33 - The Killer Bees - 2009-2012 Student, 2013-2014 Advisor
VEX IQ 3333 - The Bumble Bees - 2014+ Mentor

"Sometimes, the elegant implementation is a function. Not a method. Not a class. Not a framework. Just a function." ~ John Carmack