Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Control System (http://www.chiefdelphi.com/forums/forumdisplay.php?f=177)
-   -   2017 Dashboard USB Camera (http://www.chiefdelphi.com/forums/showthread.php?t=153810)

Team2909 17-01-2017 12:41

2017 Dashboard USB Camera
 
Prior to installing the 2017 Update Suite, all we had to do was click the dropdown box and select which camera we wanted. We are using a Logitech USB Webcam. Now with the new Dashboard, when we click the arrow, nothing shows up at all. Can someone please tell us what we are doing wrong?

Mark McLeod 17-01-2017 12:56

Re: 2017 Dashboard USB Camera
 
Try this sequence:
  1. Plug in camera, power up roboRIO & radio
  2. On the PC start the Driver Station
  3. Wait for Communications and Robot Code to go green
  4. Wait for camera 0 to appear as a camera selection (it will take a minute)
  5. After selecting camera 0, if the image remains blank, try hitting the Reset button on the roboRIO (or use the Driver Station Diagnostics tab to choose Restart Robot Code)
  6. Wait for everything to come back
  7. Wait a couple of minutes more for an image to appear.

Hitchhiker 42 17-01-2017 12:59

Re: 2017 Dashboard USB Camera
 
Just wondering, does this mean it can support multiple cameras more easily than last year?

Mark McLeod 17-01-2017 13:01

Re: 2017 Dashboard USB Camera
 
Easier in the sense that the default dashboard comes with two independent camera windows.
You still need to write (duplicate) code to send a second camera stream.
Bandwidth for two cameras still needs to be a consideration, especially with USB cameras.

Hitchhiker 42 17-01-2017 13:08

Re: 2017 Dashboard USB Camera
 
Quote:

Originally Posted by Mark McLeod (Post 1632432)
Easier in the sense that the default dashboard comes with two independent camera windows.
You still need to write (duplicate) code to send a second camera stream.
Bandwidth for two cameras still needs to be a consideration, especially with USB cameras.

Will keep in mind. Thanks for the explanation!

Team2909 17-01-2017 13:43

Re: 2017 Dashboard USB Camera
 
Quote:

Originally Posted by Mark McLeod (Post 1632427)
Try this sequence:
  1. Plug in camera, power up roboRIO & radio
  2. On the PC start the Driver Station
  3. Wait for Communications and Robot Code to go green
  4. Wait for camera 0 to appear as a camera selection (it will take a minute)
  5. After selecting camera 0, if the image remains blank, try hitting the Reset button on the roboRIO (or use the Driver Station Diagnostics tab to choose Restart Robot Code)
  6. Wait for everything to come back
  7. Wait a couple of minutes more for an image to appear.

After doing all this, it still says, "No Camera Selection"

Mark McLeod 17-01-2017 13:55

Re: 2017 Dashboard USB Camera
 
What language and user program are you running on the roboRIO?

RossMN 19-01-2017 16:19

Re: 2017 Dashboard USB Camera
 
Having the same problem here. We're using Java. Wondering if anyone got around this.

Mark McLeod 19-01-2017 16:47

Re: 2017 Dashboard USB Camera
 
Quote:

Originally Posted by RossMN (Post 1633612)
Having the same problem here. We're using Java. Wondering if anyone got around this.

Have you implemented an image server on the roboRIO?
The camera won't work out of the box in Java without a little effort.
https://wpilib.screenstepslive.com/s...e-roborio-2017

The LabVIEW default program includes a camera server, but C++ and Java require the user to add one themselves (it's pretty easy).

RossMN 23-01-2017 09:17

Re: 2017 Dashboard USB Camera
 
Yes, my student had done that. I'm not sure what the root problem was, but he fixed it and wrote up a nice explanation and tried to post it here. Looks like the post didn't make it. I can bug him to repost if anyone else is having the same issues.

Mark McLeod 23-01-2017 09:26

Re: 2017 Dashboard USB Camera
 
Get him to post it.
It's always good to get closure on a successfully resolved issue.
Someone will be searching for the same answer some day.

Murphy 23-01-2017 11:44

Re: 2017 Dashboard USB Camera
 
This is just a quick post after my other one apparently didn't go through or something. I'll fix it up later, but if you stumble upon this and have more questions, feel free to contact me.

Try updating Eclipse. The WPILib has been changed significantly this year.
They've stopped using NIVision in favor of OpenCV and CameraServer(cscore) libraries.
This means old code is no longer compatible with the 2017 driver station.
I have autoupdate on, so all I had to do was notice the little yellow box, click it, accept some license agreement of something, then click next a fewe times.
You may have to manually update. Information for that can be found here. (http://wpilib.screenstepslive.com/s/...-all-languages)
Then you have to reimage the roborio and reinstall java on it. Those can be found here and here. (http://wpilib.screenstepslive.com/s/...g-your-roborio) (http://wpilib.screenstepslive.com/s/...ller-java-only)
Some info on the changes can be found here. (http://wpilib.screenstepslive.com/s/...8-new-for-2017)
None of the old example code works, but some can be found here. (https://wpilib.screenstepslive.com/s...e-roborio-2017)

Steve Warner 24-01-2017 08:54

Re: 2017 Dashboard USB Camera
 
We are having trouble getting a camera image on the 2017 Dashboard too. We are using C++ and have done everything listed in the above post. We downloaded the Intermediate Vision example to the roboRIO. On the dashboard the drop-down box lists both USB Camera 0 and Rectangle but neither of these produces any video. Any ideas?

Steve Warner 24-01-2017 19:23

Re: 2017 Dashboard USB Camera
 
Tonight we found out that the camera works fine when the driver station is run on our programming pic but not on the Classmate. The only change to the Classmate this year has been the FRCUpdateSuite 2017.0.0.

xisybyl 25-01-2017 18:54

Re: 2017 Dashboard USB Camera
 
What is the minimum necessary to display two HD3000 USB cameras on the Dashboard using LabVIEW?


All times are GMT -5. The time now is 11:44.

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