| Path: | README |
| Last Update: | Tue Sep 26 18:20:24 EDT 2006 |
The ruby-nxt library lets you control the LEGO Mindstorms NXT robotics kit via Bluetooth using the Ruby language.
There are three interfaces:
ruby-nxt requires the ruby-serialport library which you must manually download and install from: rubyforge.org/projects/ruby-serialport
Most of the ruby-nxt library is well documented with example code. In particular, see NXT if you prefer high-level programming or NXTComm if you need access to low-level direct commands.
Additionally, the examples directory in the ruby-nxt distribution contains examples of some of the library’s functionality. nxt_remote_control.rb in particular provides a basic graphical (Tk) interface for controlling and monitoring the NXT.
The tests directory contains automated unit tests for testing the core NXT protocol (nxt_comm_test.rb) and and the motors (nxt_comm_test.rb), as well as an interactive test suite (test_sensor.rb) for testing the functionality of all of the sensors. It is recommended that you run all of these tests before attempting to use the ruby-nxt library in order to ensure that your NXT is behaving as expected.
To run the tests, be sure that all three motors and sensors are plugged in to the standard ports. The motors should not have any LEGO pieces attached.
The ruby-nxt project is hosted on RubyForge under rubyforge.org/projects/ruby-nxt. If you have code that you would like to contribute, please contact one of the project admins via RubyForge so that we can grant you access to the subversion repository.
Read-only access to the repository is available anonymously at svn://rubyforge.org/var/svn/ruby-nxt/trunk/ruby