Go to Post My opinion doesn't matter at inspection. - DonRotolo [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
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 23-01-2015, 16:37
zenged zenged is offline
Registered User
FRC #2875
 
Join Date: Jan 2015
Location: new york , long island, csh HS
Posts: 2
zenged is an unknown quantity at this point
Unhappy Need help with USB camera in smartdashboard!

Initially my team couldn't even get the network camera to work... after a long 3 days we figured out we needed to run smart dash in 32 bit. Now we want to get a USB Camera working.. its been about 5 days since we started to attempt to solve this problem. we have tried everything about usb cameras in the API (http://first.wpi.edu/FRC/roborio/rel... SBCamera.html)
yet it still dose not work. Please help we're desperate at this point. Thanks!!
Reply With Quote
  #2   Spotlight this post!  
Unread 23-01-2015, 17:10
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,559
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Need help with USB camera in smartdashboard!

Have you tried the Simple Vision example? It shows how to use the CameraServer class.
Reply With Quote
  #3   Spotlight this post!  
Unread 23-01-2015, 17:31
TimTheGreat's Avatar
TimTheGreat TimTheGreat is offline
ArchdukeTim
FRC #1418 (Vae Victis)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2011
Location: Falls Church
Posts: 234
TimTheGreat has a spectacular aura aboutTimTheGreat has a spectacular aura aboutTimTheGreat has a spectacular aura about
Re: Need help with USB camera in smartdashboard!

Quote:
Originally Posted by Joe Ross View Post
Have you tried the Simple Vision example? It shows how to use the CameraServer class.
Where can I find this example?
__________________
There are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies, and the other way is to make it so complicated that there are no obvious deficiencies. The first method is far more difficult.



2012 - Gracious Professionalism - Greater DC
2014 - Regional Finalist - Virginia | Industrial Design - Virginia | Regional Finalist - Greater DC
2015 - Innovation in Control - Greater DC
2016 - District Event Winner - VAHAY | Innovation in Control - VAHAY | District Event Winner - MDBET | Industrial Design - MDBET | District Champion - CHCMP | Innovation in Control - CHCMP
Reply With Quote
  #4   Spotlight this post!  
Unread 23-01-2015, 17:46
markmcgary's Avatar
markmcgary markmcgary is offline
Software Mentor
FRC #4322 (Clockwork Oranges)
Team Role: Mentor
 
Join Date: Feb 2012
Rookie Year: 2012
Location: Fullerton, CA
Posts: 170
markmcgary is just really nicemarkmcgary is just really nicemarkmcgary is just really nicemarkmcgary is just really nicemarkmcgary is just really nice
Re: Need help with USB camera in smartdashboard!

We are running Java and this post helped us. We added the code in robotInit() (Iterative Robot) and we had a USB camera image displayed in the standard dashboard while the robot was connected to the driver station, even when disabled. This code should be portable to C++ also.
Reply With Quote
  #5   Spotlight this post!  
Unread 24-01-2015, 20:30
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,559
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Need help with USB camera in smartdashboard!

Quote:
Originally Posted by TimTheGreat View Post
Where can I find this example?
In the eclipse example projects.
Reply With Quote
  #6   Spotlight this post!  
Unread 25-01-2015, 20:06
Rosbots Rosbots is offline
Registered User
FRC #5572
 
Join Date: Jan 2015
Location: United States
Posts: 6
Rosbots is an unknown quantity at this point
Re: Need help with USB camera in smartdashboard!

If you get a broken pipe error you are probably using a 64 bit version of the JDK. Switch to the 32 bit version as the camera will not work otherwise..
Also on the simple vision example you may need to change "cam0" to "cam1".

Check the Roborio web page to see where the camera is attached.


Good Luck,
Stefano
Rookie Team 5572 - Rosbots
Reply With Quote
  #7   Spotlight this post!  
Unread 27-01-2015, 16:51
jreneew2's Avatar
jreneew2 jreneew2 is offline
Alumni of Team 2053 Tigertronics
AKA: Drew Williams
FRC #2053 (TigerTronics)
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Vestal, NY
Posts: 192
jreneew2 has a spectacular aura aboutjreneew2 has a spectacular aura aboutjreneew2 has a spectacular aura about
Re: Need help with USB camera in smartdashboard!

We are having the broken pipe error and were wondering how to actually change the jdk to the 32-bit version. We are using windows 7 64 bit eclipse and java. Does it matter if we are using C++ or Java?

Thanks.
Reply With Quote
  #8   Spotlight this post!  
Unread 27-01-2015, 18:38
TheOracle TheOracle is offline
Registered User
no team
 
Join Date: Jan 2015
Location: Vestal, NY
Posts: 1
TheOracle is an unknown quantity at this point
Re: Need help with USB camera in smartdashboard!

Quote:
Originally Posted by jreneew2 View Post
We are having the broken pipe error and were wondering how to actually change the jdk to the 32-bit version. We are using windows 7 64 bit eclipse and java. Does it matter if we are using C++ or Java?

Thanks.
I'm having the exact same problem. If anyone has any ideas, it would be extremely helpful.

Thanks,
Reply With Quote
  #9   Spotlight this post!  
Unread 30-03-2015, 13:17
stopyourself stopyourself is offline
Registered User
FRC #2335 (Sargon)
Team Role: Leadership
 
Join Date: Apr 2014
Rookie Year: 2013
Location: Prairie Village
Posts: 35
stopyourself is on a distinguished road
Re: Need help with USB camera in smartdashboard!

Is there another thread with this answer? I cannot find x32, and am receiving the same errors.
__________________
2013-2016: Team 2335
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 08:35.

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