This week's book giveaways are in the Angular and TypeScript and Web Services forums.
We're giving away four copies each of Programming with Types and The Design of Web APIs and have the authors on-line!
See this thread and this one for details.
Win a copy of Programming with Types this week in the Angular and TypeScript forum
or The Design of Web APIs in the Web Services forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Knute Snortum
  • Henry Wong
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Frits Walraven
  • Joe Ess
  • salvin francis

coderanch on a robot

 
author & internet detective
Posts: 39760
797
Eclipse IDE VI Editor Java
  • 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]
 
Marshal
Posts: 67336
171
Mac Mac OS X IntelliJ IDE jQuery Java
 
author and iconoclast
Posts: 24203
43
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But can the robot answer OCJP questions?
 
Bartender
Posts: 11445
18
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • 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?
 
Ranch Hand
Posts: 384
Spring 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
Posts: 39760
797
Eclipse IDE VI Editor Java
  • 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
Bartender
Posts: 11445
18
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • 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
Posts: 39760
797
Eclipse IDE VI Editor Java
  • 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.
 
Bartender
Posts: 1558
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
Bartender
Posts: 11445
18
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • 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
Posts: 39760
797
Eclipse IDE VI Editor Java
  • 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.
 
If I had asked people what they wanted, they would have said faster horses - Ford. Tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!