Surveyor Robotics Journal
   



email: support@surveyor.com

Surveyor Corporation home page

Subscribe to a syndicated RSS feed.

Subscribe with Bloglines

Archives
November 2008
October 2008
September 2008
August 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
Februray 2006
January 2006

       
Wed, 02 Apr 2008

Just added a small Lisp interpreter to SRV-1 Blackfin firmware

I have been exploring some alternatives to the C interpreter currently built into the SRV-1 Blackfin firmware as our onboard behavior scripting engine, and came across a very compact LISP interpreter called Lithp, written by Scott Anderson. Tucked into the SRV-1 firmware, the code takes just a bit more the 6 kbytes of program space, and while it hosts only a fairly limited subset of Common Lisp, the code is very clean and easy to extend, and it already has a lot of capability.

The code is described here -

        http://www.umlautllama.com/projects/lithp/

and full documentation is found here -

        http://www.umlautllama.com/projects/lithp/lithp.pdf

The interpreter runs a program that has been transferred to the onboard flash buffer either from flash memory, via XMODEM transfer, or directly entered through the onboard line editor. The 'P' command launches code execution. The SRV-1 firmware has now been split in to separate versions to support either the C interpreter or Lisp interpreter, but not both in the same image. The download link for the test version of firmware is found in this forum thread -

        http://www.surveyor.com/cgi-bin/yabb2/YaBB.pl?num=1207001321

To get this to run, some new memory management functions were added and the processor stack was moved. We are just at the beginning of the testing cycle, so some revisions should be expected. Also, none of the core motor, sensor or vision functions have been linked to Lisp calls, though that should follow shortly. One of the goals is to link Lisp functions to the neural net library now built into the firmware - some interesting possibilities for SRV-1 behavior development should emerge once we figure out how to tie those pieces together.

Posted Wed, 02 Apr 2008 16:02 | HTML Link | see additional stories ...