![]() |
SmartDashboard not streaming from M206
Hi CD,
We have been struggling with the camera stream to SmartDashboard. General info about our setup:
We had it working at Pittsburgh but ditched it because it was lagging the DS (assuming now that it was due to FPS being 30). I'll run through everything I can remember we've done to it.
We ended up crashing onto our camera in the quarterfinals. We nabbed another M206 from a friendly team in Milwaukee because our old camera doesn't seem to reset itself correctly. Anyway, the new one was reset and set up the same exact way as the old one. However, now I cannot get a stream with default settings or lower. TL;DR:
EDIT: Upon turning everything on this morning, it miraculously decided to work again... sigh. I did try restarting everything on Thursday but I guess it working again is a good thing. EDIT 2: After changing the FPS settings and power cycling, the stream is not going to the SmartDashboard again although we can go to it in a browser and ping it. It also worked one time yesterday before failing. Back to square 1! We're checking to see if it works at least once more with a full shutdown and reset of everything again. EDIT 3: We've determined that the cause of not working is changing the FPS setting of the M206. If the setting is anything except "Unlimited" or 30 (from the range of 10 to 30) the stream refuses to go through to the SmartDashboard. Does anyone have any ideas on how to lower the FPS while still being able to stream to SmartDashboard? |
Re: SmartDashboard not streaming from M206
I spent some time with a team at the Boilermaker Regional trying to figure out why they weren't getting the camera image reliably on their SmartDashboard. This might just be voodoo, but it seemed to help if they stopped and restarted the dashboard after powering on the robot and waiting for communication to be established. It still took between 15 and 30 seconds for the video to start displaying.
|
Re: SmartDashboard not streaming from M206
We did notice that it took a while to start streaming sometimes while isolating the FPS option problem today. Sadly at FPSes that were not 30 the stream did not start in a span of 5 minutes or so, maybe more.
Our driver station didn't seem to be lagging with the stream up today though (although we only have our shooter withheld). Maybe it will behave better for WI if we can't figure out this issue :) |
Re: SmartDashboard not streaming from M206
We are having similar issues with a M1011 camera and have a similar setup as described by BigJ, except set up camera via the camera's web page. (Basics: 10.te.am.11 in a browser, anonymous viewing enabled, SmartDashboard pointing at 10.te.am.11.)
I can view the camera feed by connecting wirelessly to DAP-1522 and pointing a browser at 10.te.am.11. Camera is set to 10 fps and appears to be consuming considerable resources. We received watchdog errors and sluggish behavior w/ the camera connected and the performance issues go away when we disconnect the camera by disconnecting the Ethernet cable between the bridge and the camera. With the camera connected, reply times to pings to the cRio are remarkably long (~2sec.) I will try setting the fps to 30 as was tried by folks here jus to see if it will display at all, but was trying to reduce the amount of network bandwidth taken up by the camera. Has anyone experienced this behavior and have ideas on how to address it? Thanks, Michael |
Re: SmartDashboard not streaming from M206
Our team has had similar problems with trying to set the fps. When below 26 fps, the SmartDashboard doesn't get an image from the camera.
|
Re: SmartDashboard not streaming from M206
I just noticed this on my portal and forgot about this thread, and just thought I should follow up.
We borrowed a different M206 from another team and still could not stream video with reduced FPS. The robot still lagged at the WI regional with the camera attached. |
Re: SmartDashboard not streaming from M206
Let me say up front that we didn't use the Smart Dashboard, but rather a custom Labview Dashboard, so not sure if our experience is applicable.
The first question is what are you using for you driver station. If it's the classmate, I would suggest trying replacing it with a better laptop. When we first tried streaming video to a classmate years ago we quickly discovered that it was overwhelmed trying to keep up. If fact we found that to solve our lag issues back then, we needed to do the opposite of what you'd think. With a lower frame rate, the classmate can get all the frames, but can't actually decode and render them. So latency went up, and the CPU was maxed out. Highest resolution, no compression, highest framerate, and poof, the classmate would throw the packets away but the ones it got it could render. Swapping the classmate out will eliminate the processing bottleneck, and should allow you to change the network settings. We have a Lenovo laptop, and steam from the camera a gray scale image @ 30 fps, and see no lag. Our tracking is using luminescence so no color needed. Are you using motionJpeg compression, H.624, ? |
Re: SmartDashboard not streaming from M206
We use what I believe is a Toshiba NB505 netbook.
I don't know what video codec we were using, but I didn't change it. |
Re: SmartDashboard not streaming from M206
I still think swapping out the netbook for something beefier might be worth a try.
|
Re: SmartDashboard not streaming from M206
to rule out the better computer theory
our team uses a nice think pad w/ smart dashboard for testing. we cant get any video to appear just the red block PS dont ask me the specs of the think pad it is not my own |
Re: SmartDashboard not streaming from M206
If the smart dashboard is bypassing the cRIO when accessing the camera, then it's hard to imagine how it would cause an issue with the cRIO. For us, there is no code on our cRIO that has anything to do with the camera. The camera is accessed by the driver station and completely bypasses the cRIO.
The driver station can be overwhelmed, run the task manager and see what is happening when it's connecting to the camera. Can you access it via a browser from the driver station? with no noticeable lag? Now there is another way to run things, where you let the cRIO capture the camera data, and send it out. But then you'd be connecting to the cRIO not the camera for the video feed. This would mean that you'd have code that handles the streaming video. This will put load on the cRIO, and is unnecessary if you're access the camera directly. If you have the capabilities, you could hook a network sniffer to capture the traffic to the driver station. There may be some clue there. |
Re: SmartDashboard not streaming from M206
We observed the same behavior. If we did anything to lower the camera frame rate, we'd never see the picture on the (smart) dashboard, just the empty rectangle. We did enough debugging to find that some part of the video stream decoding was reporting a timeout error. It appeared to be timing out if it took more than 33mS to capture a frame.
We replaced the netbook with an new notebook (i5-2430 core, lots of RAM) and saw the same behavior. Eventually, we gave up on the video issues and the frequent crashes (probably due to the reported bug about exchanging C++ double-precision values) and wrote our own dashboard app in Visual Studio Express that could display video streams from both the forward- and backward-facing cameras on the robot and a targeting overlay for the drivers. (That code is freely available on our Google Code site; contact me directly if you're interested.) -Steve Tarr, team 1425 mentor |
| All times are GMT -5. The time now is 20:54. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi