![]() |
What information can we access from the camera?
What information do we have access to regarding the camera? I heard about Height of the target, angle from the robot to said target, etc. What other information is returned?
|
Re: The CMUcam
Quote:
|
Re: The Google Camera
I think you are a bit confused.
Google was announced as a sponsor of FIRST last year, and so the camera in the kit is a digital camera for taking pictures donated by Google for all teams to document their build/team progress. The camera which is going to be on robots, is the return of 2005's CMU Cam system. This is used for defining the green color, and going to be used for the purposes you are thinking of. Quote:
|
Re: What information can we access from the camera?
I just edited the thread title, correcting the confusion between the Google ditigal camera and the CMU camera. Hopefully that will clear things up and provide the right answer for the person who asked the question.
|
Re: What information can we access from the camera?
Quote:
|
Re: The Google Camera
Quote:
|
Re: What information can we access from the camera?
Yes, sorry, I meant the IFI camera, not the Google one.
We're developing a system for auto-tracking the top goal autonomously, so that our "gun" will always be pointing at the correct angle to fire the ball into the goal, using some basic laws of projectile motion. I'll make a thread about it if the team decides they like it and it goes anywhere. |
Re: What information can we access from the camera?
Quote:
-Kevin |
Re: What information can we access from the camera?
Yeah, I could compute the distance if I need to, but I thought I heard them say that the distance was already returned right in the camera code itself.
...and would I be safe in assuming that the robot controller can do the basic Trig functions? Sin Cos Tan and the like? |
Re: What information can we access from the camera?
Quote:
-Kevin |
Re: What information can we access from the camera?
Code:
Balls are scooped in between the front wheels, being shuffled toward What I was thinking, is that the program constantly calculates the launch vector based on the speed at which the mechanism launches balls, and rotates and tilts the turret. I'm taking Physics now and we've already gone over Projectile motion, so it shouldn't be too hard to figure out the Angle at which the turret has to be positioned based on how far away you are from the goal. Note that this design requries that the ball be fired at the same speed every time, or have some way to determine how fast the ball will be fired. |
Re: What information can we access from the camera?
So far, I intend to mount the camera next to the launcher. This way, as long as I mirror the up/down motion of the camera, the laucnher should be always aiming correctly.
Does anyone know if we got the mount for the camera they used at the kick off, or if the plans are available for it.. it's a lot nicer then the one we used last year. I find it nice we have a physics teacher as one of our mentors :) |
Re: What information can we access from the camera?
2 Attachment(s)
Attached is a Windows app for version 2.0 of the .NET framework that I used when I reviewed the camera code last month. The app will display what the robot thinks its seeing and the values for the pan and tilt servos. Directions for sending the data are included in the zip file. Extract the exe and the dll to the same folder and run it.
|
Re: What information can we access from the camera?
devicenull,
Yes we recived the pan/tilt unit that was shown at kickoff, it should be in your electronics box in a bag marked frc-pantilt-01, I have not yet found directions on how to assemble the camera, but will be making some and posting them if noone beats me to it. |
Re: What information can we access from the camera?
|
Re: What information can we access from the camera?
Quote:
|
Re: What information can we access from the camera?
Quote:
During development of the camera software I used one of these standalone LCD graphics displays to display in real-time what the software is doing. It's very similar to your software and kinda fun to watch. If there is demand for it, I'll release a revised version of terminal.c that will send output to: 1) IFI terminal, 2) your software, or 3) to the LCD that I mentioned above. -Kevin |
Re: What information can we access from the camera?
Quote:
-Mike Team 1654 |
Re: What information can we access from the camera?
on IFI's documentation of the camera, there is a section where it describes the possible input and output values for the camera.
what to look for? there is a page or two full of tables with the specific fcodes needed for the CMUcam to recognize and access its values. these values go anywhere from inputtint eh color values, to (i dont really know where it ends, to tell you the truth im still reqading it myself :D ) --ss32 |
Re: What information can we access from the camera?
Quote:
Edit: The red box in the middle represents the target area defined by the two ALLOWABLE_ERROR #defines in tracking.h. The green box that's moving around is the green target and the single green pixel in the middle of the green blob is the centroid of the blob. The tracking software is designed to keep the centroid pixel within the red box. If the centroid pixel moves outside of the box, the software will move the servos in an attempt to get the centroid pixel back into the box. It's kind of fun to watch. -Kevin |
Re: What information can we access from the camera?
Quote:
-Mike |
Re: What information can we access from the camera?
Quote:
-Kevin |
Re: What information can we access from the camera?
Quote:
That display looks very nice. A bit expensive for just playing around, but very cool. Is the interface to it pretty straightforward? Does it have primitive graphics function included such as draw circle, draw rect, draw text? What kind of update rate can you get on it over the serial port? Very impressive. -Joe |
Re: What information can we access from the camera?
is there a way to use this in the dashboard? is it allowed?
|
Re: What information can we access from the camera?
Quote:
Quote:
-Kevin |
Re: What information can we access from the camera?
When using the code provided by Kevin Watson, I've gotten some weird calculations for the distance to the target (we're talking 300 inches in error). I believe this is because the camera is calculating the wrong tilt angle, and hopefully, I'll have the values calculated before today's over. If anyone has a tilt angle calculation that works, post a link or post it here, please.
|
Re: What information can we access from the camera?
Quote:
-Joe |
Re: What information can we access from the camera?
Quote:
-Kevin |
Re: What information can we access from the camera?
Quote:
One reason there is error in the angle/distance calculation is that there's no telling which part of the vision target the camera will start tracking. It depends on how the search algorithm catches it. It could start tracking the bottom, top, side..anywhere. It won't automatically aim for the center. Since the target is 200 mm tall this can result in significant error. For us, with the camera at the same position sometimes the angle varied by a degree or two, which believe me, can equal a significant amount in distance..there are many ways to approximate and get more accurate results, but it'll never be dead on...anyways, has anyone else gotten better results? |
Re: What information can we access from the camera?
Quote:
Cheers! -Joe |
Re: What information can we access from the camera?
We've calibrated our camera tilt angle based on where it is parallel to the frame, and we've been seeing fairly accurate results (less than 5 inches error) with the target at heights a little less than 20 inches short of where it will be. The problem was that the servo's neutral position was slightly below the horizontal.
So just make sure that the values you use in calculating tilt angle are valid. |
Re: What information can we access from the camera?
Does anyone know the degree of error the camera's program/servo will accept? We were testing pan today, and we determined that (from 14 feet) it had a margin of error of approximately 2.5 degrees. Can anyone confirm this or contradict it, and, do you know of the degree of error is the same for tilt? Thanks.
|
Re: What information can we access from the camera?
Quote:
-Kevin |
Re: What information can we access from the camera?
Quote:
If you are using the common six wheel drive then the robot will tilt differently depending whether it is on the back four wheels or the front four wheels (given that the center wheels are slightly lowered). Could this be providing extra error on the tilt? something to think about, but it shouldn't effect the pan angle... |
Re: What information can we access from the camera?
Quote:
You might try reducing the size of the "deadband", or you could read the mx and my values from the camera to tell you how far off-center the target actually is. |
Re: What information can we access from the camera?
Quote:
Thanks. |
Re: What information can we access from the camera?
Quote:
Code:
// These values define how much error, in pixels, is Quote:
Code:
int Pan_Error; |
Re: What information can we access from the camera?
Quote:
Also, if you (theoretically, as I'm not on programming and not sure how it works) make the size of the space that the program looks to fill bigger, then would it be more accurate? So it has to fill more and therefore moves more often to keep it full? I don't know if this will work; again, I have no idea how the program operates. That's why I'm on IT: I tell them what to do, and they do it. WAY too confusing for me. Anyways,thanks for your help with this. |
| All times are GMT -5. The time now is 00:11. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi