Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   CameraServer IP Address? (http://www.chiefdelphi.com/forums/showthread.php?t=151949)

Jayd009 18-10-2016 21:23

CameraServer IP Address?
 
Hello everyone,

I have a quick question. What is the IP Address of a USB Camera that is setup with the cameraserver class? We're trying to run GRIP on the driver station (after failing to run it on a Raspberry Pi & RoboRIO) and I'm trying to set up the camera as an IP Source.

Thanks,

Jonathan

P.S. Is my code correct?
Code:

       
server = CameraServer.getInstance();
camera = new USBCamera("cam0");
camera.setExposureManual(20);
camera.updateSettings();
server.startAutomaticCapture(camera);


Kyle Heaton 18-10-2016 21:25

Re: CameraServer IP Address?
 
I have no experience with GRIP, but I imagine you could find the IP of a camera through the Networking and Sharing Center on your computer (The one connected to said camera), or through the device manager.

Peter Johnson 18-10-2016 23:41

Re: CameraServer IP Address?
 
See https://www.chiefdelphi.com/forums/s...d.php?t=141952. Unless this has changed since then, GRIP doesn't support USB cameras on the roboRio using CameraServer at present due to the non-standard protocol used by the current CameraServer.

We're planning on fixing this for 2017 with a new camera server implementation that provides standard MJPEG-over-HTTP. In the meantime you can look at using mjpg-streamer instead of CameraServer (see https://github.com/robotpy/roborio-p.../mjpg-streamer and https://www.chiefdelphi.com/forums/s...d.php?t=135737). The IP address would be the IP address of the roboRio.


All times are GMT -5. The time now is 20:30.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi