• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

coderanch on a robot

 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34073
335
Eclipse IDE Java VI Editor
  • Likes 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
coderanch-bot.jpg
[Thumbnail for coderanch-bot.jpg]
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64620
86
IntelliJ IDE Java jQuery Mac Mac OS X
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24208
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But can the robot answer OCJP questions?
 
Maneesh Godbole
Saloon Keeper
Posts: 11021
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Cool!
Does the Robot use any lasers or something which is why you are wearing those protective glasses?
 
Lalit Mehra
Ranch Hand
Posts: 384
Eclipse IDE Firefox Browser Java
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Seems like the robo has lost all his hairs answering the JAVA questions ... only a few hairs are left now ... on either sides
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34073
335
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11021
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 34073
335
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1557
5
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?).
 
Maneesh Godbole
Saloon Keeper
Posts: 11021
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Jeanne. This looks interesting. Put it high up on my "to explore" list.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34073
335
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic