Go to Post However, do not confuse faith in your ability to overcome challenging obstacles, with the difficulty of the obstacles themselves. - Joe G. [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rating: Thread Rating: 4 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 27-06-2013, 22:06
TeamMarcies TeamMarcies is offline
Registered User
FRC #4777
 
Join Date: Jun 2013
Location: Canada
Posts: 9
TeamMarcies is an unknown quantity at this point
Post FRC Java Beginner - Help

Hello,

I am in charge of programming for my team along with a few others and we all know Java to a great extent. More specifically, we've been doing Java for 2-3 years so we know it to the intermediate extent, enough to program a robot of-course.

Last year (Grade 10 for me), we were using Labview and we were met with many setbacks and limitations that were absolutely annoying and we wish to transition our focuses to Java as it will be much more flexible to handle rather than the one-way Labview.

I, personally am planning to get started in learning the Java FRC API (WPI) during the summer so I can easily get a hand of things when the next competition hits.

Question(s):

1. What is the best area to get started in learning the Java FRC API?
Prefer: Videos & PDF

2. Now for my second question - Is there some sort of a plugin or robot emulator in which I can test my FRC Java code with as you obviously can't run the Java code and truly test if the robot is doing what you need it to do without the chassi, etc.

3. Finally, I would love it if someone can give me an eBook / Video(s) explaining how the FRC Robot works like terminology and how it ties in with the programming so I will be able to program the robot understanding what everything means...

Thanks in advance.
Reply With Quote
  #2   Spotlight this post!  
Unread 27-06-2013, 23:49
joelg236 joelg236 is offline
4334 Retired Mentor & Alumni
AKA: Joel Gallant
no team
Team Role: Mentor
 
Join Date: Dec 2011
Rookie Year: 2012
Location: Calgary
Posts: 733
joelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond repute
Re: FRC Java Beginner - Help

1. http://wpilib.screenstepslive.com/s/3120
2. There have been attempts, but I still prefer to port the code and run it on Java SE (to debug and get better profiling data)
3. Start here: http://www.team358.org/files/programming/
__________________
All opinions are my own.
Reply With Quote
  #3   Spotlight this post!  
Unread 28-06-2013, 23:59
gixxy's Avatar
gixxy gixxy is offline
Programming and Arduino Mentor
AKA: Gustave Michel III
FRC #3946 (Tiger Robotics)
Team Role: Mentor
 
Join Date: Nov 2011
Rookie Year: 2012
Location: Ruston, LA
Posts: 207
gixxy is on a distinguished road
Re: FRC Java Beginner - Help

Slidell Robotics has a page about Java on our site: http://slidell-robotics.com/index.ph...=javaresources

On it you will find a few learning Java (which you seem to have a handle on) as well as a few for learning the FRC wpilibj such as Brad Miller's video tutorial of the Command Based Robot Setup, and an online copy of the wpilibj JavaDoc.

At the bottom of the page are a couple of links to other teams resource pages as well.

Hope you do well and happy coding!
__________________
Programmer - A creature known for converting Caffeine into Code.
Studying Computer Science @ Louisiana Tech University
Associate Consultant @ Fenway Group

2012-13: 3946 - Head of Programming, Electrical and Web
2014 - 3468 - Programming Mentor
2015 - Present - Lurker
Reply With Quote
  #4   Spotlight this post!  
Unread 29-06-2013, 12:49
Joe Johnson's Avatar Unsung FIRST Hero
Joe Johnson Joe Johnson is offline
Engineer at Medrobotics
AKA: Dr. Joe
FRC #0088 (TJ2)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1996
Location: Raynham, MA
Posts: 2,648
Joe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond repute
Re: FRC Java Beginner - Help

I was just about to post a similar question. Thanks.

This is our 3rd year and we have used Java in our first two years but we have lost our main programmer to graduation and coding mentorship has been spotty (at best). So we are really starting from scratch.

This is going to be a rebuilding year for our team in a lot of ways. I am pushing each of our subteams to come up with a list of measurable skills that the team should acquire prior to kickoff.

To that end... ...beyond learn Java, the WPI Library, etc. I have made this list of tasks/skills that the coding team should work towards:
  1. Read Joysticks and buttons from Gamepad
  2. Output values to a motor
  3. Output values to multiple motors
  4. Read values from a switch
  5. Read values from a sensor (potentiometer, angular rate sensor)
  6. Read values from wheel encoders
  7. Display a value from the robot on the PC screen
  8. Display a value in the form of a visual gauge on the PC screen
  9. Understand how to use Debugging & Development Features of FIRST control system
  10. Use Joystick values to control a mulitmotor drive system with and without a shifter
  11. Implement various joystick scaling methods (e.g. “deadband removal”, “dynamic zeroing”)
  12. Implement various output scaling methods (e.g. “linearize Victor”)
  13. Implement a PID Feedback Loop on an arm or actuator
  14. Implement a PID feedback Loop on robot wheels
  15. Control a PID Feedback Loop via Joystick
  16. Control a PID Feedback Loop via buttons
  17. Use Angular Rate Sensor and Encoders to improve high speed “Drive Straight” Performance
  18. Use Angular Rate Sensor and Encoders to improve low speed “positioning” performance
  19. Basic Autonomous: sequence of steps in series
  20. Medium Autonomous sequence of steps some series, some parallel
  21. Medium High Autonomous including straight line robot motion back and forth with other steps
  22. Difficult Autonomous robot motion including turns
  23. Very Difficult Autonomous using camera to auto target using both arm and robot motion
  24. Use NetworkTables to implement Full Robot Monitoring System
  25. PC Based Vision System Based Targeting (height, distance, & angle wrt Robot)

What do folks think of this list? Would you add/remove anything? How about the ordering?

Do tell...

Joe J.
__________________
Joseph M. Johnson, Ph.D., P.E.
Mentor
Team #88, TJ2
Reply With Quote
  #5   Spotlight this post!  
Unread 29-07-2013, 07:33
jj91171 jj91171 is offline
Junior Member
no team
 
Join Date: Jul 2013
Location: India
Posts: 1
jj91171 is an unknown quantity at this point
Re: FRC Java Beginner - Help

How i will a java programmer in high level?
Reply With Quote
  #6   Spotlight this post!  
Unread 29-07-2013, 16:22
Pault's Avatar
Pault Pault is offline
Registered User
FRC #0246 (Overclocked)
Team Role: College Student
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Boston
Posts: 618
Pault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond repute
Re: FRC Java Beginner - Help

Quote:
Originally Posted by jj91171 View Post
How i will a java programmer in high level?
Reported.

They just keep on coming.

Last edited by Pault : 29-07-2013 at 16:24.
Reply With Quote
  #7   Spotlight this post!  
Unread 02-08-2013, 13:29
Ginto8's Avatar
Ginto8 Ginto8 is offline
Programming Lead
AKA: Joe Doyle
FRC #2729 (Storm)
Team Role: Programmer
 
Join Date: Oct 2010
Rookie Year: 2010
Location: Marlton, NJ
Posts: 174
Ginto8 is a glorious beacon of lightGinto8 is a glorious beacon of lightGinto8 is a glorious beacon of lightGinto8 is a glorious beacon of lightGinto8 is a glorious beacon of light
Re: FRC Java Beginner - Help

Quote:
Originally Posted by Joe Johnson View Post
PC Based Vision System Based Targeting (height, distance, & angle wrt Robot)
I would recommend doing this independently from the other tasks, and I wouldn't focus much on doing vision on the cRIO. The performance of a PC-based vision system is orders of magnitude better than one running on the cRIO, and the only major similarity between the libraries used on PC and cRIO is NetworkTables. It'll probably be most worth your time to just work on a PC version.
__________________
I code stuff.
Reply With Quote
  #8   Spotlight this post!  
Unread 05-08-2013, 19:07
tuXguy15's Avatar
tuXguy15 tuXguy15 is offline
Team Mentor
AKA: Devin Kolarac
FRC #2559 (Normality Zero)
 
Join Date: Apr 2012
Rookie Year: 2012
Location: Harrisburg, PA
Posts: 127
tuXguy15 is an unknown quantity at this point
Re: FRC Java Beginner - Help

Where could one start to try to get PC vision working? We would like to use javacv
__________________
Reply With Quote
  #9   Spotlight this post!  
Unread 06-08-2013, 11:59
otherguy's Avatar
otherguy otherguy is offline
sparkE
AKA: James
FRC #2168 (The Aluminum Falcons)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: CT
Posts: 431
otherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to behold
Re: FRC Java Beginner - Help

Quote:
Originally Posted by tuXguy15 View Post
Where could one start to try to get PC vision working? We would like to use javacv
I would suggest starting by digging through 341's code and the related comments.

Between that and the openCV tutorials online, you should be able to make some decent progress.

A word of warning. The documentation for javaCV is terrible. Or I should say it was the last time I checked which was January/February of this year. The C++ variant seems to be their primary focus. Unfortunately the documentation isn't always 1:1.

Figuring out how to get things up and running in the off season will be a huge advantage to you.
__________________
http://team2168.org
Reply With Quote
  #10   Spotlight this post!  
Unread 07-08-2013, 20:25
Ginto8's Avatar
Ginto8 Ginto8 is offline
Programming Lead
AKA: Joe Doyle
FRC #2729 (Storm)
Team Role: Programmer
 
Join Date: Oct 2010
Rookie Year: 2010
Location: Marlton, NJ
Posts: 174
Ginto8 is a glorious beacon of lightGinto8 is a glorious beacon of lightGinto8 is a glorious beacon of lightGinto8 is a glorious beacon of lightGinto8 is a glorious beacon of light
Re: FRC Java Beginner - Help

A more-current resource you might use is our team's vision system for this year. It's not well-commented (yet -- I'm working on it), but it works on the same basic principles as Miss Daisy's system while also showing how you can make parameters that can be tweaked at runtime through SmartDashboard's properties window.
__________________
I code stuff.
Reply With Quote
  #11   Spotlight this post!  
Unread 08-08-2013, 17:40
tuXguy15's Avatar
tuXguy15 tuXguy15 is offline
Team Mentor
AKA: Devin Kolarac
FRC #2559 (Normality Zero)
 
Join Date: Apr 2012
Rookie Year: 2012
Location: Harrisburg, PA
Posts: 127
tuXguy15 is an unknown quantity at this point
Re: FRC Java Beginner - Help

Being able to see your team's robot this year really impressed me. Your vision system was amazing. Thanks for sharing!
__________________
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 11:37.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi