|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Good way to find distance
Does anyone have a recommended way to find distance from the hoop. It seems like range finders will have interference and cameras are hard to use...
Any suggestions? Should we go with a camera? If so is there a good program to use or do we have to do this ourselves... |
|
#2
|
||||
|
||||
|
Re: Good way to find distance
This may be helpful to you.
http://firstforge.wpi.edu/sf/docman/...root/doc1302/1 |
|
#3
|
|||||
|
|||||
|
Re: Good way to find distance
[quote=jpconnors9;1110151]It seems like range finders will have interference [quote]Have you tried it, or relied on someone else's guesses?
I say you should try it yourself, because I don't think you'll see the kind of interference you think you will. Get 2 or 3 more and have them all running at the same time to see what happens. Don't believe everything you read. Even this. Always try it yourself. |
|
#4
|
|||
|
|||
|
Re: Good way to find distance
Quote:
Quote:
|
|
#5
|
|||
|
|||
|
Re: Good way to find distance
I won't speculate too much on how sonar sensors will perform in the competition but I will say this: I personally have had sonar sensors "ring" each other and it caused a lot of issues. We had 4 sensors on the edges of a box and sensors that were facing away from each other could pick up the return from their opposite. So we ended up having the north sensor pick up signals from the south sensor.
If you call the sensor company they will tell you about this. The solution is to fire the sensors so they are staggered. We ended up firing them in a loop that passed ensured they were never firing at the same time to clear up the problem. I suspect if every robot was using multiple sonar sensors and hammering them as fast as possible something might happen but I have no idea what the interference will be in a real-world scenario. -Mike |
|
#6
|
||||
|
||||
|
Re: Good way to find distance
If you want an interference-free way, do some math. Find the vertices of the target rectangle. If you're pointing at it with a camera of known elevation, the angle to the vertices is linked to the position of the vertices on the camera viewpicture. The height of each vertex is constant and fixed, so now you have an angle and its opposite side in a right triangle, and everything else can be found with a bit of trig.
Of course, no guarantees on accuracy - it'll all depend on your image processing capabilities. |
|
#7
|
||||
|
||||
|
Re: Good way to find distance
You could use ultrasonic sensors. Our team has used them on numerous occasions during past games.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|