Go to Post We talked to a team in Las Vegas and next year there will be another team with a 25 drive train. The west coast may never be the same. - nuggetsyl [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 31-01-2012, 21:08
cooltext cooltext is offline
Registered User
FRC #0835
 
Join Date: Jan 2012
Location: Michigan
Posts: 32
cooltext is an unknown quantity at this point
Crio doesn't find Camera images

Hello,

So I set up the camera with the camera setup utility, to connect through the router. (10.xx.yy.11). The problem is that I can see the image on the dashboard, but my code doesn't find the image. I know this sounds kind of weird, but when I used "camera.getImage();" it doesn't return an image and I get a null pointer exception error. Any Ideas?
Reply With Quote
  #2   Spotlight this post!  
Unread 01-02-2012, 19:25
severhale severhale is offline
Registered User
FRC #4097
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Northampton, MA
Posts: 10
severhale is an unknown quantity at this point
Re: Crio doesn't find Camera images

I've got the exact same problem, anyone know what's going on?
Reply With Quote
  #3   Spotlight this post!  
Unread 01-02-2012, 21:35
nickpeq nickpeq is offline
Turing-complete
FRC #1255 (Blarglefish)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Baytown, TX
Posts: 60
nickpeq is an unknown quantity at this point
Re: Crio doesn't find Camera images

Quote:
Originally Posted by cooltext View Post
Hello,

So I set up the camera with the camera setup utility, to connect through the router. (10.xx.yy.11). The problem is that I can see the image on the dashboard, but my code doesn't find the image. I know this sounds kind of weird, but when I used "camera.getImage();" it doesn't return an image and I get a null pointer exception error. Any Ideas?
Did you call getInstance() first? (I imagine so, since it appears on the dashboard, but, just in case...)
Reply With Quote
  #4   Spotlight this post!  
Unread 02-02-2012, 07:00
cooltext cooltext is offline
Registered User
FRC #0835
 
Join Date: Jan 2012
Location: Michigan
Posts: 32
cooltext is an unknown quantity at this point
Re: Crio doesn't find Camera images

thanks for your reply, but I found the problem. First make sure your camera is set to "10.te.am.11", than make sure it is plugged into the d-ling bridge. Then in the code, make sure instead of the plain .getInstance(); use the .getInstance("10.te.am.11"); so the crio can communicate with the camera. Also set the Camera up with the updated setup utility.
Reply With Quote
  #5   Spotlight this post!  
Unread 02-02-2012, 09:08
severhale severhale is offline
Registered User
FRC #4097
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Northampton, MA
Posts: 10
severhale is an unknown quantity at this point
Re: Crio doesn't find Camera images

Thanks so much cooltext! I'll try this out as soon as i can. too bad we already reset the camera and now have to reconfigure it...
Reply With Quote
  #6   Spotlight this post!  
Unread 12-02-2012, 22:41
duane's Avatar
duane duane is offline
Registered User
FRC #0701 (RoboVikes)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2003
Location: Vacaville
Posts: 90
duane is an unknown quantity at this point
Send a message via AIM to duane
Re: Crio doesn't find Camera images

We've been through all of these steps as well. We can access the camera, but the image return from GetImage() has 0 width and 0 size.

Suggestions?
__________________
Duane Murphy
Mentor - Software
Vanden Vikings FIRST Team 701
http://www.vandenrobotics.com
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 09:12.

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