|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Getting DS to show camera feed
I'm using an 8 slot cRIO and an M1013 AxisCamera. I ran the AxisCamera configuration utility from the Driver Station and it said the username and password were both successfully changed to FRC.
My code was compiling fine before, but since I added the camera code I haven't been able to compile. The compilation just stalls at Code:
[cRIO] FPGA Hardware GUID: 0xa14c11bde4bb64aef6a86fc52a294cd9 [cRIO] FPGA Software GUID: 0xa14c11bde4bb64aef6a86fc52a294cd9 Code:
import edu.wpi.first.wpilibj.camera.AxisCamera; Code:
AxisCamera camera; Code:
camera = AxisCamera.getInstance(); Code:
ERROR: S_errno_EHOSTDOWN(0x00000043): Failed to connect to the camera ...in CreateCameraSocket() in C:/WindRiver/workspace/WPILib/Vision/AxisCameraParams.cpp at line 457 Code:
ERROR: S_errno_EINPROGRESS(0x00000044): Failed to connect to the camera ...in CreateCameraSocket() in C:/WindRiver/workspace/WPILib/Vision/AxisCameraParams.cpp at line 457 |
|
#2
|
||||
|
||||
|
Re: Getting DS to show camera feed
I'm no expert on connecting to the camera through the cRIO, but from the error message, it seems like the code cannot find the camera at the specified IP.
Are you sure you've got the camera at the right IP? In the past we used something like this: Code:
AxisCamera.getInstance("10.21.68.11");
http://team2168.org/javadoc/edu/wpi/...a.lang.String) If your camera is on cRIO ethernet port 2, the IP should be 192.168.0.90, If it's connected on the ethernet switch, it should be 10.x.y.11 |
|
#3
|
|||
|
|||
|
Re: Getting DS to show camera feed
Thanks! Now my code compiles, but I'm still not getting a camera feed on the DriverStation
printing camera.freshImage() returns true. EDIT: Hmmmm... Now it's printing false and I haven't changed anything. Strange. Last edited by Negative 9 : 23-03-2013 at 16:25. |
|
#4
|
||||
|
||||
|
Re: Getting DS to show camera feed
Sorry, I may have led you down the wrong path.
If all you're trying to do is get the image to show on the default dashboard, I think you just need to configure your camera correctly. I could be wrong, but you shouldn't need special code on the cRIO unless you're trying to process images locally on it. See these links: http://wpilib.screenstepslive.com/s/...manual-id=8559 http://wpilib.screenstepslive.com/s/...view-dashboard Sorry I cant be of more help, I don't have any hardware here to test with at the moment and we have used smart dashboard in the past, and it's as simple as adding a widget and pointing it to the right IP: Getting started w/ smartdashboard http://wpilib.screenstepslive.com/s/...sion-installer |
|
#5
|
||||
|
||||
|
Re: Getting DS to show camera feed
I'm not sure if you've solved the problem yet but if you haven't, which dashboard are you using?
|
|
#6
|
|||||
|
|||||
|
Re: Getting DS to show camera feed
If you're programming in Java I would assume you are using the SmartDashboard...correct?
Last edited by JohnFogarty : 02-04-2013 at 12:36. Reason: typo. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|