|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
NT Freezing When Camera Is Unplugged
At competitions, when our camera is unplugged (and sometimes when its plugged in), we get an error on the driverstation that says something along the lines of "Camera not found at the specified ip address". We've noticed a direct correlation between this and a ~6-10 second slowdown of the dashboard refreshing, which we believe can be attributed to network tables. Has anyone else had this problem or can anyone help us fix it? It makes our dashboard basically useless which causes significant problems for our drivers. Thank you.
|
|
#2
|
||||
|
||||
|
Re: NT Freezing When Camera Is Unplugged
Quote:
I have not been able to determine the root cause of this behavior, as the camera read is in it's own loop, and when it's not connected, it does not peg out the CPU utilization or anything weird like I would expect. I know Joe Ross experienced this issue as well, as I asked him about the issue when I believed it was the mjpg-streamer read that he provided that was causing the issue. I have determined that his team's code was not at fault, but I don't know what is. Last edited by RyanN : 30-03-2016 at 07:44. |
|
#3
|
||||
|
||||
|
Re: NT Freezing When Camera Is Unplugged
Quote:
|
|
#4
|
|||
|
|||
|
Re: NT Freezing When Camera Is Unplugged
If you can give more details as to what you are using and a repeatable set of steps to cause this, I'll happily look at it. But at the moment, this is a confusing bug report. Freeze is different from slow-down, and this probably has nothing to do with network tables, but more likely the vision client or server.
Greg McKaskle |
|
#5
|
||||
|
||||
|
Re: NT Freezing When Camera Is Unplugged
Quote:
|
|
#6
|
||||
|
||||
|
Re: NT Freezing When Camera Is Unplugged
Quote:
|
|
#7
|
|||
|
|||
|
Re: NT Freezing When Camera Is Unplugged
That is a much better bug report and totally changes where we will start looking. Thanks.
Can we get just a bit more info. What is the robot programmed in, and what template was used to make it. Any details about the camera? Greg McKaskle Last edited by Greg McKaskle : 30-03-2016 at 21:10. Reason: Combine |
|
#8
|
||||
|
||||
|
Re: NT Freezing When Camera Is Unplugged
Thank you for your help, this problem is really making my hair grey. We are programming in labview using the arcade drive template as the base. The camera is an Axis m1013.
|
|
#9
|
|||
|
|||
|
Re: NT Freezing When Camera Is Unplugged
Have you turned on Enable Vision on the Robot Main panel? Or set the Enable Vision global anywhere else in your code?
With the m1013 and other IP and USB cameras, you can have the DB display the images without the roboRIO doing processing. Except for knowing the IP of the camera, you really don't even need a roboRIO for this to work -- just the db and the camera. I'm wanting to understand how the disconnected camera is affecting what is running on the roboRIO. If it is easier than answering questions, please get in touch with me via PM and tell me where to get your code or I'll give you email to give me your code. Greg McKaskle |
|
#10
|
||||
|
||||
|
Re: NT Freezing When Camera Is Unplugged
Quote:
By the way, we turn on vision in robot main. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|