Go to Post There used to be no withholding allowance! - pfreivald [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 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,633
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
  #2   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
  #3   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
  #4   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: 429
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
  #5   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
  #6   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 10:00.

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