RoombaComm

From GICLWiki
Revision as of 15:48, 6 January 2007 by Pwt23 (Talk | contribs)
Jump to: navigation, search

RoombaComm is a Java library created by Tod E. Kurt that allows users to communicate with Roomba through a high-level language (Java). This library is already included in the issued Processing package. The documentary of commands provided in this library are officially available at http://todbot.com/roomba/roombacomm/javadoc/, but a more abreviated (for easier access) and more thorough documentary are included below.

The following page is list of commands that can be sent to your Roomba and a description of how they are used.

Contents

goForward()

goBackward()

spinLeft()

This turns Roomba "degrees" degrees in the left direction.

spinRight(float "degrees")

This turns Roomba "degrees" degrees in the right direction.

updateSensors()

This updates all sensor data from the roomba. This data is used by various methods, such as bumpLeft().

playNote()

bump()

This returns a boolean indicating whether any of the bump sensors have been triggered.

bumpLeft()

This returns a boolean indicating whether the left bump sensor has been triggered.

bumpRight()

This returns a boolean indicating whether the right bump sensor has been triggered.

wall()

This returns a boolean indicating whether the wall sensors detect a wall.

Personal tools