|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
"Java, Sun SPOT and the FIRST Robotics Competition"
This just came up in Google Reader; after a quick search I couldn't find it posted anywhere here and thought it might be interesting to many CD'ers:
http://blogs.sun.com/roger/entry/java_sun_spot_and_the |
|
#2
|
|||||
|
|||||
|
Re: "Java, Sun SPOT and the FIRST Robotics Competition"
That's very interesting. Java on FIRST robots... not bad. Its really good to get options out there to students, and the more programming languages able to run on FIRST robots the better it is for students.
Let the C++ vs Java rivalry begin. ![]() |
|
#3
|
||||
|
||||
|
Re: "Java, Sun SPOT and the FIRST Robotics Competition"
This is not related to SUN but it's so welcoming to see some familiar pits in the article pictures!
|
|
#4
|
||||
|
||||
|
Re: "Java, Sun SPOT and the FIRST Robotics Competition"
Note to self: Review Java....
|
|
#5
|
||||
|
||||
|
Re: "Java, Sun SPOT and the FIRST Robotics Competition"
I hate Java (its a religious thing though, no actual reason), but this is pretty cool. Now if they would just get rid of vxWorks and let us use Linux on there we'd be really set...
|
|
#6
|
|||
|
|||
|
Re: "Java, Sun SPOT and the FIRST Robotics Competition"
I run linux every day on my laptop and every other computer I own and use, but I wouldn't want to use it on a robot if I had the choice to use VxWorks or some other real realtime OS. The robot needs to be realtime to be guaranteed to respond quickly to user and sensor input, and Linux is not designed to do that. It's designed to run on servers and desktops where a bit of latency isn't an issue. There are patches that have been made to make the linux kernel more real time, but they aren't nearly as good as running an actual realtime OS.
|
|
#7
|
||||
|
||||
|
Re: "Java, Sun SPOT and the FIRST Robotics Competition"
Quote:
Thats what the FPGA is for, it takes care of the nasty latency dependent stuff for us (among other things). Quote:
From the experience I've had so far, porting software to vxWorks is really annoying (even nix-like software) because it has random oddities in its networking library (and other libraries too). The biggest advantage I see for linux would be that theres a *ton* of software that would pretty much *just work* without too much modification. Not so with vxWorks. Then we wouldn't be just talking about java bots, we could have python bots or ruby bots... ![]() |
|
#8
|
|||
|
|||
|
Re: "Java, Sun SPOT and the FIRST Robotics Competition"
Correct me if I'm wrong, but I believe that updating the speeds of the motors on the robot 50 times a second while processing images using the rest of the CPU time would qualify. When I've tried to get code I've written under Linux to execute a loop 50 times a second without the timing being off by a fairly large percentage while using all of the available CPU resources, I've had trouble and found the best way to get the loop to execute every 20 ms is to use less CPU resources. Maybe I was doing it wrong, but that's been my experience.
|
|
#9
|
||||
|
||||
|
Re: "Java, Sun SPOT and the FIRST Robotics Competition"
Quote:
In any case, I value the flexibility quite a bit more than I value the realtimeness. Cmon, a robot controlled by a shell script... would be pretty amusing. |
|
#10
|
||||
|
||||
|
Re: "Java, Sun SPOT and the FIRST Robotics Competition"
Quote:
B) We were half hoping that someone, somewhere would port lolcode to vxWorks... |
|
#11
|
||||
|
||||
|
Re: "Java, Sun SPOT and the FIRST Robotics Competition"
Quote:
|
|
#12
|
|||
|
|||
|
Re: "Java, Sun SPOT and the FIRST Robotics Competition"
I think this move will attract a lot of people, especially in schools that offer computer science courses in Java. There are probably quite a number of them, too, since AP Computer Science works in Java.
I'm going to speak with my school's computer science teacher. Maybe she can get her students involved with the team also! Maybe we can also get the College Board to work with FIRST to make a new case study revolved around the new library. Who's with me? ![]() |
|
#13
|
|||
|
|||
|
Re: "Java, Sun SPOT and the FIRST Robotics Competition"
I think that Java working with devices is a great step...I personally do not like Java at all but it's nice to see how popular FIRST has become that you can even program in Java now. It might bring an increase to the amount of students that join robotics teams.
|
|
#14
|
||||
|
||||
|
Re: "Java, Sun SPOT and the FIRST Robotics Competition"
I'm excited to dive into Java as an alternative after a subpar experience with LabVIEW this year. I do have a few questions about how much of the more advanced/third party Java solutions we can use that will still be executable on the cRIO. Unfortunately, I didn't get a chance to drop in and say hi to the people from Sun at the competition over the weekend.
For example, can we use Java-based wrappers and implementations for other languages such as JRuby (my guess is yes, because Java is compiled into bytecode anyways, so whatever third-party libraries used should be compiled with it)? And will there be the ability to use a testing framework such as JUnit (with the emulator, it might be possible. I'd just rather not have to build and load every time I need to test out a small tweak or new feature, especially in the process of developing said feature)? |
|
#15
|
|||
|
|||
|
Re: "Java, Sun SPOT and the FIRST Robotics Competition"
Quote:
The build system uses nant, and they will have plugins for the NetBeans IDE and maybe the Eclipse IDE as well. (As a side note, it was probably not a good idea to ask the father of the Java language why they are using a Sun IDE rather than one developed by IBM.) The cRio will basically be formatted for c++ with the initial program being a bootstrapper to start the JVM. It sounded like this initial JVM will then listen for communication with the development PC and start a second VM with the robot code in it. Hopefully this means that it will be much easier to reprogram and test without the 30 second start up time. All of this, of course, was in pre beta and could very easily change before it is released. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| SECOND Robotics Competition "Underdrive" | Tanner | Off-Season Events | 2 | 22-11-2008 17:34 |
| Cannot "Grab frame" with java CMUcam2 GUI | TOECUTTER | Programming | 0 | 20-01-2007 12:50 |
| Rules of Engagement and "Unfair Competition" | Richard Neese | General Forum | 2 | 24-03-2003 13:03 |
| how tall is the ramp when in "up" and "balanced" position??? | archiver | 2001 | 1 | 24-06-2002 00:54 |
| An idea to better improve the First competition...or, at least make it more "hardcore"... | archiver | 1999 | 1 | 23-06-2002 22:02 |