Go to Post I don't know about you but i would love to have a grilled cheese maker in the workshop. - CMBrandon [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 11-03-2015, 18:40
IndySam's Avatar
IndySam IndySam is offline
Registered User
FRC #0829 (Digital Goats)
Team Role: Mentor
 
Join Date: Nov 2005
Rookie Year: 2004
Location: Indy
Posts: 3,360
IndySam has a reputation beyond reputeIndySam has a reputation beyond reputeIndySam has a reputation beyond reputeIndySam has a reputation beyond reputeIndySam has a reputation beyond reputeIndySam has a reputation beyond reputeIndySam has a reputation beyond reputeIndySam has a reputation beyond reputeIndySam has a reputation beyond reputeIndySam has a reputation beyond reputeIndySam has a reputation beyond repute
USB vs IP Camera

We used last years IP camera for driver help on our dashboard. While it functions well the size of the camera has become a problem.

We have a USB camera that we purchased for early vision processing testing that is much smaller and could be fitted into a more advantageous place.

Our programmers are reluctant to switch cameras because the say if something goes wrong with the camera it will crash the code and put us out of a match. Is this assumption accurate, can it be avoided.

We would be using the camera strictly for driver aid.

We are programming in Java

Thanks
__________________
"Champions are champions not because they do anything extraordinary but because they do the ordinary things better than anyone else." —Chuck Knoll


2015 Indianapolis District Winner
2014 Boilermaker Regional Industrial Design Award
2013 Smoky Mountain Regional Industrial Design Award
2012 Boilermaker Engineering Excellence Award
2010 Boilermaker Rockwell Innovation in Control Award.
2009 Buckeye J&J Gracious Professionalism Award
2009 Boilermaker J&J Gracious Professionalism Award
2008 Boilermaker J&J Gracious Professionalism Award
2007 St Louis Regional Winners
Reply With Quote
  #2   Spotlight this post!  
Unread 11-03-2015, 18:44
Michael Hill's Avatar
Michael Hill Michael Hill is offline
Registered User
FRC #3138 (Innovators Robotics)
Team Role: Mentor
 
Join Date: Jul 2004
Rookie Year: 2003
Location: Dayton, OH
Posts: 1,574
Michael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond repute
Re: USB vs IP Camera

Quote:
Originally Posted by IndySam View Post
We used last years IP camera for driver help on our dashboard. While it functions well the size of the camera has become a problem.

We have a USB camera that we purchased for early vision processing testing that is much smaller and could be fitted into a more advantageous place.

Our programmers are reluctant to switch cameras because the say if something goes wrong with the camera it will crash the code and put us out of a match. Is this assumption accurate, can it be avoided.

We would be using the camera strictly for driver aid.

We are programming in Java

Thanks
While there may be a small amount of truth based on how they interface with it, I would just suggest to them to write more robust code so that if something goes wrong with it, it the problem can be detected and code will ignore it.
Reply With Quote
  #3   Spotlight this post!  
Unread 11-03-2015, 18:59
NotInControl NotInControl is offline
Controls Engineer
AKA: Kevin
FRC #2168 (Aluminum Falcons)
Team Role: Engineer
 
Join Date: Oct 2011
Rookie Year: 2004
Location: Groton, CT
Posts: 261
NotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond repute
Re: USB vs IP Camera

This doesn't have to be true. They can write a separate program which interfaces with the USB camera and runs in a separate process from the main Robot program. So that, if the USB program ever dies, it does not crash your robot program.

There are other ways to do this as well in your main program, just handle all the Errors Properly, and test your code with the camera plugged in and unplugged to ensure it is robust and reliable.

However, if it were my team, I would stick with the IP camera, or buy a smaller cheaper IP camera. It sounds like you are not doing any processing, and just accessing the stream of the camera from the camera itself on the driverstation.

Because it appears you aren't doing any processing if you use a webcam via the USB, you will need to write a program on the RoboRio that grabs frames and feeds it to your DS, while this should be a minimal task, it means that you are giving up CPU on ur RoboRio for this task. Which I would never recommend to do, just for a view on the DS. The beauty of using the IP cam is that no additional hardware is required because it is streaming the video for you.

However, if you are ok with giving up some of the CPU, then make a separate program to avoid crashing worries. You can take a look at our OPENCV example we released for the Microsoft USB cam this year. My recommendation is to use our version of OpenCV if you want to access the USB camera via the RoboRio.

While we only tested it with the Microsoft HD3000 camera during beta testing, it should work for other cameras, and will be a step in the right direction if you go the USB camera route.

Hope this helps,
Kevin
__________________
Controls Engineer, Team 2168 - The Aluminum Falcons
[2016 Season] - World Championship Controls Award, District Controls Award, 3rd BlueBanner
-World Championship- #45 seed in Quals, World Championship Innovation in Controls Award - Curie
-NE Championship- #26 seed in Quals, winner(195,125,2168)
[2015 Season] - NE Championship Controls Award, 2nd Blue Banner
-NE Championship- #26 seed in Quals, NE Championship Innovation in Controls Award
-MA District Event- #17 seed in Quals, Winner(2168,3718,3146)
[2014 Season] - NE Championship Controls Award & Semi-finalists, District Controls Award, Creativity Award, & Finalists
-NE Championship- #36 seed in Quals, SemiFinalist(228,2168,3525), NE Championship Innovation in Controls Award
-RI District Event- #7 seed in Quals, Finalist(1519,2168,5163), Innovation in Controls Award
-Groton District Event- #9 seed in Quals, QuarterFinalist(2168, 125, 5112), Creativity Award
[2013 Season] - WPI Regional Winner - 1st Blue Banner

Last edited by NotInControl : 11-03-2015 at 19:05.
Reply With Quote
  #4   Spotlight this post!  
Unread 11-03-2015, 19:08
techhelpbb's Avatar
techhelpbb techhelpbb is offline
Registered User
FRC #0011 (MORT - Team 11)
Team Role: Mentor
 
Join Date: Nov 2010
Rookie Year: 1997
Location: New Jersey
Posts: 1,622
techhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond repute
Re: USB vs IP Camera

Depends on to what the USB camera is plugged in.
Also depends on how you service the USB camera.

If you plug the USB camera into a coprocessor and you feed IP from there you still have a USB camera now on IP.

If you plug the USB camera into the RoboRio now you need to make sure you service the camera in such a way that if something odd happens you continue to run.

Either way works but now you are in competition season.
Might be asking a lot from your programmers to change this right now.

In the past Team 11 used USB cameras from a wide variety of companies on a Gateway netbook on the robot.
The data would be processed on that netbook and instructions like: LEFT, RIGHT, SHOOT where delivered by DIO, UDP or I2C to the cRIO.

Even if the netbook entirely failed these same functions could be operated manually even if it happened in mid-match.
We could stream either a series of pictures or low quality video to the DS computer.

Last edited by techhelpbb : 11-03-2015 at 19:13.
Reply With Quote
  #5   Spotlight this post!  
Unread 11-03-2015, 19:33
iLloyd iLloyd is offline
Registered User
AKA: Isiah L.
FRC #0128 (The Botcats)
Team Role: Programmer
 
Join Date: Feb 2013
Rookie Year: 2013
Location: Grandview
Posts: 27
iLloyd is an unknown quantity at this point
Re: USB vs IP Camera

Be forewarned, if you want to display the camera on a dashboard and use anything but the LabView Dashboard, getting it to work will be a pain. You will have to install a patched widget that someone on Chief Delphi (graciously) made. Even with that widget we couldn't get the camera to work consistently enough were it would be worth it to constantly waste bandwidth.
Reply With Quote
Reply


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 01:58.

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