Go to Post Well i guess the only thing left for me to do is tip my hat and call Karthik, Chris Hibner, EricH and Bill Gold my daddy. - JackN [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

 
 
 
Thread Tools Rating: Thread Rating: 4 votes, 5.00 average. Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 30-01-2017, 18:55
TheGuyWhoCodes's Avatar
TheGuyWhoCodes TheGuyWhoCodes is offline
Registered User
AKA: Christopher Ariagno
FRC #1806 (S.W.A.T)
Team Role: Programmer
 
Join Date: Jan 2016
Rookie Year: 2015
Location: Smithville MO
Posts: 9
TheGuyWhoCodes is on a distinguished road
Lift Tracker - 1.0

LIFT TRACKER - SWAT 1806


S.W.A.T 1806 is proud to announce the first Lift Tracking software of the 2017 game FIRST Steamworks. No longer will mentors and coaches have to yell at the programmers to get vision tracking working, it's here. The software will recognize the distance from the target, and the angle to the target. This will also run on different processing computers like the PI and Kangaroo with relative ease. You can also easily edit this software by using the included GRIP file and generate the code that you like, no more messing with pesky HSV!

How to install:
  1. Install opencv 3.X on whatever computer it's running on from here
  2. Download NetworkTables 3.0 (inside repo) and make sure it's in the build path
  3. Download the repo
  4. Run GRIP with the included project file, and tune your values to your liking, and export the code and overwrite everything in LiftTracker.java BE SURE TO NOT DELETE LINES 303-310, KEEP IT SOMEWHERE IN THAT CODE
  5. Export the project as a runnable jar
  6. Run it using command line or a batch file (or .sh file if you are on linux)
Before you run it though, you need to calculate the distance constant. This is a pretty easy task and should take under 10 min. Choose 5 distances for the robot to sit (12, 24, 48, 60, 72 in). Move your robot to each of these distances and record the variable lengthBetweenContours, then write that down. Multiply the distance and lengthBetweenContours and write what you get down. After you do that for all of the values, average everything and that's the distance constant. There is a variable in the code that you can change named DISTANCE_CONSTANT so you can easily change it

This is the GitHub link

If you have any questions, feel free to post a comment or make an issue on the GitHub page and I'll be happy to look at it. Currently this is in beta, so please contact me for corrections.

Thanks to:
  • Fauge7, you a G
  • TowerTracker 1.0 for giving us some inspiration on what to do
  • S/O to the people on the FRC Discord for overcoming the FRC Discord

FAQ:


Q:What camera did you guys use

A: Microsoft Lifecam HD3000 @ 640 x 480

Attempt #3 at trying to post my thread
Reply With Quote
 


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 22:45.

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