Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   First year for Image Processing. Need Help! (http://www.chiefdelphi.com/forums/showthread.php?t=110609)

Greg McKaskle 07-01-2013 20:06

Re: First year for Image Processing. Need Help!
 
The robot control and status packets are being boosted in priority to use the voice level of priority. Other data is at the same priority as last year. The field are also limiting data used by each robot. It should be less likely that any robot hits data limits unless it is due to its own camera or communications traffic.

Greg McKaskle

ctccromer 08-01-2013 09:16

Re: First year for Image Processing. Need Help!
 
So here's my plan. I want to put the camera feed with a crosshair on the drive station (though it's not hugely important if it causes latency issues), so that either looking at the robot during the game or looking through the camera feed, we can aim ROUGHLY at the right area.

Then I want to use the camera to evaluate the (x, y, z) coordinates from the target goal, plug that into an algorithm to slightly adjust and fine-tune the angle the robot is facing, set the shooter's speed/power, and shoot it accurately every time.

So should I code the camera feed on my laptop and the coordinate evaluation/adjustments on the cRIO?

dheerm 08-01-2013 18:58

Re: First year for Image Processing. Need Help!
 
Quote:

Originally Posted by ctccromer (Post 1210584)
So here's my plan. I want to put the camera feed with a crosshair on the drive station (though it's not hugely important if it causes latency issues), so that either looking at the robot during the game or looking through the camera feed, we can aim ROUGHLY at the right area.

Then I want to use the camera to evaluate the (x, y, z) coordinates from the target goal, plug that into an algorithm to slightly adjust and fine-tune the angle the robot is facing, set the shooter's speed/power, and shoot it accurately every time.

So should I code the camera feed on my laptop and the coordinate evaluation/adjustments on the cRIO?

What you are looking for is an overlay. What you would need to do for that is get the camera feed from the robot via software. (i.e. SmartDashboard). Then download some sort of crosshair image in the same resolution as your camera outputs. SmartDashboard can do images and Camera stream so you could simply pull up the image on the SmartDashboard and put it over your Camera feed. Also, you already know the height of the targets, and the height of your camera. So thats how you get the z coordinate. To do x and y, I recommend you read the vision processing guide:
http://wpilib.screenstepslive.com/s/...manual-id=8731


All times are GMT -5. The time now is 21:34.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi