ruby-nxt 0.8.0 4
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)
endNow 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
Juju
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.
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...
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.
Excellent... I'm looking forward to seeing the progress of this project!