![]() |
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 |
Re: Can you view the webcam from the TCP connection?
Quote:
I'm planning on making a package for it so it can be easily installed from our opkg repo, maybe tonight. We'll see. |
Re: Can you view the webcam from the TCP connection?
Just a fair warning from a New York team. Some regionals have extreme bandwidth issues (New York being one of the most extreme examples). One year(I think 2014) a lot of teams did exactly what you described (using a camera to stream to the driver station) and it created huge amounts of field lag. The event staff had to force everyone to turn off their camera streaming. Probably not relevant to most regionals but if you're reading this thread, it's probably a good idea to talk to other teams at your regional to see if this issue has happened before. If so, it's best not to rely on the camera feed.
|
Quote:
The Javits center really needs to start being more accommodating they know it's a not for profit holding an extremely expensive event. Last year there were similarly sized halls empty at the time so it's not like it was going to get rented out by someone else. |
Re: Can you view the webcam from the TCP connection?
Quote:
Last year, we had two 160x120 streams at 10fps, and had no issues reported. |
Re: Can you view the webcam from the TCP connection?
I just uploaded an ipk of mjpg-streamer. If you just want to view the image without modifying it, it's pretty straightforward. I'll try to write up some more documentation on it at some point.
Installation: https://github.com/robotpy/roborio-packages Notes: https://github.com/robotpy/roborio-p.../mjpg-streamer |
| All times are GMT -5. The time now is 22:37. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi