Stories
Slash Boxes
Comments

News for nerds, stuff that matters

Roomba + Wii remote + Perl = Awesome

Posted by timothy on Tue Dec 26, 2006 10:48 PM
from the when-buzzword-compliance-is-a-good-thing dept.
Anonymous Wii Lov'n Coward writes "Check out the WiiRoomba, a mashup using a Wii remote, a perl script, and the Darwiin Remote software. While a little sluggish to respond, the Roomba is entirely controlled by the Wii remote accelerometers." All of the source code to do it yourself is available at the site linked, along with a youtube video of how it works.
This discussion has been archived. No new comments can be posted.
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.

Roomba + Wii remote + Perl = Awesome 25 Comments More | Login /

 Full
 Abbreviated
 Hidden
More | Login
Keybindings Beta
Q W E
A S D
Loading ... Please wait.
  • Strange (Score:5, Funny)

    by Cytlid (95255) on Tuesday December 26 2006, @10:53PM (#17373082) Homepage
    This is like an odd parallel universe movie where a younger Matt Damon controls his vacuum with a remote control.
  • Cool hack, but (Score:5, Insightful)

    by Oddster (628633) on Tuesday December 26 2006, @10:53PM (#17373084)
    Isn't the point of the Roomba that it doesn't need control?

    Although I suppose it would be really useful if you added a servo arm, and could use the contraption to get yourself a beer without leaving your chair.
  • Wrong Department... (Score:4, Funny)

    by creimer (824291) on Tuesday December 26 2006, @10:53PM (#17373088) Homepage Journal
    It should be "People who have too much time on their hands" department. :P
  • Spoiler (Score:5, Funny)

    by Nerdfest (867930) on Tuesday December 26 2006, @10:54PM (#17373090)
    It sucks.
  • Next: Wii-mote RC cars ? (Score:3, Insightful)

    by neurocutie (677249) on Tuesday December 26 2006, @10:56PM (#17373108)
    Cool hack, but better than just a regular RC joystick controller ???
  • Good Will (Score:5, Funny)

    by huper (568138) on Tuesday December 26 2006, @11:05PM (#17373162)
    My boy is wicked smart!
  • by gijoel (628142) on Tuesday December 26 2006, @11:21PM (#17373274)
    Before they REBEL! [youtube.com]
  • by fm6 (162816) on Tuesday December 26 2006, @11:23PM (#17373294) Homepage Journal
    You're tired of vacuuming by hand, so you buy a robot vacuum that works all by itself. Then you add a clever hack that allows you to control the robot vacuum just like the manual vacuum you had before...
  • Mmmaaaat Daaaamon (Score:3, Funny)

    by popo (107611) on Tuesday December 26 2006, @11:24PM (#17373302) Homepage

    (sorry. I couldn't help it.)
  • "mashup" (Score:5, Insightful)

    by sinserve (455889) on Tuesday December 26 2006, @11:36PM (#17373374)
    What is this trendy-word shit? MASHUP? Who the fuck came up with this word? In multimedia we already had "remixing" and "sampling".

    Hardware and software can not "mashup", they're "coupled" or "integrated" in manager-speak, but in honest everyday speak hardware is "driven" or "controlled" or "interfaced" with software.

    It could have been "controling roomba with wii remote". Perl would never show up in the headline because software drivers are no often given banner credit. They're expected to work.

     
  • How programable is the Roomba? (Score:5, Insightful)

    by RalphBNumbers (655475) on Wednesday December 27 2006, @12:08AM (#17373506)
    Taking this hack a step farther:

    Since Roombas can be made to connect to computers via bluetooth adapters [makezine.com], it stands to reason that if they are sufficiently programable, they could be made to respond directly to the Wiimote via bluetooth, without a Mac playing middleman. This might even eliminate a lot of the the lag the story mentions.
  • Wow. Amazing! (Score:3, Funny)

    by 93 Escort Wagon (326346) on Wednesday December 27 2006, @12:10AM (#17373510)
    So, for the cost of the Roomba, the Wii, and a computer (so let's say, what, $1500?)... he's basically duplicated my $100 Hoover vacuum. Except my Hoover is more responsive to its handle than the Roomba is to the Wii remote.

    (Of course it is cool nonetheless...)

  • New word! (Score:3, Funny)

    by Duncan3 (10537) on Wednesday December 27 2006, @12:19AM (#17373548) Homepage
    So is "mashup" the hip new word for "programming"?

    I guess if programming is something 3rd world starving people do for $0.50/day, we need a new word.

    I better get back to mashing, hahahahahah

  • I know what its for (Score:4, Funny)

    by bigsam411 (1043552) on Wednesday December 27 2006, @02:07AM (#17374044)
    They designed this so that when people throw their Wiimotes at televisions while playing Wii Sports, the Roomba will go clean up the glass shards.
    • Re: (Score:3, Funny)

      I have two words for you.

      Turing completeness.
    • Re:Perl vs. Python? (Score:5, Informative)

      by grumbel (592662) on Tuesday December 26 2006, @11:02PM (#17373142)
      For those interested, the WiiLi.org Wiki is full of Wiimote examples using Python, just takes a handfull lines of code to get started with the Wiimote, its really easy.
      [ Parent ]
    • Re: (Score:3, Interesting)

      Interestingly enough, the Roomba DOESN'T "suck alot<sic>." In fact, it doesn't use a low pressure area at all, but relies solely on brushes to pick up any unwanted particulate matter on the floor.

      Bill
    • Re: (Score:3, Informative)

      I'm no code jockey, but I always thought that Perl was meant for run-it-once type applications that handle things like text processing and database searching.
      Well then you would be wrong. Perl can be used for anything. In fact, the hard core Perl coders
    • Re:Why Perl? (Score:5, Insightful)

      by FooAtWFU (699187) on Tuesday December 26 2006, @11:16PM (#17373236) Homepage
      Hey, look at the code. The important bits seem to be like

      printf $roomba "\x89%c%c%c%c", $vh,$vl,$rh,$rl;
      Elsewhere, they seem to be communicating with another application through a named pipe. Text processing and the UNIX philosophy: Perl at its finest.
      [ Parent ]
    • Re:Why Perl? (Score:5, Insightful)

      by Nasarius (593729) on Tuesday December 26 2006, @11:20PM (#17373264)
      Out of curiosity, why use a language like Perl to do something dynamic like this? I'm no code jockey, but I always thought that Perl was meant for run-it-once type applications that handle things like text processing and database searching.
      The question is valid, but the nonsensical rambling that follows detracts from it. So I'll just say that modern scripting languages like Perl, Python, or Ruby can do just about anything but systems programming. In fact, they are perfect for doing what the summary seems to describe: taking the output from one program, parsing it, and sending instructions to another program.
      [ Parent ]
    • Re:Why Perl? (Score:5, Informative)

      by bockelboy (824282) on Tuesday December 26 2006, @11:31PM (#17373348)
      Wouldn't Java be better suited for this?

      No offense, but Java would be a particularly bad choice for this application. The real work done here is "gluing" two things together at a system level - the Roomba program and the Wii program. Java is uniquely miserable at interacting on the system level. Where Java excels is object-oriented architectural design and huge enterprise-level programs.

      So, if you want a scalable application server, use Java. If you need to tie two programs together, use a scripting language like Python or Perl. If you know you can limit yourself to a Unix shell environment, Perl may be best (and this is from a Python junkie!)
      [ Parent ]
    • by mccalli (323026) on Tuesday December 26 2006, @11:27PM (#17373316) Homepage
      ... but they didn't. Because the whole point of the Roomba is that you don't need to control it.

      No and yes, in that order. My Roomba certainly came with a remote control that can steer the device, but I've never found a need to use it. However, I still appreciate this hack for what it is - a spot of fun done just because you can.

      Cheers,
      Ian
      [ Parent ]
    • My roomba discovery came with a remote, and I swear the only reasons my sisters come over any more is to "clean" using the roomba w/ the remote. It's useful for the occasional shutdown when it's too loud, but other than that, you can't even issue the park