![]() |
URL for MjpegServer from CameraServer/USB Camera
I'm looking to use a USB camera connected to the robot for GRIP development. I know that GRIP doesn't accept the dashboard stream, but the MJPG stream supposedly works. However, I can't figure out what URL to point GRIP to if I want to actually use the stream.
Currently, our code looks something like this (forgot to commit to github so don't have the exact code): Code:
//Robot.java -> RobotInit |
Re: URL for MjpegServer from CameraServer/USB Camera
Quote:
The way to access the code from GRIP would be Code:
http://roborio-TEAM-frc.local:1181/?action=stream |
Re: URL for MjpegServer from CameraServer/USB Camera
Really? Thank you! I'm guessing any additional streams (for example if we have 2 cameras) would use port 1182? I saw some sort of reference to using the next available port.
|
Re: URL for MjpegServer from CameraServer/USB Camera
Quote:
|
Re: URL for MjpegServer from CameraServer/USB Camera
Thanks! Didn't get a chance to test until today (building was closed for bad weather) but it worked really nicely. One (hopefully) last question: is there any way to increase the resolution of the mjpg stream? Currently GRIP shows the stream as a tiny thumbnail which is workable but a little annoying.
|
Re: URL for MjpegServer from CameraServer/USB Camera
Quote:
|
Re: URL for MjpegServer from CameraServer/USB Camera
Thanks! Didn't know that the USBCamera object affected the stream like that. Good to know.
|
Re: URL for MjpegServer from CameraServer/USB Camera
What would the mjpegserver be if I am accessing the camera from a raspberry pi? Currently I am just typing raspberrypi.local:1185 into a browser to see the camera image but I would like to get it to appear on my smartdashboard.
|
Re: URL for MjpegServer from CameraServer/USB Camera
Quote:
|
Re: URL for MjpegServer from CameraServer/USB Camera
Quote:
|
Re: URL for MjpegServer from CameraServer/USB Camera
I would also like to know how to get the camera stream from the raspberry pi on the dashboard. Even better would be an unmodified Labview Dashboard, as nobody on my team is interested in using the other options. I'm fairly certain it is possible with the right things published to network tables, but who knows...
|
Re: URL for MjpegServer from CameraServer/USB Camera
Quote:
Ryan |
Re: URL for MjpegServer from CameraServer/USB Camera
Yes, the actual stream can't be over network tables. But if you start reading the CameraServer class you find it is publishing certain information to NetworkTables... I believe the LabView dashboard uses this information to provide the camera drop-downs. It looks like all of CameraServer's dependencies are available on the Pi so I'm going to try to deploy it there and see what happens.
|
| All times are GMT -5. The time now is 15:27. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi