|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: Shooter Aiming Methods
Another way to think about it is, "you're writing the autoaim for autonomous anyway, might as well use it for teleop as well"
|
|
#2
|
|||||
|
|||||
|
Re: Shooter Aiming Methods
The people that are auto aiming:
Do you guys off put vision processing onto something else? |
|
#3
|
|||||
|
|||||
|
Re: Shooter Aiming Methods
I'm thinking of putting vision processing into the operator's brain and combine the best of automatic and manual aiming. Instead of having the computer struggle to identify a target 50' away with different lighting, I want to have the operator look at the camera feed and click the center of the goal. Then, the computer uses that to figure out how much the robot needs to turn and how high to aim the shooter to hit the goal. The output from this will be fed to PID controllers for robot and shooter angles. When the robot has slewed to position and the shooter has spun up to speed, the operator fires a disc and makes corrections if it misses. Then, the operator rapidly fires their remaining 3 discs.
|
|
#4
|
||||
|
||||
|
Re: Shooter Aiming Methods
Quote:
Additionally, you're then forcing one of your operators to either move his hands between two input devices (his typical input device and the computer), or be entirely dedicated to the computer (thus leaving both the driving and firing to the other driver). Forcing your operators to have to look at the controls rather than the robot* and move their hands between multiple devices are some of the cardinal sins of OI design for FRC. *the obvious exception to this is when focusing on a camera feed on the OI. |
|
#5
|
|||||
|
|||||
|
Re: Shooter Aiming Methods
Quote:
|
|
#6
|
||||
|
||||
|
Re: Shooter Aiming Methods
So you're assuming that as your distance from the target changes, so will its height in your camera's field of vision at a predictable rate? I'd recheck that assumption if I were you. If you're only moving in the axis orthogonal to the goal, this would be true. But does it hold true once you introduce the second (or third) axes of motion?
Last edited by Lil' Lavery : 11-01-2013 at 14:35. |
|
#7
|
||||
|
||||
|
Re: Shooter Aiming Methods
Quote:
If the camera is kept at a fixed height, and a fixed angle, and you are directly in front of the goal, you've essentially limited your movement to the axis orthogonal to the goal. If you move left and right (perpendicular axis) the shape of the goal becomes trapezoidal, but if you use the centre of the bounding box of the trapezoid as your reference, you can compensate for the additional axis of movement. The trick is finding a camera height and angle where there is enough change in the goal's height to give you meaningful information - AND where you can keep the goal in the field of view at every spot on the field you want to shoot from. |
|
#8
|
||||
|
||||
|
Re: Shooter Aiming Methods
Last year our team tries vision processing with an non-axis camera and we never used it because it was not as accurate as we wanted and was very slow. If you do try vision processing I suggest using a raspberry pi or something similar.
|
|
#9
|
|||
|
|||
|
Re: Shooter Aiming Methods
We had the camera streaming directly to the driver's station/class mate last year. We would do the vision processing there and send relevant coordinate info to the robot to make the position adjustments. Lots of teams did this last year, they gave an example last year that was setup for this.
|
|
#10
|
||||
|
||||
|
Re: Shooter Aiming Methods
Quote:
Also, a rotating shooter is probably much more complicated to do for what it's worth. if you've played catalyst, or done some math, the angle of error for these shots is actually pretty high, compared to previous year's games. |
|
#11
|
|||
|
|||
|
Re: Shooter Aiming Methods
My opinion is that controlling the angle vertically will be more important than rotational angle control. We have wide targets, but they aren't tall.
|
|
#12
|
||||
|
||||
|
Re: Shooter Aiming Methods
Using the speed of the shooter and a table of experimented speeds vs distance can also overcome the short goal height.
|
|
#13
|
||||
|
||||
|
Re: Shooter Aiming Methods
Check out this post. It's not directly related to shooter aiming, but it does have some useful qualitative observations about shooter wheel speed and slipping: http://www.chiefdelphi.com/forums/sh...2&postcount=55 |
|
#14
|
||||
|
||||
|
Re: Shooter Aiming Methods
For vision processing, I believe I am going to setup a system that uses vision processing, but at a minimal level. Last year, we wrote some code to attempt and follow the targets at all times. This didn't seem to fit to the game and so this year we are going to revise that method. The labview code for vision targeting from last year is a really good reference for those of you trying to figure it out. The only change you have to make is when determining the aspect ratio subscore, you have to compare it to the targets aspect ratio this year instead of the aspect ratio from last year (18 by 24). I am just going to divide the width and the height and then later use that number to determine what target the camera is currently looking at. I can then throw out the aspect ratio subscore when determining if the camera is looking at a target or not and use the other 3 subscores as the determining factor (convex hull operation score, or the rectangle coverage %, and the vetical and horizontal line scores).
As for actually using the vision information, I believe that we may go with just a single button that activates a vertical alignment of the shooter. Since the target is so wide and just limited in height, the shooter then would line up vertically and then hand over control to the operator. The horizontal alignment would just be from the driver. This allows for just a quick rough alignment of the robot and then the operator would only have to perform quick slight fine tuning. Any thoughts? Last edited by stingray27 : 10-01-2013 at 13:59. |
|
#15
|
||||
|
||||
|
Re: Shooter Aiming Methods
Here's my PLANS for this year (final results may vary):
1) Auto-aiming system with a shooting system that does NOT move on a turret or anything. It can aim up/down slightly, but that's the only axis it moves on and only to an extent 2) I'm switching to a controller this year and my very first idea for coding the robot was to not only make the joysticks turn and move the robot, but also code it so that while I have the left trigger held down, make the joysticks turn and move the robot at 0.25 normal speed. This way you don't have to JUUUUUST BARELY NUDGE the turning joystick a bunch of times to line up the shot -- you can manually aim the whole ROBOT (not the shooter on a turret) at the goal, then use an algorithm to aim the shooter's motor speed and vertical height, NOT horizontal angle |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|