ruby-nxt 0.8.0 4

Posted by Tony Buser Thu, 28 Sep 2006 02:53:00 GMT

We've made quite a lot of progress on ruby-nxt. The new version is a pretty complete implementation of the NXT direct command set. Almost everything is pretty well documented now, too. One of the more interesting things I've been working on is a high level api based on the "blocks" in NXT-G. So if you're familiar with the way NXT-G works, you should be able to pick it up pretty easily with code such as:

t = Commands::TouchSensor.new(@nxt)
t.port = 1
t.action = :pressed

while t.logic == false
  puts "Hold down the button..."
  sleep(0.5)
end

Now that it's pretty complete and usable, I think I'll finally get around to making a Ruby on Rails plugin, which was the original reason I started all this! :)

Trackbacks

Use the following link to trackback from your own site:
http://juju.org/articles/trackback/487

Comments

Leave a response, Track co.mments

  1. Avatar
    Jeff Thu, 05 Oct 2006 13:33:50 GMT

    Sounds cool! I've just ordered the Carnagie robotics curriculum for use in my classroom and plan to try re-implementing the lessons in ruby using ruby-nxt.

  2. Avatar
    Jake Good Tue, 10 Oct 2006 05:53:39 GMT

    Any reason why this isn't available via gem yet? I see the gemspec but I can't get it to find it from rubyforge.

    Great work btw! I plan on doing something with it soon...

  3. Avatar
    Tony Tue, 10 Oct 2006 12:34:46 GMT

    Thanks! The gem will probably be available in the next release. I was hoping the author of ruby-serialport would package his module into a gem so that our gem could install everything with one command, but it looks like that won't be happening anytime soon. So you'll still have to manually download and install ruby-serialport. I'm also in contact with someone working on a native bluetooth module, but not sure when that will be complete either.

  4. Avatar
    Jake Good Tue, 10 Oct 2006 18:11:38 GMT

    Excellent... I'm looking forward to seeing the progress of this project!

Comments