Soccer-Playing Robot
Read this article in MAKE:
06: Robots, Page 88.
To get MAKE, subscribe or purchase single volumes.
Make an autonomous robot that can chase a ping-pong ball, push it into a goal, and take other programmable actions. When you're finished, you'll have a few more wrinkles in your brain and no more fears of robot attacks.
Download
Legosoccer Code Bundle
Extras
Additional content for this article, available only online.
Lejos
May 08, 2006 | Technorati | del.icio.us
Links
MAKE: Noise — Discuss this article
You must be logged in to post a talkback.[ Display main threads only] [ Oldest First]
Showing messages 1 through 8 of 8.
- Problem with LegoSoccer code
You must be logged in to reply.
A user recently wrote in about a problem. Basically, NetBeans wasn't detecing the QuickTime files that the Camera class needed. Here's my reaponse to that inquiry in case it might help others:
<blockquote>
I hear you are having some trouble with the Lego Soccer code? I saw the screenshot, and a fix is really simple. Just read the README.txt file that's included in the code bundle. In particular, #4 under "General Notes", which walks you through this particular topic. Basically, you'll just need to download the Java QuickTime framework from Sun's site and add them to your CLASSPATH environment variable. NetBeans should then be able to locate the framework and quit giving you those error messages.
Google "Java CLASSPATH Windows" or something to that effect if you don't know what that all means -- but I'd also say that if you don't know what that means that you might also want to spend a day or two getting familiar with the Java programming language since you'll definitely need to hack the code a bit depending on your particular setup, lighting conditions, etc.
Also, use the standalone Camera class to troubleshoot this issue and get it squared away as a standalone issue before trying to fire up the entire project (this'll make your life easier.)
I can always help if you need more assistance, but I would also encourage you to take advantage of the "Make Noise" feature on the online version of the article so that others can benefit from our discussion. In fact, I may go ahead and post this response there too.
There are lots of good Java mailing lists out there too, which are great for getting help in response to particular issues.
Hope that helps.
</blockquote>Posted by ptwobrussell on September 22, 2006 at 05:31:35 Pacific Time
- Problem with LegoSoccer code
You must be logged in to reply.
hello- love the idea on this one, wanna see it work.
i am not much of a programmer, but am very interested in becoming. i have put together the ensemble of coding programs here (java, netbeans, lejos), provided the correct links, but i receive this long error (sorry) when building the RCXServer code in netbeans:
init:
deps-jar:
C:\Documents and Settings\kpapula\Desktop\soccerbots\LegoSoccerCode\LegoSoccer\NetBeansRCXServer\nbproject\build-impl.xml:245: Could not create task or type of type: http://www.netbeans.org/ns/j2se-project/3:javac.
Ant could not find the task or a class this task relies upon.
This is common and has a number of causes; the usual
solutions are to read the manual pages then download and
install needed JAR files, or fix the build file:
- You have misspelt 'http://www.netbeans.org/ns/j2se-project/3:javac'.
Fix: check your spelling.
- The task needs an external JAR file to execute
and this is not found at the right place in the classpath.
Fix: check the documentation for dependencies.
Fix: declare the task.
- The task is an Ant optional task and the JAR file and/or libraries
implementing the functionality were not found at the time you
yourself built your installation of Ant from the Ant sources.
Fix: Look in the ANT_HOME/lib for the 'ant-' JAR corresponding to the
task and make sure it contains more than merely a META-INF/MANIFEST.MF.
If all it contains is the manifest, then rebuild Ant with the needed
libraries present in ${ant.home}/lib/optional/ , or alternatively,
download a pre-built release version from apache.org
- The build file was written for a later version of Ant
Fix: upgrade to at least the latest release version of Ant
- The task is not an Ant core or optional task
and needs to be declared using <taskdef>.
- You are attempting to use a task defined using
<presetdef> or <macrodef> but have spelt wrong or not
defined it at the point of use
Remember that for JAR files to be visible to Ant tasks implemented
in ANT_HOME/lib, the files must be in the same directory or on the
classpath
Please neither file bug reports on this problem, nor email the
Ant mailing lists, until all of these causes have been explored,
as this is not an Ant bug.
BUILD FAILED (total time: 0 seconds)
--------
let me back up and say i dont know how to make quicktime use my webcam (logitech express), it seems like a popular brand, should be an open source driver for it- it found on but it only ran on linux.
can anyone advise on my next step- im kinda stuck. thanks much for any help
KP
Posted by kpapula on February 18, 2007 at 20:48:08 Pacific Time
- Problem with LegoSoccer code
You must be logged in to reply.
For a first step toward pressing on, review the README document once more. I believe there are some instructions in there that allows you to test your webcam with a just enough code to get your webcam working. The idea behind this to help you try and isolate whether or not a problem you are having is related to your webcam or something else.
Also, what platform are you working on? And what are the versions of all relevant software you are running? java? lejos? eclipse? etc.?Posted by ptwobrussell on February 19, 2007 at 04:42:03 Pacific Time
- Problem with LegoSoccer code
You must be logged in to reply.
Thanks for the reply pt
i am looking to open the webcampreview.sh file, but with what program in windows?
program versions:
windows xp pro sp2
leJOS win32 2 1 0
netbeans 5.5
jdk6 windows i586
not sure what eclipse is, or if it is essential?
Thanks for your help
KPPosted by kpapula on February 22, 2007 at 20:20:44 Pacific Time
- Problem with LegoSoccer code
You must be logged in to reply.
Eclipse is an alternate IDE if you didn't want to use Net Beans. I recommend sticking with Net Beans since the project files were developed using it....but you don't have to.
A .sh file is a *nix shell script. Open the file in a text editor and read what it does. You should be able to simulate the same thing in a windows terminal with a tad bit of effort.Posted by ptwobrussell on February 25, 2007 at 18:31:58 Pacific Time
- link not working
You must be logged in to reply.
Sry to be picky... but
The link to the lejos FAQ doesn't work for beans.:(
If you could fic that soon, it would be great!
Douglas JordanPosted by Dwj300 on May 29, 2006 at 13:20:38 Pacific Time
- LEgos vs Vex and System 2.0 vs Nxt
You must be logged in to reply.
This article Combines two of my absolute favourite things soccer and makezine.com
I Bought and read the entire first year of magazines a couple moths ago and this is my favorite so far.
anyway..
I've always wanted to get back into robotics. I built some old school erector set robots back in the day,
And after reading this new MAKE magazine, especially your article I'm looking at investing in lego robotics.
SO i go to the lego site, and see the trailer and potential of Midstorm NXT.
It seems stellar AND mac compatabile.. BUT not available until fall..
How limited am i being a mac user if i purchase the current version of mindtorm? I know you were able to integrate your mac, but can a newbie,with some basic OOP and Flash ActionScripting skills get the same results as a windows user?
Should i just wait for NXT?
August is a long time, except I'll be watching soccer on TV for most of June and JUly. WORLD CUP!!!
or will I be bettter off buying lego mindstorm now so when NXt is out I'm a robotics super star
icarus
Posted by icarus313 on May 23, 2006 at 14:26:51 Pacific Time
- LEgos vs Vex and System 2.0 vs Nxt
You must be logged in to reply.
If I were you, I'd probably hold off on the new kit if you want to get back into robotics. It looks really sweet and isn't that far off. In the meantime, you could check out the code, build your playing field, etc. But keep in mind that if you want to follow along with the article, you'll likely be on your own since LeJOS may not be immediately available for the new kit. Guess we'll have to see.
M.Posted by ptwobrussell on May 23, 2006 at 17:42:48 Pacific Time
|
Showing messages 1 through 8 of 8. |
Join the conversation -- every MAKE article has an online page that includes a place for discussion. We've made these RSS and Atom feeds to help you watch the discussions: subscribe.

Why advertise on MAKE?
Read what folks are saying about us!
Click here to advertise on MAKE!
Explore More in Make Magazine
Search the pages of MAKE
Raves for MAKE!
“Now we've got geek DIY (do it yourself) porn. Just as would-be Emerils pore over lushly illustrated cookbooks with recipes involving hard-to-find morels and complicated instructions for roux, Tom Swift wanna-bes are devouring MAKE.”
— Steven Levy, Newsweek
“...O'Reilly Media recently launched what has already become the bible of this new movement, a magazine called MAKE.”
— Daniel Roth, FORTUNE
“If you're the type who views the warnings not to pry open your computer as more a challenge than admonition, MAKE is for you.”
— Rolling Stone
“One of the most innovative magazines I've seen in a long time.”
— Steve Riggio, CEO Barnes & Noble
“The kind of magazine that would impress MacGyver”
— Marcus Chan, San Francisco Chronicle
|
|

