![]() |
SmartDashboard can't connect to Axis Camera
My team has been trying unsuccessfully for the last two years to get the Axis camera to work with the WPICamera extension in SmartDashboard.
I started the dashboard from the command line in order to see error output, and I have been consistently seeing this error for some unknown reason: Code:
edu.wpi.first.wpijavacv.WPICamera$BadConnectionExceptionTime is running short to actually start testing algorithms and our shooting platform, so a fast response would be very much appreciated. |
Re: SmartDashboard can't connect to Axis Camera
If the sources are available for the WPIJavaCV library I would be willing to dive into that to try and debug what is happening. It appears that none of the code is available at FirstForge, which really surprises me (or at least it's not allowing my user account there any access).
If I leave the dashboard up for a long time (several minutes), it eventually seems to grab a connection to the camera and displays fine from that point on. Perhaps some issue with a timeout not being set generously enough? Our camera's frame rate can sometimes hiccup when being viewed from a browser, but I don't see why that would cause connection issues. |
Re: SmartDashboard can't connect to Axis Camera
Are you using a 206?
|
Re: SmartDashboard can't connect to Axis Camera
Quote:
|
Re: SmartDashboard can't connect to Axis Camera
Quote:
On our Thursday meeting we had the 206 in working order (however with some occasional connection failures), came back this morning with output cycling between "No accelerated colorspace" and connection failure. |
Re: SmartDashboard can't connect to Axis Camera
Ah, well this is good news then. We just ordered an M1011 to have a backup camera for competition and to test that the issue wasn't with our 206. Hopefully we will have the same experience as you and the M1011 will work consistently.
Do you happen to know if the source for WPIJavaCV + WPICameraExtension is available? I would really like to get to the bottom of its behavior with the 206. I also have reason to believe that there's a resource leak in the code as well. Running for ~20 minutes after streaming begins results in SmartDashboard crashing with a DirectByteBuffer.get call failing. |
Re: SmartDashboard can't connect to Axis Camera
Just to make one final post here:
We've received an M1011 camera and confirmed that the 206 is indeed a very unreliable camera for connecting to SmartDashboard. The new camera works every time that we boot up a WPICameraExtension widget. |
Re: SmartDashboard can't connect to Axis Camera
Quote:
|
Re: SmartDashboard can't connect to Axis Camera
It definitely seems like there's a good amount of flakiness with the WPICameraExtension. I'm disheartened that the author has yet to post; all I would like is the source to this to be able to debug the issue for everyone that's facing it.
It may even be something as simple as a connection timeout that needs to be adjusted - because once the feed is established it remains up without issue, correct? If someone is aware of who the author is (Brad Miller?), can someone PM him to please take a look at this thread? EDIT: Or if someone is aware of how to obtain the source to build everything, that works too. |
Re: SmartDashboard can't connect to Axis Camera
Quote:
Code:
ffplay -f mjpeg -i http://10.0.63.11/mjpg/video.mjpgCode:
C:\MinGW\bin>ffplay -f mjpeg -i http://10.0.63.11/mjpg/video.mjpg |
Re: SmartDashboard can't connect to Axis Camera
1 Attachment(s)
Our team is having the same kinds of problems. SmartDashboard crashes and camera feed issues. I don't know enough about either to do useful debug, but I did figure out how to get to the SmartDashboard source code. I've attached a document explaining how to use it from NetBeans. It may not be 100% correct, but should be enough to get you going. I don't know what version of source was used to build the 1.0.4 installer; it doesn't seem to be documented anywhere.... Hope someone can actually FIX the problem!
|
Re: SmartDashboard can't connect to Axis Camera
I created a ticket for this on the FIRSTForge project for WPILib (albeit it appears to be a SmartDashboard project issue).
http://firstforge.wpi.edu/sf/go/artf...3608510482 20 Kevin O'Connor stated that the issue is known and a fix is in the works. It may help to make any camera setting changes you can to improve the frame rate form the camera, as the issue appears more often when the frame rate drops below 25fps. I noticed the feed is much smoother on the 1011 than the 206 when viewing from a browser. The source is also available as part of the SmartDashboard code here (FIRSTForge account needed): http://firstforge.wpi.edu/integratio...ystem=exsy1002 Once my team's code is complete I can dedicate some time to trying to debug the extension, but hopefully this will help anyone else experiencing the issue in the meantime. |
New SmartDashboard Posted!
From Mr O'Conner:
Quote:
|
Re: New SmartDashboard Posted!
Quote:
|
| All times are GMT -5. The time now is 10:14. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi