|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: 2012 Beta Testers
We just finished filling out the Survey... however, when we submit it, it seems to only refresh the page. Anyone else encountering this? We don't get any sort of confirmation that it went through!
Edit: Found our issue... apparently form errors don't really show up well on the site when viewed in Firefox! Last edited by Jon Stratis : 27-08-2012 at 15:29. |
|
#2
|
||||
|
||||
|
Re: 2012 Beta Testers
Thanks for posting reminder... we may do this again, still thinking about it. I do want to ask a question as there is a goal I'd like to pursue. Is there anyone at all that was able to use vision through the driver-station using c++ wind-river? If so please let me know as we would like to gather information on how to do this (e.g. for Beta Exhibition). Thanks.
|
|
#3
|
|||
|
|||
|
Re: 2012 Beta Testers
118 used C++ and a Beagle Bone. I don't really see an issue with doing it on the dashboard. What are your concerns?
Greg McKaskle |
|
#4
|
||||
|
||||
|
Re: 2012 Beta Testers
Quote:
I've never heard of a beagle bone... thanks for info on team 118. I should hook up with them and see if they can help. Hopefully enough teams have tested this new path... and from what I've heard it's been positive results with minimal latency. P.S. If I can figure all of this out... it would be cool to overlay cross hairs on the video image that comes to the driver station... I'll save this research for next iteration. |
|
#5
|
|||
|
|||
|
Re: 2012 Beta Testers
You may be able to find step-by-step instructions, but perhaps you don't need them.
To get an image from the dashboard to the camera, you simply do an http get to start the mjpg stream. You can alternately request individual jpegs. You can do this in LV with the default dashboard, in Java with smart dashboard. You can also write a C/C++ dashboard, but there are no tools in the kit for doing this -- you can use Microsoft or gcc for PC development. Once you have the image, you can use any laptop image processing library you like -- some use OpenCV, some use the NI IMAQ libraries. To send info back to the robot, you can use UDP, TCP, or the smart dashboard. The smart dashboard is the simplest approach, and with some sample code, the UDP and TCP aren't too bad either. As for placing marks on top of the image, the NI IMAQ vision control does this pretty easily, and I'm assuming you can modify the image or similarly overlay it in smart dashboard. Once you start the project, you can ask additional quesitons. Greg McKaskle |
|
#6
|
||||
|
||||
|
Re: 2012 Beta Testers
Quote:
Thanks for this preliminary information... I think for CD I'll just ask some high top level questions for the good of the group... and figure out the best direction to go. What I'd like to do is have a solution that many c++ teams can use without needing to write any JAVA code. So I remember the default dashboard having callback tags or something like this, but it sounds like there is no easy way to somehow bridge the callbacks into a c++ environment. Let me know if this is not true... I know for c# it's possible to write bridge code as we do this for our products at work. If it is possible then perhaps we could offer the bridge code for others to use (since everyone gets the default dash board). Ok so let's look at the C++ dashboard option... I presume this would be something to the effect where it becomes the replacement exe (to replace the default one), and at that point we could easily interface with it. If we went down this route, would it be something we could offer to other teams? I'd be happy to port over the default dashboard from JAVA to c++ for this exe if that sounds like the best direction. If I can get past this first hurdle... it will help clarify the next step for us. Thanks in advance for helping us out. |
|
#7
|
||||
|
||||
|
Re: 2012 Beta Testers
I've spoke with 118 and they went the "http get" path...using UDP packets. (Thanks 118 for this info). We'll pursue this direction as well but instead we'll use Windows and Visual Studio. I figure it will be a more feasible alternative for teams to consider using vision processing on the driver station, but it will be interesting to see how wireless latency compares against high cpu usage video processing on the cRIO. There's probably some info on this comparison else where in CD (I'm going to re-read 341's posts on their latency).
|
|
#8
|
|||
|
|||
|
Re: 2012 Beta Testers
Reading between the lines, I suspect that 118 is doing an HTTP GET to init the mjpeg stream. This is inherently done over TCP. I suspect they sent data back to the cRIO using UDP. Of course the computer doing this work was mounted on their robot, not on the DS.
If you want to do this with the smart dashboard, it would involve writing some windows specific code using gcc or Visual Studio that would read the UDP packet from the DS, parse the info and display it. It would do the TCP GET to get the mjpeg stream opened, and some code to decode or display it. It could also recompile or implement the network table protocol for C++ and use that to do read/writes to the cRIO for sharing data. No need to interoperate with JAVA unless you decide to. Similarly, the LV dashboard does the UDP and TCP work. No network table implementation was made publicly available last year. Greg McKaskle |
|
#9
|
||||
|
||||
|
Re: 2012 Beta Testers
Quote:
Also while I'm here... I'm looking forward to seeing if the Joystick protocol is going to change to use the full HID info. I was thinking of creating an article/feature request about this in terms of being able to use the POV controls on a logitech game pad. I wanted to use that control for this year's game but could not. |
|
#10
|
||||
|
||||
|
Re: 2012 Beta Testers
Quote:
|
|
#11
|
|||
|
|||
|
Re: 2012 Beta Testers
Quote:
The example code ofr vision and tutorial that went with it supported both laptop and cRIO. It didn't integrate it into the dashboard, but you pretty much just needed to copy and paste the loop and connect it to the mjpeg wire. So yeah, no reason not to. If the processing is done when needed or on low resolution images, the cRIO should have plenty juice to process the images. But the added power of the laptop makes it far easier to get a working solution with less optimization. For reference, the cRIO is about 800 MIPs. Image processing is almost entirely integer, so that is a pretty good metric to use. The Atom in the classmates is around 3000 MIPs. Greg McKaskle |
|
#12
|
||||
|
||||
|
Re: 2012 Beta Testers
Quote:
|
|
#13
|
||||||
|
||||||
|
Re: 2012 Beta Testers
Quote:
|
|
#14
|
||||
|
||||
|
Re: 2012 Beta Testers
Quote:
|
|
#15
|
|||
|
|||
|
Re: 2012 Beta Testers
Quote:
I quoted integer benchmarks because many image operations are integer based. The sequence of operations for FRC in 2012 was to decode the JPG, color threshold, convex hull, make particle measurements, and compare the particle scores to target scores. I believe all of those operations are integer based, many of them being applied to every pixel, so lots of integer ops. I'm sure there are some floats used too, but way more integers. A few years ago, the target was the ellipse/circle, and a Hough transform use used for the shape matching. At least the current geometric shape library is entirely Hough-based, I assume it was then. This will have a bigger mix of float operations. Since coordinates in the image are integers and there are so many of them, there will at least be lots of int loads and stores. And in general, image processing libs tend to be optimized. Since ints are still somewhat faster than floats, even with SSE, they will use the fastest approach that gets the right answer. Greg McKaskle |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|