Go to Post The more women we have as 'rock stars' in FIRST, the more girls we'll see celebrating math and science and the doors they can open. - JaneYoung [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 09-02-2012, 21:32
malachias malachias is offline
Registered User
FRC #1311
 
Join Date: Jan 2012
Location: Kell High School, Marietta, GA
Posts: 9
malachias is on a distinguished road
No Image Available Exception

Our team switched from C++ to java. The vision code worked in C++. When we ported the code to Java, we started getting a "No Image Available" exception when invoking the getImage method of AxisCamera. The cRIO was reimaged for Java and other parts of the Java code worked as expected. The camera view image is displayed on the DashBoard. Posts about "No Image Available" indicated the cause was the camera was not configured properly. Since the C++ code worked, I would think our camera was configured properly. I did look at the camera /etc/passwd file just to make sure that the FRC user was not clobbered and it was still there. Is there some configuration setting in netbeans that specifies what the camera login is (I assumed it was just hardcoded). Is my netbeans/FRC plugin out of date? Is there some initialization I need to do in Java that I didn't need to do in C++. I am not writing any settings,e.g., writeResolution()

Thanks
Reply With Quote
  #2   Spotlight this post!  
Unread 09-02-2012, 23:36
Patrick Chiang Patrick Chiang is offline
Programming
FRC #3070 (Team Pronto)
Team Role: Mentor
 
Join Date: Feb 2009
Rookie Year: 2009
Location: Seattle
Posts: 162
Patrick Chiang is a name known to allPatrick Chiang is a name known to allPatrick Chiang is a name known to allPatrick Chiang is a name known to allPatrick Chiang is a name known to allPatrick Chiang is a name known to all
Re: No Image Available Exception

The user/pass settings should be hardcoded. This should work even if Netbeans+plugins were outdated.

Can you post your code where you instantiate a camera object?
Reply With Quote
  #3   Spotlight this post!  
Unread 10-02-2012, 19:18
malachias malachias is offline
Registered User
FRC #1311
 
Join Date: Jan 2012
Location: Kell High School, Marietta, GA
Posts: 9
malachias is on a distinguished road
Re: No Image Available Exception

Here is a simple example of the code i am using. It can't get much simpler

AxisCamera c = AxisCamera.getInstance();

// this works -- checked camera settings via web browser
c.writeBrightness(75);

try {
ColorImage ci = c.getImage();
} catch (AxisCameraException ex) {
// always generates exception
}
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:56.

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