Go to Post every year presents new challenges. What worked well last year might well be a clunker-bot this year. keep an open mind! - KenWittlief [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 07-02-2015, 19:06
aweso_meme aweso_meme is offline
Registered User
FRC #4687
 
Join Date: Feb 2014
Location: Minnesota
Posts: 20
aweso_meme is an unknown quantity at this point
Multiple Cameras on Smart Dashboard

Hi all,

I'm having trouble with Smart Dashboard. I have 2 USB webcams, yet Smart Dashboard will only display one. I hit view -> add -> USB Camera and only a blank widget appears (it is the same color as the default smart dashboard background color). My code involves everything from Simple Vision example (pretty much copy and paste), but I have also written server.startAutomaticCapture("cam1"); in an attempt to add the second camera. If I right click the second widget mentioned above, there is no option for which camera I would like.

As a FYI, we are running Java for our system.

Does anyone know how to add this second camera to the smart dashboard? Thanks for your time.
  #2   Spotlight this post!  
Unread 07-02-2015, 19:26
RufflesRidge RufflesRidge is offline
Registered User
no team
 
Join Date: Jan 2012
Location: USA
Posts: 985
RufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant future
Re: Multiple Cameras on Smart Dashboard

Quote:
Originally Posted by aweso_meme View Post
Does anyone know how to add this second camera to the smart dashboard? Thanks for your time.
Write a whole bunch of custom code. The CameraServer is clearly coded for a single camera. You will have to make significant modifications to the camera server and likely to the USB Camera widget to display two at once.

To display one at a time and choose between them, set the image being sent yourself (see the Intermediate vision example).
  #3   Spotlight this post!  
Unread 08-02-2015, 08:23
aweso_meme aweso_meme is offline
Registered User
FRC #4687
 
Join Date: Feb 2014
Location: Minnesota
Posts: 20
aweso_meme is an unknown quantity at this point
Re: Multiple Cameras on Smart Dashboard

Thanks for your reply. Unfortunately, we do not have very much time to write lots of custom code. We really would like both cameras displaying. Is there any way to do this without the use of smart dashboard/lots of code? is there some elegant code out there? If not, that's all fine and I will do what RufflesRidge suggested.

Thanks all.
  #4   Spotlight this post!  
Unread 09-02-2015, 10:07
EricS-Team180's Avatar
EricS-Team180 EricS-Team180 is offline
SPAM, the lunchmeat of superheroes!
AKA: Eric Schreffler
FRC #0180 (SPAM)
Team Role: Engineer
 
Join Date: Apr 2002
Rookie Year: 2001
Location: Stuart, Florida
Posts: 561
EricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond repute
Re: Multiple Cameras on Smart Dashboard

You could send one stream to the driver station and another to a web browser through another port.
Eric
__________________

Don't PANIC!
S. P. A. M.
  #5   Spotlight this post!  
Unread 09-02-2015, 16:30
cbf cbf is offline
Registered User
FRC #2877
 
Join Date: Feb 2012
Location: Newton, MA
Posts: 74
cbf is just really nicecbf is just really nicecbf is just really nicecbf is just really nicecbf is just really nice
Re: Multiple Cameras on Smart Dashboard

Be aware, that in previous years at least, there wasn't enough bandwidth in the Field Management System for multiple video streams.

One year I tried increasing our video feed from 320 x 240 to 640 x 480. It hung our robot about 10 seconds into the match because we couldn't get commands to it. Had to back that out quickly.

Two 320 x 240 streams are about half the bandwidth of 640 x 480, but there's still no guarantee that it will work. You don't want to do something that works fine in your shop but utterly fails when you're connected at the competition.

There was a document last year the discussed FMS bandwidth. If/when I have more time I'll look for it.
  #6   Spotlight this post!  
Unread 10-02-2015, 09:41
EricS-Team180's Avatar
EricS-Team180 EricS-Team180 is offline
SPAM, the lunchmeat of superheroes!
AKA: Eric Schreffler
FRC #0180 (SPAM)
Team Role: Engineer
 
Join Date: Apr 2002
Rookie Year: 2001
Location: Stuart, Florida
Posts: 561
EricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond repute
Re: Multiple Cameras on Smart Dashboard

True that!
We had similar experiences.

Here's some good documentation from 2168, that references the FMS and the new hardware for 2015: 2168_beta_test and here is the white paper that cbf mentions: FMS white paper

2168 has this to say about bandwidth:
Quote:
NI states the new 2015 protocol should only use about 90kbits/sec vs the 900kbits/sec of the 2014 protocol, so this should give more headroom for users wishing to utilize the link bandwidth. This does not change my recommendation. Try to limit all comms between the Robot and DS to 5MB/s max to ensure smooth operations.
(sage advice -tho we're pushing it this year )

Also, search the various Vision System threads for 2015 (maybe you already have)

I'm not leading our vision system efforts, but I'll volunteer brk (Brian) as a good resource. Feel free to send him a PM...

thanks
Eric
__________________

Don't PANIC!
S. P. A. M.

Last edited by EricS-Team180 : 10-02-2015 at 09:50.
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 12:38.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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