|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: 2011 Camera Code on Driver Station
I plan on using reflection from infrared if possible, if not LED off of the reflection tape on the scoring peg. The Camera will detect this. I have set the camera to grey-scale since full color is unnecessary and take up more space. Maybe use the reflection detected to also detect a circle with some help from the occlusion feature. This can further be used possibly to calculate distance from that circle or help align the robot to the column.
|
|
#2
|
|||
|
|||
|
Re: 2011 Camera Code on Driver Station
Quote:
The software then returns the target information (not the image) to the cRio where you would then do your own processing. |
|
#3
|
|||
|
|||
|
Re: 2011 Camera Code on Driver Station
The latest LabVIEW update also contains an example under the vision category that shows how to statistically locate the columns. It runs on the development computer and uses a folder of images as inputs, so even if you are going to code in Java or C++, you can use it to tune colors, adjust lighting, etc.
Post any questions you have about how it operates. Greg McKaskle |
|
#4
|
|||
|
|||
|
Re: 2011 Camera Code on Driver Station
I will be releasing the alpha before mid-day tomorrow. Keep your eyes pealed.
|
|
#5
|
||||
|
||||
|
Re: 2011 Camera Code on Driver Station
Quote:
on the kickoff field it was square. So personally I would not plan on using the circle in your processing, because it very well may not be a circle at competition |
|
#6
|
||||
|
||||
|
Re: 2011 Camera Code on Driver Station
Could you make the output the pole positions? Also, I admire your effort, the camera code is incredibly complex and hard. When and where will you post this code?
|
|
#7
|
|||
|
|||
|
Re: 2011 Camera Code on Driver Station
I will consider that for the next release. At the moment it reports each point in each pole (x, y, size) the poles are divided by 2 bytes with a value of 255
|
|
#8
|
||||
|
||||
|
Re: 2011 Camera Code on Driver Station
Where is the source code?
|
|
#9
|
|||
|
|||
|
Re: 2011 Camera Code on Driver Station
Good observation. It will be available in the same place after I clean it up a bit ^_^
[EDIT] Its up Last edited by drakesword : 09-02-2011 at 13:25. |
|
#10
|
||||
|
||||
|
Re: 2011 Camera Code on Driver Station
what do you guys think of this code? and how do you transfer the processing from the crio to the classmate using the classes from frc?
|
|
#11
|
|||
|
|||
|
Re: 2011 Camera Code on Driver Station
Quote:
The new "robot radio" has multiple ports so you can plug the cRio in one port and the camera in another. The cRio then doesn't assign an ip to the camera the router does which then you can use to pull images to the classmate. The program then retrieves the images, processes it, then spits data back to the robot via UDP |
|
#12
|
||||
|
||||
|
Re: 2011 Camera Code on Driver Station
How is UDP used, and what is UDP?
|
|
#13
|
|||||
|
|||||
|
Re: 2011 Camera Code on Driver Station
UDP stands for User Datagram Protocol. It doesn't need any channel setup handhaking before being used, it has a lot less overhead than TCP, and it's used where guaranteed delivery of network packets is less important than the ability to communicate quickly.
See Wikipedia for a bit more detail. See RFC 768 for a lot more detail. |
|
#14
|
|||
|
|||
|
Re: 2011 Camera Code on Driver Station
Found several bugs.
First java on the cRIO does not support UDP. Changed to TCP. Second the protocol was sending a bunch of empty data (roughly 800 bytes) changed to be dynamicly sized. I am still fixing the samples for release. Expect a java alpha on monday |
|
#15
|
|||
|
|||
|
Re: 2011 Camera Code on Driver Station
Sorry guys I was sick yesterday and the ftp has been down on my server.
{EDIT} Actually the entire server is down -_- Last edited by drakesword : 15-02-2011 at 12:27. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|