![]() |
Getting distance to the goal
Just wondering what other teams are using/have used to get the distance to the goal. If I have the distance to the goal I can throw the distance into my equation for our shooter and spit out the angle I need the shooter at to make the shot. Really, my quesetion is what is the most efficient manner when using vision processing to get the distance to the 3 ptn frisbee goal? I'm using java right now (doing a build on labview and java)
Any help is much appreciated! |
Re: Getting distance to the goal
We've used a sonic rangefinder which came with fewer headaches but less sophistication and detail than vision processing. This might get the job done for what you need. Mount it centered on the front of the bot and the distance to the wall can be used for calculating shooter speed/shot distance. A voucher from MaxBotix was included in KOP and might be a sensible solution.
|
Re: Getting distance to the goal
Quote:
|
Re: Getting distance to the goal
Most teams I have talked with plan on using the pyramid to their advantage when lining up a shot. I think its a great plan.
|
Re: Getting distance to the goal
I agree, but I'd like to be able to shoot from wherever, speeding things up ten fold.
Anywho, I found the whitepaper on tracking, http://firstforge.wpi.edu/sf/go/doc1302?nav=1 I don't quite understand the whole distance calculations where they are getting the width of the entire field of view. |
Re: Getting distance to the goal
Alrighty, I think I've got it, I'll upload my java class in a few, its untested but theoretically works. I'll have to test it tomorrow at our meeting.
|
Re: Getting distance to the goal
Quote:
|
Re: Getting distance to the goal
I think there's a java API out there, but I'm not sure what it's called. D:
|
Re: Getting distance to the goal
What the you have to do is determine the width of the target in pixels, given a constant value w/ the target centered, and find the hypotenuse, which is your distance
EDIT: Use the height for distance, not the width.The width can vary with angle to the target. Example: Note, these are necessary constants Code:
public static final int IMAGE_WIDTH = 320; |
Re: Getting distance to the goal
Appreciate the reply's! Sorry it took a few hours for me to post the code, left for a few hours for dinner and such..
Code:
package org.first.team2620; |
Re: Getting distance to the goal
Has anyone tested my class I made? I'd like to know any results you have from it. :) I haven't had a chance to try it yet, other things have out weighed it.
|
Re: Getting distance to the goal
Team 53 is going to mount the XBOX Kinect directly on our robot and use OpenCV and an on-board computer (Beagle Board) to process our images.
|
Re: Getting distance to the goal
Quote:
We had to fall back on our preset shooter values, which weren't nearly as accurate or tuned in as our values from our ultrasonic. We spent all of lunch after alliance selections at our second regional tuning our presets, which we almost entirely used in our elimination matches. |
Re: Getting distance to the goal
Quote:
|
Re: Getting distance to the goal
you see, this is what our team did last year, we built a very complex robot (one that had the shooter able to turn, change the angle, had a range finder, camera, etc.) and we ended up not doing too well at competition because the programming was too complex for the programmers, all i'm saying is, if it doesn't work out, shoot from the front or back of the pyramid and have a set angle and speed, that is what we are doing, good luck!
|
| All times are GMT -5. The time now is 02:09. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi