![]() |
Can you view the webcam from the TCP connection?
Hi,
I have been struggling to get the USB Camera to work with the RoboRIO for a long time. Now that I see that the new game has many obstacles that make it hard for the driver to see, I desperately want the camera to work. I was reading the Game Manual for this year and I saw under 2.4 Section this: Quote:
Many thanks! Can't wait to start building the actual robot! |
Re: Can you view the webcam from the TCP connection?
Quote:
|
Re: Can you view the webcam from the TCP connection?
Quote:
Code:
try: |
Re: Can you view the webcam from the TCP connection?
Quote:
Quote:
|
Re: Can you view the webcam from the TCP connection?
Quote:
|
Re: Can you view the webcam from the TCP connection?
You might try removing the 'except:' to see if an error gets thrown. It may be instructive and explain what the problem is.
Or better yet: Code:
|
Re: Can you view the webcam from the TCP connection?
Quote:
|
Re: Can you view the webcam from the TCP connection?
Netconsole, so using --nc
|
Re: Can you view the webcam from the TCP connection?
Quote:
|
Re: Can you view the webcam from the TCP connection?
I just tried out the USBCamera class RobotPy 2016.0.0 with the default LabVIEW dashboard, and it doesn't work. Looking at tcpdump, the RoboRIO seems to be rejecting the incoming connections for some reason.
I'll debug this for a little bit, but honestly as I've said before the CameraServer stuff in python is *really* terrible, and if I can't get it to work relatively quickly then I'll probably remove it from the next release. |
Re: Can you view the webcam from the TCP connection?
Well, one possibility is that you don't have pynivision installed. I didn't have it installed, and there was no way to know that it was using the 'dummy camera' instead of the real camera.
When I install pynivision, I get a "Connection reset by peer" error. The problem is that when the LabVIEW dashboard connects to the server and it encounters the wrong version of networktables (we haven't upgraded to 3.0 yet), it disconnects from the camera. When I block the NetworkTables connection, then the camera works fine. It's pretty terrible, the CPU usage is at 51% without the robot code actually doing anything (as compared to ~7% without the camera code). I wouldn't recommend using it, and I suspect we'll remove the camera stuff from the next release. I'm tracking this issue here: https://github.com/robotpy/robotpy-wpilib/issues/172 |
Re: Can you view the webcam from the TCP connection?
What do you recommend we do then? Should we use the raspberry pi idea? Or just get a cheap IP Camera: http://www.amazon.com/D-Link-DCS-930...ords=ip+camera
Also, would that IP camera even be legal? |
Re: Can you view the webcam from the TCP connection?
Quote:
That's what we did a few years back after we blew up our axis cameras and weren't going to spend the money it took the replace them |
Re: Can you view the webcam from the TCP connection?
I would use mjpg-streamer.
|
Re: Can you view the webcam from the TCP connection?
Quote:
to answer my own question, download the tar.gz from the Sourceforge and compile it |
| All times are GMT -5. The time now is 03:18. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi