libirobot

No replies
tdf11's picture
User offline. Last seen 13 hours 24 min ago. Offline
Joined: 05/01/2009
Posts:
Groups: SIGCOMP, SIGHACK

I took the iRobot Create home over the weekend to make this:

http://gitorious.org/libirobot

libirobot is a C++ library for use with the iRobot Create. It is intended to be run on both a x86 arch and the atmega168 that is on the command module. All that should be needed is a recompile.

But thats in the future. Right now, I have libirobot in a state where the bot can drive around and read all its sensors. No music, scripting, digital outputs, IR sending, or any other kind of output yet. But right now the thing is bumping around under my desk, attached to my desktop via the serial cable.

Here are the 59 lines of code that makes it stumble around like an idiot: http://gitorious.org/libirobot/libirobot/blobs/master/examples/drive/DriveRobot.cpp

Yup, just that many lines of code. Compare that to the 529-line drive.c example that comes on the CD.

If you're interested, go ahead and check out the code. It isn't beautiful, since I was busy writing a 6 page paper at the same time and it really was more of a distraction that kept me from being bored out of my skull.

This student organization is a registered student organization of The University of Akron. Registration shall not be construed as approval, endorsement, or sponsorship by The University of Akron of the student organization's publications, activities, purposes, actions, or positions.