Go to Post The best parts of FIRST just cannot be described. They have to be experienced. - sanddrag [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 06-01-2016, 15:18
3205patriots 3205patriots is offline
Registered User
FRC #3205
 
Join Date: Jan 2016
Location: Concord
Posts: 6
3205patriots is an unknown quantity at this point
Java Vision Camera cannot be found

My team wrote vision code for last year and are planning on using it for the imminent FRC competition, but a new problem has developed since we used it last year. I have been researching and other people had a similar problem and attributed it to wpilibs; I just want to know if there is anything I can do to solve it.

ERROR Unhandled exception: VisionException [com.ni.vision.VisionException: IMAQdxError: -1074360310: Camera is already in use.] at [com.ni.vision.NIVision._IMAQdxOpenCamera(Native Method), com.ni.vision.NIVision.IMAQdxOpenCamera(NIVision.j ava:24455), org.usfirst.frc.team3205.robot.subsystems.Vision.c ameraInit(Vision.java:72), org.usfirst.frc.team3205.robot.Robot.robotInit(Rob ot.java:59), edu.wpi.first.wpilibj.IterativeRobot.startCompetit ion(IterativeRobot.java:76), edu.wpi.first.wpilibj.RobotBase.main(RobotBase.jav a:234)]
Attached Files
File Type: java Vision.java (11.4 KB, 21 views)
Reply With Quote
  #2   Spotlight this post!  
Unread 06-01-2016, 17:26
Fauge7 Fauge7 is offline
Head programmer
FRC #3019 (firebird robotics)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Scottsdale
Posts: 195
Fauge7 is a name known to allFauge7 is a name known to allFauge7 is a name known to allFauge7 is a name known to allFauge7 is a name known to allFauge7 is a name known to all
Re: Java Vision Camera cannot be found

if you run an opencv program on linux and it uses the camera and close the program. then run the same program again you will find that it returns an error, it simply is the fact that none of the programs are run as root, try restarting the roborio and you should be fine.
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:16.

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