File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Meaningless Drivel and the fly likes coderanch on a robot Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Other » Meaningless Drivel
Bookmark "coderanch on a robot" Watch "coderanch on a robot" New topic
Author

coderanch on a robot

Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30749
    
156

CodeRanch is listed on a robot built by high school students. (I mentor a FIRST robotics team.) This is the first year, it is listed as CodeRanch rather than JavaRanch so wanted to share here.


[Thumbnail for coderanch-bot.jpg]



[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61413
    
  67



[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24187
    
  34

But can the robot answer OCJP questions?


[Jess in Action][AskingGoodQuestions]
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10451
    
    8

Cool!
Does the Robot use any lasers or something which is why you are wearing those protective glasses?


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Lalit Mehra
Ranch Hand

Joined: Jun 08, 2010
Posts: 384

Seems like the robo has lost all his hairs answering the JAVA questions ... only a few hairs are left now ... on either sides


http://plainoldjavaobject.blogspot.in
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30749
    
156

Maneesh Godbole wrote:Cool!
Does the Robot use any lasers or something which is why you are wearing those protective glasses?

No. We do have a headlight, but the safety glasses are required for anyone in the pit area. There's a lot of tool use going on around us.

The robot may not be able to answer Java questions, but it is programmed in Java.
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10451
    
    8

So all the robots come with a "robot JRE" preinstalled, or do the kids build it from scratch? I can imagine some code which instructs the robot to turn left, brake, shoot etc, but I am wondering what executes this code. Or is the code executed on the laptop or something and only the instructions passed on to the robot?
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30749
    
156

Maneesh Godbole wrote:So all the robots come with a "robot JRE" preinstalled, or do the kids build it from scratch? I can imagine some code which instructs the robot to turn left, brake, shoot etc, but I am wondering what executes this code. Or is the code executed on the laptop or something and only the instructions passed on to the robot?

THe robot hardware is a Crio (Compact Real time IO) device. We "flash" it with a Java 1.4 mobile JRE. (Yeah I know - they still make us use 1.4). We also are given the wpilibj library. You can see APIs for things like driving and actuators. The idea is to make it so the programming can be trivial (have the motors follow the joystick) or complex (algorithms, vision, etc). THe code is executed on the robot. But you can branch out. We wrote a program to run on a Raspberry Pi to deal with vision and just pass the answer back to the crio via Java sockets.
Anayonkar Shivalkar
Bartender

Joined: Dec 08, 2010
Posts: 1509
    
    5

That's really nice Jeanne!

Also, your reply about Crio is quite informative. Thanks for that.

I remember (I'm not sure though) you and your team won a robotics contest few months back (or was it an year ago?).


Regards,
Anayonkar Shivalkar (SCJP, SCWCD, OCMJD, OCEEJBD)
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10451
    
    8

Thanks Jeanne. This looks interesting. Put it high up on my "to explore" list.
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30749
    
156

Anayonkar Shivalkar wrote:That's really nice Jeanne!

Also, your reply about Crio is quite informative. Thanks for that.

I remember (I'm not sure though) you and your team won a robotics contest few months back (or was it an year ago?).

Yes. This robot won the NYC competition in March.
 
wood burning stoves
 
subject: coderanch on a robot