|
|
|
![]() |
|
|||||||
|
||||||||
| View Poll Results: What did you use for Vision Processing | |||
| Driver Station |
|
28 | 60.87% |
| Laptop/Netbook on Robot |
|
3 | 6.52% |
| Other |
|
2 | 4.35% |
| Did not use/cRIO |
|
13 | 28.26% |
| Voters: 46. You may not vote on this poll | |||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
I am just wondering who was using their Driver Station or an non cRIO computer for Vision Processing in Rebound Rumble, and what are you going to do next year with the new field data limits.
On a side note, because of the $400 limit of parts on the robot and the new allowance of laptops allowed on robots, would people like a price raise limited for laptops/alt. computing devices that could go on the robot? Last edited by Caboose : 23-08-2012 at 18:07. Reason: 42 |
|
#2
|
||||
|
||||
|
Re: Who used Driver Station for Vision?
Where did you hear about new field data limits?
|
|
#3
|
||||
|
||||
|
Page 23 of the Einstein Investigation Report: <http://www3.usfirst.org/node/2426>
Quote:
Last edited by Caboose : 23-08-2012 at 11:41. Reason: 42 |
|
#4
|
||||
|
||||
|
Re: Who used Driver Station for Vision?
Quote:
To transmit a single frame of video with 320x240 resolution and 24bit color is 320*240*24 = 1.8 Mb. Note that the Axis cameras use MJPEG compression as well, so this is a gross overestimate. For targeting purposes, given the network lag that's going to be inherit in the system, you shouldn't need more than 10 fps. Maybe 15 if you want smoother-looking video for display to your drivers. That's still only 30 Mbps (even with uncompressed video). |
|
#5
|
||||
|
||||
|
Re: Who used Driver Station for Vision?
Quote:
![]() |
|
#6
|
||||||
|
||||||
|
Re: Who used Driver Station for Vision?
Here's is what the Q/A said for last year:
Quote:
|
|
#7
|
||||
|
||||
|
Re: Who used Driver Station for Vision?
Due to the events on Einstein some of the rules regarding networks have changed. One of those is that there's going to be a bandwidth limit for each robot and QoS to ensure the driver commands can make it through with as little latency as possible.
|
|
#8
|
|||||
|
|||||
|
Re: Who used Driver Station for Vision?
We ran our vision on Dashboard.
I set the fps limit to 20fps. Due to the design of the control algorithm we used, more frames is better, so we try for 20. We get images at 320x240 (we determined this was the smallest size that achieved adequate resolution with the fish-eye lens we used). If we encounter any bandwidth limit in the future, we'll either run smaller or slower. Running at 320x240 at 10fps is still far better than what the cRio on its own is capable of (I don't think we could get more than 6fps at any resolution, given the amount of processor utilized by non-vision code), and any solution that is weight neutral on the robot the solution we will almost always choose. |
|
#9
|
||||
|
||||
|
Quote:
![]() |
|
#10
|
||||
|
||||
|
Re: Who used Driver Station for Vision?
If you're worried about the price limit and weight, you shouldn't even be looking at laptops. Build your own Mini-ITX board. You can buy/bill the components separately and to your needed specifications, and that way you don't have to carry around the screen. There are power supplies on that site designed for car computers that are tolerant to voltage drop-out as well, so you can even power the computer off of the robot's battery, saving you more weight.
|
|
#11
|
||||
|
||||
|
Re: Who used Driver Station for Vision?
For me the bigger question is, why doesn't FIRST just ditch the cRio and go with laptop controlled robots?
All it would take is a USB motor controller + I/O board (and since we already have FIRST-specific electronics that ship with the cRio, I don't see this as being a huge issue) and almost any laptop and you have a control system that can be easily upgraded/updated, has an independent backup battery (no worries about power loss on your controller), can be programmed in virtually any language, can run vision processing without eating network bandwidth, and, depending on what you get, can be cheaper and have more features than the cRio. |
|
#12
|
||||
|
||||
|
Re: Who used Driver Station for Vision?
Quote:
They had 2 USB cameras connected to it. One high resolution (1080p), low speed (measured 5+ frames a second) and one high speed (measured 30+ frames a second...this was fun to watch and could swamp a single core), low resolution (640x480). It was running Linux and using custom Java software written by the students to process video and send control signals to the cRIO over the robot Ethernet. We tried quite a few USB cameras (I've got a 1 cubic foot box full of them now). Some had terrible white balance. Some didn't work well in Video4Linux but were a little better in Windows (well it was a Microsoft camera LOL). Some had terrible frame rates or highly variable frame rates unexpectedly. We found oddly that several of the very cheap webcams on Amazon worked great ($5 webcam versus $125 webcam and the $5 webcam works better for this...go figure). (I didn't mention exactly which cameras because I don't want to take all the challenge out of this.) One of the original concerns that prompted this design which has now spanned 2 years of competition (we actually thought about this the year before and didn't have any weight to spare for it, though our soon to be programming captain made some very impressive tests) was the bandwidth sending video to the driver's station. We had a great deal of problems locating working clear samples of Java code for the cRIO that could process video so this seemed like an idea worth testing (mind you I know the cRIO can do this we just couldn't get the samples to work or to function in a way we preferred). Though we didn't use it, OpenCV is an extremely functional and professional vision library you can call in many languages. Our students actually communicated with Video4Linux (V4L) which OpenCV actually uses as well (though it can use other solutions to get the video sources). Our team uses a lot of Linux. The programmers who worked on this part were quite comfortable with it and to my knowledge no mentor provided technical support because they didn't need to. The netbook had Windows 7 on it and we removed it. I'm quite sure from my own work professionally that you could use Windows, Linux, BSD or Mac OSX and get workable results even with a single core Atom CPU (we originally tested with a Dell Mini 9 which is precisely that at the time it was running Ubuntu 9). My advice (take it or leave it) is try not to think you need to process every frame and every pixel of every frame. Though we used Java (most precisely OpenJDK) I personally tested PyGames and it worked just fine stand alone. If someone else is interested in trying it this shows you most everything you need to know: http://www.pygame.org/docs/tut/camera/CameraIntro.html I had that interfaced with a NXT controller for an experiment and that was also controlled with Python code. Quote:
A few people warned us this year about the netbook we used and with proper mounting there are plenty of examples of our robot smashing over the bump in the center of the field at full throttle. We did that in practice on our own field and on the real field literally well over 150 times. No issues. Course we did have an SSD in it. Also doesn't FIRST allow you to use other laptops for the driver's station and doesn't that create to some extent the same support issue? I grant you the DS is basically Windows software so that did sort of reduce the variability. However, there's nothing at all stopping FIRST from producing a Linux distro all their very own. This would give them control over the boot times, the drivers, the interfaces and the protocol stacks. It's really much the same problem FIRST faces if they put DD-WRT or OpenWRT on the robot APs. I assure everyone that a laptop for processing video on the robot and literally entirely in lieu of the cRIO (with a replacement for the digital side car) can be done and I have no problems proving it. Last edited by techhelpbb : 27-08-2012 at 10:29. |
|
#13
|
||||
|
||||
|
Re: Who used Driver Station for Vision?
Quote:
Did you do any testing to compare your accuracy against a lower resolution? |
|
#14
|
||||
|
||||
|
Re: Who used Driver Station for Vision?
Quote:
*Edited top Question* Last edited by Caboose : 23-08-2012 at 18:07. Reason: 42 |
|
#15
|
||||
|
||||
|
Re: Who used Driver Station for Vision?
That's what I had assumed, but I'm curious if you noted how much larger the errors were. I'd also be interested in the errors of the stereo distance measurement vs the perspective distance measurement as a function of distance, if you have them.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|