![]() |
Axis Camera Not Displaying On Smart Dashboard
My team has been trying to get an Axis Camera (M1011) working for about a week now, with little success.
The Axis Camera light blinks green (we configured it to do that when it was being accessed), but the SmartDashboard "CameraServer Stream Viewer" displays red with "NO CONNECTION" text in the top left, for both the "Rectangle" and "Axis Camera" drop-downs that appear in the properties window. We are running this code, with the camera static addressed at 10.3.3.31. Code:
public void enableRawCam() {enableRawCam() is run in the constructor of another class, which is initialized in robotInit(). No errors display in the driverstation, but when we FTP into the Rio and get the log, we get errors as follows: Code:
Exception in thread "CSListener" VideoException [edu.wpi.cscore.VideoException: wrong property type]Any help would be greatly appreciated. |
Re: Axis Camera Not Displaying On Smart Dashboard
Take a look at this ScreenSteps page for more information about this bug:
http://wpilib.screenstepslive.com/s/...-faqs-for-2017 |
Re: Axis Camera Not Displaying On Smart Dashboard
Quote:
Code:
ERROR: connect() to 10.3.3.31 port 80 error 101 - Network is unreachable (TCPConnector.cpp:175) |
Re: Axis Camera Not Displaying On Smart Dashboard
Can you still access the camera through the web dashboard?
|
Re: Axis Camera Not Displaying On Smart Dashboard
Yes, the web dashboard still works fine.
|
Re: Axis Camera Not Displaying On Smart Dashboard
I would restart your entire robot (roboRIO, radio, and camera).
|
Re: Axis Camera Not Displaying On Smart Dashboard
We have restarted multiple times. This problem has persisted for the past 4 days.
|
Re: Axis Camera Not Displaying On Smart Dashboard
If you open OutlineViewer (Eclipse Menubar -> WPILib -> Run Outline Viewer) What do you see listed under /CameraPublisher/{Camera name}/streams?
|
Re: Axis Camera Not Displaying On Smart Dashboard
I just got back from our workshop, so I don't have access to the robot at the moment, but I will check tomorrow.
|
Re: Axis Camera Not Displaying On Smart Dashboard
Tomorrow please also try running this code in a new project and test if the camera connects.
Code:
import edu.wpi.first.wpilibj.CameraServer; |
Re: Axis Camera Not Displaying On Smart Dashboard
After a private message discussion, we discovered another antivirus program was running and preventing SmartDashboard from connecting to the camera.
|
Re: Axis Camera Not Displaying On Smart Dashboard
The camera stopped working again today, working fine over USB but repeatedly connecting/disconnecting several times a second when connecting via wireless. We were able to resolve the problem, and I would like to share the solution in case anyone else is encountering this issue.
In the NetworkTables outline viewer, our Axis camera had a value "streams" which contained a string array with 1) the wireless URL of the camera (10.3.3.2:something) 2) the USB URL of the camera (172.22.11.2:something) The solution was to delete the USB URL. I believe what was happening was that the camera would connect over wireless, see that it had another element in the array that took priority and try and connect to it, fail on the connection, and re-connect over wireless. |
Re: Axis Camera Not Displaying On Smart Dashboard
Quote:
|
| All times are GMT -5. The time now is 11:43. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi