A driver for the iRobot Create, written in Clojure. Not complete, by any means.
C Clojure
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README
create.clj
serialdaemon.c

README

Programming an iRobot Create driver in Clojure is a horrible idea.

    gcc serialdaemon.c -o sd
    ./sd -serial /dev/cu.KeySerial1 -port [someport] -baud 57600

    clj
    user=> (load-file "create.clj")
    user=> (def bot (ref (create/init [someport])))
    user=> (create/update-sensors! bot)
	
	;; note the ugly dereference here
    user=> (create/go @bot 10)
    user=> (create/go @bot)
    user=> (create/go @bot 10 10)
    ...

bang bang, clap clap