Go to Post You don't see teams plastering the arena with signs saying "Show your spirit!" or "Be creative in your robot design!" or "Be sure to be innovative in your control!" - Mr. Van [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 20-12-2013, 11:15
CJay's Avatar
CJay CJay is offline
Registered User
FRC #2977 (Sir Lancer Bots)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2010
Location: United States
Posts: 9
CJay is an unknown quantity at this point
File I/O Error

Our team has begun working with image processing and camera tracking, so I'm hoping this is something simple that I missed.

I deployed the 2013 Vision Sample Project to the robot, and when I run Autonomous on the robot I get an error in the netbeans console.
It repeats this error in the console until I disable the robot:

Code:
[cRIO] edu.wpi.first.wpilibj.image.NIVisionException: File I/O error.
[cRIO]     at edu.wpi.first.wpilibj.image.NIVision.assertCleanStatus(NIVision.java:1076)
[cRIO]     at edu.wpi.first.wpilibj.image.NIVision.readFile(NIVision.java:1204)
[cRIO]     at edu.wpi.first.wpilibj.image.RGBImage.<init>(RGBImage.java:33)
[cRIO]     at edu.wpi.first.wpilibj.templates.VisionSampleProject2013.autonomous(VisionSampleProject2013.java:85)
[cRIO]     at edu.wpi.first.wpilibj.SimpleRobot.startCompetition(SimpleRobot.java:130)
[cRIO]     at edu.wpi.first.wpilibj.RobotBase.startApp(RobotBase.java:169)
[cRIO]     in virtual method #10 of javax.microedition.midlet.MIDlet(bci=17)
[cRIO]     at javax.microedition.midlet.MIDletTunnelImpl.callStartApp(64)
[cRIO]     at com.sun.squawk.imp.MIDletMainWrapper.main(110)
[cRIO]     in virtual method #95 of com.sun.squawk.Klass(bci=25)
[cRIO]     at com.sun.squawk.Isolate.run(1506)
[cRIO]     at java.lang.Thread.run(231)
[cRIO]     in virtual method #47 of com.sun.squawk.VMThread(bci=42)
[cRIO]     in static method #3 of com.sun.squawk.VM(bci=6)
I'm not really sure what this means, but I hope someone can at least give me an idea of what is happening.
Reply With Quote
  #2   Spotlight this post!  
Unread 20-12-2013, 11:38
nickmcski nickmcski is offline
Registered User
AKA: Nicholas McCurry
FRC #1482 (Grandin Ghosts)
Team Role: Alumni
 
Join Date: Nov 2012
Rookie Year: 2012
Location: Canada
Posts: 112
nickmcski has a spectacular aura aboutnickmcski has a spectacular aura aboutnickmcski has a spectacular aura about
File I/O Error

If you go to 10.xx.yy.11 in an internet browser and log in with Username: FRC password:FRC are you able to see the image?

If that's working try using an FTP client (chrome has one built in) to go to ftp://10.xx.yy.2 and see if the images from you camera are saved there.

Last edited by nickmcski : 20-12-2013 at 11:51.
Reply With Quote
  #3   Spotlight this post!  
Unread 20-12-2013, 12:03
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,572
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: File I/O Error

Code:
[cRIO]     at edu.wpi.first.wpilibj.templates.VisionSampleProject2013.autonomous(VisionSampleProject2013.java:85)
This shows the problem is happening in line 85 of the project. Did you uncomment the following line?

Code:
//thresholdImage.write("/threshold.bmp");
By default, the example project reads data from testImage.jpg on the cRIO (which probably doesn't exist). Have you either uploaded the testImage, or modified the code to use the camera?

Have you read the vision processing tutorial? http://wpilib.screenstepslive.com/s/3120/m/8731
Reply With Quote
  #4   Spotlight this post!  
Unread 20-12-2013, 23:40
CJay's Avatar
CJay CJay is offline
Registered User
FRC #2977 (Sir Lancer Bots)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2010
Location: United States
Posts: 9
CJay is an unknown quantity at this point
Re: File I/O Error

Thanks for the help guys! I guess I never thought of the fact that I might have to upload the test image... Thanks for putting me on the right track
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 11:06.

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