8 ms·
Artoo: Ruby on Robots
- cwyers 12y agoIf Lucasfilm sued Verizon over a word so innocuous as "Droid," I expect this to get slapped with a trademark suit at some point.
- JamesSwift 12y agoThe idealist in me would like to think that this industry would allow a playful homage.
- cbd1984 12y agoThe problem is, it isn't easy to distinguish between "playful homage" and someone cynically trading on your goodwill with products designed to trick customers. Especially if you have to convince a court to stop that company from doing something which seems identical to what you've already allowed three other companies to do. These things are always so easy to see, so obvious, when you're one person; the moment you have to convince others, things so obvious as to not require elaboration become serious points of contention.
- riffraff 12y agowell but there is a difference between a free project run by unknown people and a for-pay product run by a huge multinational product. E.g. there has been a C3PO project in java for more than a decade.
- quesera 12y agoLucasfilm is Disney now, right? I don't think Disney would know a "playful homage" if they read it in a book of traditional fairy tales.
- buf 12y agoI think this is excellent for application developers looking to quickly make a proof of concept with hardware. Well done.
- trishume 12y agoThis is cool, but "on Robots" is a bit dishonest. Really it can only control robots, the "robot" has to have some exposed interface for a computer to control it, like the Firmata firmware for Arduino. I forgive them though because they probably just call it "Ruby on Robots" for the parallel pun to "Ruby on Rails" rather than to make people think it actually runs on the robots.
- andrewstewart 12y agoArtoo actually can directly run on single-board Linux computers, such as the Beaglebone Black[1] or Raspberry Pi[2]. Running on such a device, it can in fact control other supported platforms connected to it, such as the Leap Motion or Sphero (with addon hardware as applicable). For simpler stuff like the Arduino (or other micro-controllers), however, Artoo needs to run on a beefier host platform and connect to the device remotely. [1]: http://beagleboard.org/black http://beagleboard.org/black [2]: http://www.raspberrypi.org http://www.raspberrypi.org
- mathgeek 12y agoJust because it doesn't run on the basic Arduino boards doesn't mean it can't run on other chipsets. It runs just fine on Beaglebone, Raspberry Pi, newer Arduinos, and Intels. Essentially, don't confuse the general robot with the highly specialized Arduino.
- deeviant 12y agoWhat would be the advantage of Artoo vs something like ROS? ROS has some pretty significant infrastructure laid down, and has bindings for C and python. It probably wouldn't even be too hard to create a Ruby binding if Ruby is your thing.
- angersock 12y agoIf ROS is anything like player-stage, it is probably a great deal more involved for quick hacks than something like Artoo. P/S was a good research platform, but not good for hacking on stuff (not the year I spent with it, anyways).
- mikepurvis 12y agoI've been working with ROS for almost five years and maintain a number of sensor drivers and other packages. It's certainly a large and complicated system, but the onboarding story gets better all the time. If you're starting from an Ubuntu desktop, you can install 1500+ packages from debs, including pre-built Gazebo simulators for dozens of robots.
- mikepurvis 12y agoThere are already a ruby client for ROS: http://wiki.ros.org/rosruby http://wiki.ros.org/rosruby However, I'm not aware of any significant ecosystem software written in it, so it's definitely of the experimental flavour. That said, the ROS 2.0 plan is to build generic header interface to the standard client library so that the language support is a matter of generating bindings rather than reimplementing serialization code and so-on.
- ticking 12y agoThe current serialisation code needs to die, and be replaced with something usable and already existing, e.g. zeromq + msgpack. There are currently horrible bugs in the very foundation of ROS, the spec of the serialisation format and its hashing, that are in `wontfix` status because the maintainers are idiots. The arity of a field (value, array [and its arity], list) is not part of the hash of a message definition. Thus it is possible to change a message definition breaking existing protocols without the clients noticing. This is a hard to detect bug, that I've seen several times in the wild. But it won't be fixed because it would break old precompiled packages (yes one would have to recompile things gasp). So instead everything is left broken. But hey I heard they want to change the messaging protocol to CORBA for 2.0, what could go wrong with that...
- gr8b8m8-88 12y agoThis is awesome! I myself am a former mechanical engineer who now does Ruby (and JS), and now that Ruby is finally on other embedded machines, I can finally start building some gay robots.
- angersock 12y agoI too believe that robots running Ruby would be quite happy!
- woah 12y agoI'm familiar with Tessel, which is something similar, but with their own hardware and node.js. One of the implicit selling points is that Node is uniquely suited for soft realtime stuff because of its completely nonblocking nature. Is most Artoo code blocking?
- hlfshell 12y agoArtoo is part of a family of libraries, all of which are similar. For Node.js robots, check out Cylon.js by the same group.
- angersock 12y agoIf you're really about soft-realtime stuff, look into Erlang/Elixir by way of the Nerves project: http://nerves-project.org/ http://nerves-project.org/ The hot code-loading is really impressive; I've seen quadcopters update motor controllers in-flight to fix bugs. I think that that's probably the future. The non-blocking stuff in Node is more a function of the library style than the language itself (though the closures make life easier). I don't think there's any reason why the Ruby stuff necessarily has to be slower and blocky. Artoo has some nifty stuff in the vein of testing: http://artoo.io/documentation/guides/test-driven-robotics/ http://artoo.io/documentation/guides/test-driven-robotics/
- schappim 12y agoA word of warning for those wanting to use this on Raspberry Pi. Firstly I love what the folks are doing with 'thehypridgroup'are doing with Artoo however: I teach Raspberry Pi Workshops in Australia (raspberry.piaustralia.com.au/workshop). I initially used to teach the workshops using Artoo, however I found it buggy. I've since migrated the workshop to Python. I'd prefer to do the workshops in Ruby, but the gems have not kept up to date with the new hardware. I also don't believe this will work with the Raspberry Pi 2 Model B (the current generation Raspberry Pi). I haven't tried on other platforms recently.
- wtf_is_up 12y agoNot sure how you feel about Go, but thehybridgroup also have a Go port [1] of this lib (and a node.js one, I believe). They gave a pretty cool demo @ last year's GopherCon [2] [1] http://gobot.io http://gobot.io [2] http://youtube.com/watch?v=Va-NE55AqBs http://youtube.com/watch?v=Va-NE55AqBs
- TylerE 12y agoSeems like Go would be a good fit here - true parallelism would have to handy since I'd imagine you'd often want to have several control routines running at once.
- hardwaresofton 12y agoIt is, which is why the same people also do: http://gobot.io/ http://gobot.io/ I agree, I don't know if Ruby is the greatest choice for a language so close to low-level. But, I am glad it (artoo) exists
- vidarh 12y ago"True parallelism" is not a problem in Ruby at all. If you stick to threads, then there is the global interpreter lock, yes, but that has much less impact than people tend to think unless you depend on lots of poorly written C extensions. Especially on small systems without lots of cores. And you don't need to stick to threads.
- TylerE 12y ago"True parallelism" is EXACTLY not having a GIL.
- vidarh 12y agoIt appears you missed the last line of my comment: And you don't need to stick to threads. Anyway, the GIL makes no difference to the level of parallelism of most Ruby apps unless you're on a server with lots of cores, so all you're really saying is that "true parallelism" is irrelevant for most use cases. On a server with lots of cores, it can start becoming a constraint if you can't use multiple processes for some reason, but if you become constrained with it on the type of small systems this is intended for you're doing something very wrong.
- cageface 12y agoRuby has put food on my table for the better part of the last fifteen years and there's a lot I love about the language. But it also feels increasingly unlikely that it will escape the Rails ecosystem to any significant extent. In the dynamic language space Javascript seems unstoppable and with the ES6 and ES7 features and vastly better performance I don't see much advantage in sticking with Ruby in the long run other than the excellent Gem ecosystem. And for larger codebases I think opt-in typing a-la Typescript is a huge win. I'll always applaud creative projects like this but I'm not optimistic about the longer term health of Ruby at this point.
- Argorak 12y ago> But it also feels increasingly unlikely that it will escape the Rails ecosystem to any significant extent. It already did, with Puppet, Chef and Vagrant. Also, mruby is gaining adoption and Rubymotion seems to be in an interesting niche. There's a lot of new projects currently (like Lotus), so I wouldn't as negative as this. Also, don't ignore the foothold that Ruby has in the asian markets.
- Kalium 12y agoPuppet is only "escaping" in that it's implemented in Ruby. It's not people outside the Rails world picking up Ruby. Chef, in my experience, is favored almost exclusively by people who are already Rubyists. The concept of applying The Power Of Ruby (TM) to system configuration is not attractive to non-Rubyists. I don't see Vagrant much these days. I suspect Docker is displacing it.
- pwelch 12y agoThe fact that Ruby is the language chosen to implement these tools is the proof it's not just for Rails. Also, Docker may become more popular but I doubt it is going to replace Vagrant. There are just too many times where you need a full VM instead of a container process. Not every problem can be solved with containers.
- 12y ago
- dorkrawk 12y agoHow actively is this being maintained? I noticed that the last commits were a few months ago. Maybe it's in a pretty stable place and doesn't need much work these days, but I like seeing Ruby used for more than just Rails so I'd love to see this stick around.
- m4tthumphrey 12y agoAny plans to support Romo? http://www.romotive.com/ http://www.romotive.com/
- pramalin 12y agoI have started and coached a new FIRST Robotics Competition team last year for 2014-2015 season and wanted to use Java. Initially I thought the programming would be very complicated for the high school students, many of whom didn't have any prior programming experience. How can you control the speed of the robot proportional to the pressure applied on the joystick for example?. However, I was very pleased with the WPILib framework that comes with the kit. This can be accomplished by essentially a single line like (ignoring the variable initialization), myRobot.arcade(stick); http://wpilib.screenstepslive.com/s/4485/m/13809/l/145307-creating-your-benchtop-test-program http://wpilib.screenstepslive.com/s/4485/m/13809/l/145307-cr...