Go to Post You can never take enough precautions when it comes to safety. Please, be prepared for anything. - Tom Bottiglieri [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 05-07-2010, 16:45
HansJ's Avatar
HansJ HansJ is offline
Registered User
AKA: Hans
FRC #3018 (Nordic Storm)
Team Role: Mechanical
 
Join Date: Jan 2010
Rookie Year: 2010
Location: St. Peter
Posts: 29
HansJ is on a distinguished road
target tracking in Java

In our off season, we are attempting to learn Java by programming our 2010 bot in it. Last year, we used Labview, and did absolutely nothing with the camera beyond the default circle tracking in Labview. We are trying to figure out how to implement something similar in Java. We'd like it to target a circle, and show us that target by outlining it on the camera output on the driver's station. We've got the live camera image showing in the driver's station, but nothing beyond that.
How should we start to implement this?
  #2   Spotlight this post!  
Unread 06-07-2010, 11:01
Dustin Shadbolt's Avatar
Dustin Shadbolt Dustin Shadbolt is offline
In a server room somewhere...
AKA: Dustin Shadbolt
FRC #1555 (Team PULSE)
Team Role: Alumni
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Monticello,Indiana
Posts: 320
Dustin Shadbolt is on a distinguished road
Re: target tracking in Java

Hello!
This year we are also switching over to Java from Labview from the previous season. We are learning JAVA over the summer and hopefully we will be up to speed by 2010. The camera wasn't even on our robot last year due to several reasons. There is vision tracking default code that comes with the FRC Java updates. Have you tried using that? I heard from several people and read that the default tracking code is pretty much already to go.
-Dustin Shadbolt
  #3   Spotlight this post!  
Unread 06-07-2010, 12:24
isaacdl isaacdl is offline
I have a white hat..it's just dirty
AKA: Isaac Dontje Lindell
FRC #3018 (Nordic Storm)
 
Join Date: Oct 2009
Rookie Year: 2010
Location: St. Peter
Posts: 32
isaacdl is an unknown quantity at this point
Re: target tracking in Java

We should have mentioned (I'm on the OP's team) that we'd like to just get basic circle tracking, like what they had by default in Labview, *without* the gyro. All it did was show what circle it'd targeted by outlining it in green on the live view on the Driver's station. The circle tracking examples in Java are a.) too complicated for our limited understanding right now, and b.) require the gyro.
  #4   Spotlight this post!  
Unread 07-07-2010, 13:45
Robototes2412's Avatar
Robototes2412 Robototes2412 is offline
1 * 4 != 14
FRC #2412 (Robototes)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2007
Location: Bellevue
Posts: 312
Robototes2412 is on a distinguished road
Re: target tracking in Java

remove the gryo calls in the code, and you are good to go

oh! and it helps to make the camera code a function callable by the push of a button. Next year, my team is going to write the camera code in c++ with java bindings for the sake of speed.

Last edited by Robototes2412 : 07-07-2010 at 13:47.
  #5   Spotlight this post!  
Unread 07-07-2010, 13:50
HansJ's Avatar
HansJ HansJ is offline
Registered User
AKA: Hans
FRC #3018 (Nordic Storm)
Team Role: Mechanical
 
Join Date: Jan 2010
Rookie Year: 2010
Location: St. Peter
Posts: 29
HansJ is on a distinguished road
Re: target tracking in Java

Ok, we will try that. Do you know what purpose the gyro serves in the camera code?
  #6   Spotlight this post!  
Unread 07-07-2010, 14:03
billbo911's Avatar
billbo911 billbo911 is offline
I prefer you give a perfect effort.
AKA: That's "Mr. Bill"
FRC #2073 (EagleForce)
Team Role: Mentor
 
Join Date: Mar 2005
Rookie Year: 2005
Location: Elk Grove, Ca.
Posts: 2,356
billbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond repute
Re: target tracking in Java

Quote:
Originally Posted by HansJ View Post
Ok, we will try that. Do you know what purpose the gyro serves in the camera code?
I can tell you what is was used for with Labview but not Java. I can only assume the function would be similar, but have no proof of that.

In Labview it had two functions. 1) It was used to measure how many degrees the robot rotated after a positioning solution was determined based on the camera image. 2) If no targets were identified in the camera image, it was used to rotate the robot back to the zero degree position established during initialization at boot-up.
__________________
CalGames 2009 Autonomous Champion Award winner
Sacramento 2010 Creativity in Design winner, Sacramento 2010 Quarter finalist
2011 Sacramento Finalist, 2011 Madtown Engineering Inspiration Award.
2012 Sacramento Semi-Finals, 2012 Sacramento Innovation in Control Award, 2012 SVR Judges Award.
2012 CalGames Autonomous Challenge Award winner ($$$).
2014 2X Rockwell Automation: Innovation in Control Award (CVR and SAC). Curie Division Gracious Professionalism Award.
2014 Capital City Classic Winner AND Runner Up. Madtown Throwdown: Runner up.
2015 Innovation in Control Award, Sacramento.
2016 Chezy Champs Finalist, 2016 MTTD Finalist
Closed Thread


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Team 39: Target AND Field Oriented Drive (Target tracking) TotalChaos Robot Showcase 13 02-03-2010 15:55
Target Tracking Igor1201 NI LabVIEW 5 26-01-2010 22:14
2009 Target Tracking Uberbots NI LabVIEW 0 16-01-2009 02:18
Autonomous Target Tracking at Regionals PhilBot Control System 49 23-03-2007 13:38
Camera Tracking Target Jade Programming 3 20-01-2007 01:41


All times are GMT -5. The time now is 03:36.

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