Roomba + Wii remote + Perl = Awesome 175
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.
Strange (Score:5, Funny)
Re: (Score:1)
Re: (Score:1)
That's umpossible.
Perl Vacuum (Score:1)
Cool hack, but (Score:5, Insightful)
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.
Re: (Score:2, Interesting)
Re: (Score:3, Informative)
And you know this how? (Score:2)
It's actually pretty sophisticated.
Why say things that you don't know to be true? I don't get it.
Actually... (Score:2)
Wrong Department... (Score:4, Funny)
Re: (Score:2)
Re: (Score:3, Insightful)
Spoiler (Score:5, Funny)
Re: (Score:1)
Re: (Score:2)
Re: (Score:2)
Something like: "Physics can never suck, or blow. It can push, it can pull. But will never suck or blow."
Re: (Score:2)
Next: Wii-mote RC cars ? (Score:3, Insightful)
Re:Next: Wii-mote RC cars ? (Score:5, Interesting)
http://video.google.com/videoplay?docid=258164541
Re: (Score:2)
This can (presumably) be easily fixed in the source code, but it seems ironic, given the intuitive way the Wiimote is used on the Wii.
The roomba... (Score:2, Funny)
Re: (Score:3, Interesting)
Bill
Re: (Score:2)
You're wrong (Score:2)
Here's a thought: Don't try to offer facts on what something does if you don't have a little first hand knowledge.
Re: (Score:2)
2.) I do have a lot of first hand knowledge. I've been using and playing with Roomba's since they were first introduce
Good Will (Score:5, Funny)
Why Perl? (Score:2, Interesting)
Re: (Score:3, Informative)
Re: (Score:3, Informative)
Re:Why Perl? (Score:5, Insightful)
Re:Why Perl? (Score:5, Insightful)
Re: (Score:1)
I don't know why you say that; they can do systems programming too. FFTs or real-time matrix manipulations or low-level bit-twiddling, less so.
Re: (Score:2)
Re: (Score:2)
In the conventional sense "Systems Programming" is contrasted with application programming -- careless example: kernel vs. userspace
Re: (Score:2)
Re:Why Perl? (Score:5, Informative)
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!)
Re: (Score:2)
Perl is ideal for this type of job. Is light, powerful and it NAILS the job every time.
Re: (Score:2, Insightful)
Bad code is bad code, and bad code is difficult to maintain. Good code is good code and is generally maintainable.
Writing good code in Perl, just like any other language, is left up to the programmer.
(And, I know of more than a few large, well-maintained systems written in Perl.)
Re: (Score:2)
(Fight! Fight! Fight! Fight! Fight!)
No, seriously. Your point's correct - but the reason perl is often hard to maintain (not always) is that often times, a perlscript is written as either a hack to an existing system (such as in this article), or as a quick-and-dirty script to get something to happen.
I usually think of Perl as system bailing wire, and Bash as computer bondo. You can build great, workable things with both, but there are tools with be
Re: (Score:2)
local
and
my
2 keywords whose function seem to be similar, but which are not.
Oh yeah, and the $_. Was this language written to be obtuse? I think it was.
I know of more than one pile-of-shit 30,000 line programs written in perl.
Re: (Score:2)
1. Use 'my' until you understand what 'local' does.
2. Never use $_ outside of map and sort blocks.
Remember, other people may need to read your code one day..
Re: (Score:2)
The problem with the first statement is that "my" was introduced *after local, so when faced with suck-arse code written under 4, you have no choice but to resign.
My advice to any programmer tempted to write a "quick script" (particularly in Perl): Don't Fucking Do It. Go read a book, go learn VBscript. Anything. Just think of the poor bastard who has to maintain the crap you are about to perpetrate.
Re: (Score:2)
Re: (Score:2)
Re: (Score:2)
Good distinction, considering the context in which each word is most commonly used.
:)
Like Larry Wall, I'm a bit of a linguistic junkie myself and respect the way that two words can have the exact same definition in the dictionary and yet two different connotations. My comment was actually supposed to be somewhat of a joke though... a concise statement in itself.
I still haven't taken the time to learn Ruby, but Perl code tends to be difficult to read because most programmers s
Sorry, no. (Score:2)
Other languages deal much better with this by means of their inflexible syntactic structure.
If you want a quick hack most likely never to need maintenance again (and here, I dare anybody to say you can be sure of this in a professional environment), then yes, Perl is fine.
If you need maintainable code, then Perl is the worst starting point f
iRobot could have made Roomba remote controlled... (Score:2)
need to control it.
And why is this "awesome"? Is the Wii remote better than a standard joystick
remote (like those used for RC cars) for this application?
Re:iRobot could have made Roomba remote controlled (Score:5, Insightful)
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
Re:iRobot could have made Roomba remote controlled (Score:3, Informative)
You *can* remote-park a Roomba (Score:2)
That's what I thought at first, too, but turns out it's not true. In fact, it's pretty much the only thing the remote is useful for. If you steer the roomba using the remote, it will park automatically as soon as you approach the docking station.
Re: (Score:2)
Re: (Score:2)
need to control it.
And why is this "awesome"? Is the Wii remote better than a standard joystick
remote (like those used for RC cars) for this application?
This kind of comment is what drives me crazy on slashdot. Why are so many here so bloody literal minded and opposed to innovation for innovation's sake? This is a test bed. A prototype. A proof of concept. No one actually needs a Wii controlled Roomba. Now that the concept is
It's only a question of time now. (Score:5, Funny)
Let me see if I understand this (Score:5, Funny)
Mmmaaaat Daaaamon (Score:3, Funny)
(sorry. I couldn't help it.)
Re: (Score:2, Funny)
Re: (Score:2)
"mashup" (Score:5, Insightful)
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.
Re: (Score:2)
In my day we called it "remixing", and you had to do it under candlelight, using toothpicks, bubblegum, and pieces of film, while walking in 2 feet of snow, uphill both ways.
Give it a rest, gramps.
Re: (Score:2)
"Mashup?" Excuse me? (Score:2, Insightful)
Web 2.0. Blogosphere. Mashup. Digital Rights Management. Is our culture so completely saturated with marketer-speak that now -everyone- feels compelled to use bullshit terms like these in place of normal words with established meanings? People, we need to stop talking like boners.
Pretty Flipin Awesome! (Score:1)
wtf...
Re: (Score:2, Funny)
you mean what the flip?
Re: (Score:2)
Envy (Score:2, Insightful)
Re: (Score:2)
I agree with you in that Slashdot has been on its way down the drain but it seems to be climbing up again (here, I was about to insert a funny analogy about a "final solution" involving Drain-O)
To help better Slashdot and shape it the way you like, remember to click the "Firehose" link if you see it and participate in choosing stories for the front page. Oh, you're anonymous. Nevermind. I don't know if you can see it.
And don't be a coward.
How programable is the Roomba? (Score:5, Insightful)
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.
Re: (Score:2)
I have a Roomba Discovery that I have added a BasicStamp computer and BlueTooth. That way, I can issue commands via BlueTooth or download programs that it will execute.
Wow. Amazing! (Score:3, Funny)
(Of course it is cool nonetheless...)
Re: (Score:2)
Okay, it makes for a good joke, but it's not really fair to count the cost of stuff that the guy would've owned anyway. This probably includes the computer, and quite possibly the Wii and Roomba as well.
What was the name of the guy who hacked into a telco server and stole some document, got sued for some ridiculously high figure that included e.g. the cost of the computer that the document was originally word-
Wii math (Score:2)
Dan East
Re: (Score:2)
Roomba Wars (Score:1)
New word! (Score:3, Funny)
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
Re: (Score:2)
For example: (and I'm serious here) Nirvana's "Smells Like Teen Spirit" + Destiny's Child's "Bootylicious" = "Smells Like Teen Booty"
Some rather high-profile works have been created using the technique, The Beatles vs Jay-Z, Beatles vs. Beachboys (Beachles) Beatles vs. Beastie Boys (Beastles), Dean Gra
Re: (Score:2, Funny)
Re: (Score:2)
Lazerzzzz (Score:1)
Re: (Score:2)
Bluetooth (Score:1)
Re: (Score:3, Informative)
Be glad there's no challenge/response (Score:3, Insightful)
Melissa
Prediction complete! (Score:2)
Do not understand this new word "mashup" (Score:2)
In English (okay, British/standard English) "mash" means to scramble or grind something, e.g. mashed potato or papier mache. In the context of technology, it makes no sense as generally mashing implies that the thing being mashed becomes paste like, or mashed. To describe a car as mashed, is to imply it has been crushed and bent out of shape to t
Re: (Score:2, Funny)
"Seriously, this term "rock and roll" just doesn't make any sense.
In English "rock" refers to either an action of rocking back and forth or a relatively hard, naturally formed mineral or petrified matter. The term "roll" refers to either an action of turning around or revolving on or as if on an axis or a small loaf of bread served with dinner. I just don't see how either of these words have anything to do with a current trend (which will no doubt not be around for v
Re: (Score:2)
I suppose all you can say in the end is that American English is very different from standard
I know what its for (Score:4, Funny)
Wii remote - Wii - games = WiiRoomba (Score:2, Funny)
Great... (Score:2)
And here's the source code in BASIC (Score:2)
20 goto 10
30 end
I still prefer the roomba controlled by a MacBook (Score:2)
I've got a similar hack (Score:3, Funny)
Re: (Score:1, Offtopic)
Re: (Score:3, Funny)
Turing completeness.
Re:Perl vs. Python? (Score:5, Informative)
Re: (Score:2)
Re: (Score:2)
Re: (Score:2)
Re: (Score:2)
if wii = penis and
wii + penis = Natalie Portman,
then
2(penis) = Natalie Portman
Unless of course, you were going for something like "wii = (penis*penis)-penis"...
Re: (Score:2)