Go to Post Yeah those design flaws kill you in the end. You especially hate finding out about them in competition. - Koko Ed [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 Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 08-01-2015, 19:14
CLeonard CLeonard is offline
Registered User
FRC #5107 (The Neurotoxins)
Team Role: Programmer
 
Join Date: Feb 2014
Rookie Year: 2014
Location: Upland, CA
Posts: 8
CLeonard is an unknown quantity at this point
USB Camera Issues

We are trying to view the images on the Dashboard by calling the Java CameraServer class, but we get nothing. Has anyone figured out how to view the images from a USB camera plugged into the roborio or does anyone know if there is a separate program for usb cameras?

(We are using a PS3 Eye camera if that makes a difference.)
Any suggestions?
  #2   Spotlight this post!  
Unread 08-01-2015, 19:19
Merfoo's Avatar
Merfoo Merfoo is offline
Registered User
FRC #0955 (CV Robotics)
Team Role: Programmer
 
Join Date: Feb 2012
Rookie Year: 2012
Location: America
Posts: 48
Merfoo is an unknown quantity at this point
Re: USB Camera Issues

The java example projects "Simple Vision" and "Intermediate Vision" both show how get an image from a usb camera and how to put it on the driverstation.
http://imgur.com/cMKc9YJ
  #3   Spotlight this post!  
Unread 08-01-2015, 19:48
CLeonard CLeonard is offline
Registered User
FRC #5107 (The Neurotoxins)
Team Role: Programmer
 
Join Date: Feb 2014
Rookie Year: 2014
Location: Upland, CA
Posts: 8
CLeonard is an unknown quantity at this point
Re: USB Camera Issues

We have tried running both of those programs on the roborio with both a user defined name (e.g. "cam0") and the resource name. We haven't gotten anything back from either. Both report the supposed camera's fps, but there is no indication that the camera is being used.

Any ideas to troubleshoot it?
  #4   Spotlight this post!  
Unread 08-01-2015, 19:50
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,590
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: USB Camera Issues

Did you make sure the camera shows up in the web dashboard as cam0? I can't find anything that says the PS3 Eye is supported by GenICam.

Last edited by Joe Ross : 08-01-2015 at 19:54.
  #5   Spotlight this post!  
Unread 08-01-2015, 19:54
CLeonard CLeonard is offline
Registered User
FRC #5107 (The Neurotoxins)
Team Role: Programmer
 
Join Date: Feb 2014
Rookie Year: 2014
Location: Upland, CA
Posts: 8
CLeonard is an unknown quantity at this point
Re: USB Camera Issues

Quote:
Originally Posted by Joe Ross View Post
Did you make sure the camera shows up in the web dashboard as cam0?
By default it has no name, so we define it as cam0. The name is saved between web sessions, but is lost on shutdown/power cycle.
  #6   Spotlight this post!  
Unread 08-01-2015, 20:31
Joey1939's Avatar
Joey1939 Joey1939 is online now
Registered User
AKA: Joey Holliday
FRC #1939 (Kuhnigits)
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2014
Location: Kansas City, Missouri
Posts: 143
Joey1939 has a spectacular aura aboutJoey1939 has a spectacular aura aboutJoey1939 has a spectacular aura about
Re: USB Camera Issues

On our test board mDNS isn't working, so the USB Camera viewer on the SmartDashboard gave an error that it couldn't connect to roboRIO-1939.local. We went into the SmartDashboard preferences and disabled mDNS (We set a static ip on the roboRIO). With mDNS disabled the USB Camera worked just fine.
  #7   Spotlight this post!  
Unread 08-01-2015, 20:46
CLeonard CLeonard is offline
Registered User
FRC #5107 (The Neurotoxins)
Team Role: Programmer
 
Join Date: Feb 2014
Rookie Year: 2014
Location: Upland, CA
Posts: 8
CLeonard is an unknown quantity at this point
Re: USB Camera Issues

Quote:
Originally Posted by Joey1939 View Post
On our test board mDNS isn't working, so the USB Camera viewer on the SmartDashboard gave an error that it couldn't connect to roboRIO-1939.local. We went into the SmartDashboard preferences and disabled mDNS (We set a static ip on the roboRIO). With mDNS disabled the USB Camera worked just fine.
We can connect to the roborio just fine and test the motor controllers and joysticks. I haven't set up the wireless yet, so we are using usb to connect to the roborio. I'll set up the router and test if we can view it then.
  #8   Spotlight this post!  
Unread 08-01-2015, 20:54
CLeonard CLeonard is offline
Registered User
FRC #5107 (The Neurotoxins)
Team Role: Programmer
 
Join Date: Feb 2014
Rookie Year: 2014
Location: Upland, CA
Posts: 8
CLeonard is an unknown quantity at this point
Re: USB Camera Issues

Quote:
Originally Posted by Joe Ross View Post
Did you make sure the camera shows up in the web dashboard as cam0? I can't find anything that says the PS3 Eye is supported by GenICam.
http://www.chiefdelphi.com/forums/sh....php?p=1423773
This thread recommended the ps3 eye and other people seemed to think that it should work.
  #9   Spotlight this post!  
Unread 09-01-2015, 00:47
Merfoo's Avatar
Merfoo Merfoo is offline
Registered User
FRC #0955 (CV Robotics)
Team Role: Programmer
 
Join Date: Feb 2012
Rookie Year: 2012
Location: America
Posts: 48
Merfoo is an unknown quantity at this point
Re: USB Camera Issues

On the dashboard did you guys change the type of camera to get feedback from?
Attached Thumbnails
Click image for larger version

Name:	cameraTypeDashboard.PNG
Views:	98
Size:	102.8 KB
ID:	17782  
  #10   Spotlight this post!  
Unread 09-01-2015, 00:51
CLeonard CLeonard is offline
Registered User
FRC #5107 (The Neurotoxins)
Team Role: Programmer
 
Join Date: Feb 2014
Rookie Year: 2014
Location: Upland, CA
Posts: 8
CLeonard is an unknown quantity at this point
Re: USB Camera Issues

Quote:
Originally Posted by Merfoo View Post
On the dashboard did you guys change the type of camera to get feedback from?
Yes, we tried all options for camera feedback.


Even though there is no visual and the camera's indicator light is off, the dashboard still displays an fps. Should it?
  #11   Spotlight this post!  
Unread 09-01-2015, 16:01
catacon catacon is offline
Registered User
FRC #1444 (Lightning Lancers)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2006
Location: St. Louis
Posts: 154
catacon is a splendid one to beholdcatacon is a splendid one to beholdcatacon is a splendid one to beholdcatacon is a splendid one to beholdcatacon is a splendid one to beholdcatacon is a splendid one to beholdcatacon is a splendid one to behold
Re: USB Camera Issues

Can you try another camera? The PS3 Eye may not be support natively by the roboRio.
  #12   Spotlight this post!  
Unread 09-01-2015, 16:22
wt200999's Avatar
wt200999 wt200999 is offline
Texas Instruments
AKA: Will Toth
FRC #3005 (Robochargers)
Team Role: Mentor
 
Join Date: Mar 2006
Rookie Year: 2004
Location: Dallas, Texas
Posts: 325
wt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud of
Send a message via MSN to wt200999
Re: USB Camera Issues

Quote:
Originally Posted by CLeonard View Post
http://www.chiefdelphi.com/forums/sh....php?p=1423773
This thread recommended the ps3 eye and other people seemed to think that it should work.
I had posted in that thread that the PS3 eye works on the beaglebone and Jetson TK1. For the Jetson board I had to compile & install a kernel module before I could get it working. I suspect the same may be true for the roboRIO, though I have not begun to investigate.

The easiest route would probably be to use the HD3000 since this is what was developed & tested on. Is there a specific need to use a cheaper camera as the OP of the thread you linked had wanted?
__________________
Programming in LabVIEW? Try VI Snippets!

FIRST LEGO League 2004 - 2005
FRC Team 870 Student 2006 - 2009
FRC Team 3005 Mentor 2013 -
  #13   Spotlight this post!  
Unread 09-01-2015, 16:40
catacon catacon is offline
Registered User
FRC #1444 (Lightning Lancers)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2006
Location: St. Louis
Posts: 154
catacon is a splendid one to beholdcatacon is a splendid one to beholdcatacon is a splendid one to beholdcatacon is a splendid one to beholdcatacon is a splendid one to beholdcatacon is a splendid one to beholdcatacon is a splendid one to behold
Re: USB Camera Issues

I believe the PS3 Eye camera is support by Video4Linux. It should be possible to install that and use it on the roboRio, correct? That should allow access to the Eye camera.
  #14   Spotlight this post!  
Unread 09-01-2015, 20:49
CLeonard CLeonard is offline
Registered User
FRC #5107 (The Neurotoxins)
Team Role: Programmer
 
Join Date: Feb 2014
Rookie Year: 2014
Location: Upland, CA
Posts: 8
CLeonard is an unknown quantity at this point
Re: USB Camera Issues

Quote:
Originally Posted by catacon View Post
I believe the PS3 Eye camera is support by Video4Linux. It should be possible to install that and use it on the roboRio, correct? That should allow access to the Eye camera.
Quote:
Originally Posted by wt200999 View Post
I had posted in that thread that the PS3 eye works on the beaglebone and Jetson TK1. For the Jetson board I had to compile & install a kernel module before I could get it working. I suspect the same may be true for the roboRIO, though I have not begun to investigate.

The easiest route would probably be to use the HD3000 since this is what was developed & tested on. Is there a specific need to use a cheaper camera as the OP of the thread you linked had wanted?
Quote:
Originally Posted by catacon View Post
Can you try another camera? The PS3 Eye may not be support natively by the roboRio.
When I had posted this question I was under the impression that the other programmers had installed the appropriate drivers when I was away. That wasn't the case, so we are now using a new camera.

For any teams looking to use a PS3 Eye camera, you will need to use the gspca-ov534 ARM drivers. It seems to require make to install(which the roborio doesn't have), so you will have to manually download and extract the drivers for roborio install. It isn't worth it imo, but if that's your only option, start your search with gspca-ov534.
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 13:46.

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