Go to Post Hey Don, if the [Woody Flowers] award doesn't impress the non-FIRST friends and family, just tell them you have your own "inter-web thread" - tell them you are like a Chuck Norris on the internet!!! - ebarker [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
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-03-2016, 16:35
Team 3023 Team 3023 is offline
Registered User
FRC #3023
 
Join Date: Feb 2016
Location: Minnesota
Posts: 4
Team 3023 is an unknown quantity at this point
Post Camera Trouble

We need help figuring out what this error means and how to fix it:
Code:
Error when getting image from the camera: IMAQdxError: -1074360306: No acquisition in progress. at edu.wpi.first.wpilibj.CameraServer.capture(CameraServer.java:222) 
 edu.wpi.first.wpilibj.CameraServer$2.run(CameraServer.java:192) 
 java.lang.Thread.run(Thread.java:745)
Please and thank you.

Last edited by Team 3023 : 31-03-2016 at 16:39.
Reply With Quote
  #2   Spotlight this post!  
Unread 31-03-2016, 16:43
nickbrickmaster's Avatar
nickbrickmaster nickbrickmaster is offline
Not Allowed Near Power Tools
AKA: Nick Schatz
FRC #3184 (Blaze Robotics)
Team Role: Leadership
 
Join Date: Jan 2015
Rookie Year: 2014
Location: Eagan MN
Posts: 148
nickbrickmaster is an unknown quantity at this point
Re: Camera Trouble

Can we see your code? It is very difficult to debug code without seeing it.

What camera are you using?
__________________
I have approximate knowledge of many things.

FRC 3184: 2014-, FTC 10648: 2015-
Reply With Quote
  #3   Spotlight this post!  
Unread 31-03-2016, 16:50
Team 3023 Team 3023 is offline
Registered User
FRC #3023
 
Join Date: Feb 2016
Location: Minnesota
Posts: 4
Team 3023 is an unknown quantity at this point
Re: Camera Trouble

CameraServer server;

public void robotInit() {

oi = new OI();
dt= new DriveTrain();
am = new ArmMovements();
server = CameraServer.getInstance();
server.setQuality(50);
server.startAutomaticCapture("cam0");
Reply With Quote
  #4   Spotlight this post!  
Unread 31-03-2016, 17:01
nickbrickmaster's Avatar
nickbrickmaster nickbrickmaster is offline
Not Allowed Near Power Tools
AKA: Nick Schatz
FRC #3184 (Blaze Robotics)
Team Role: Leadership
 
Join Date: Jan 2015
Rookie Year: 2014
Location: Eagan MN
Posts: 148
nickbrickmaster is an unknown quantity at this point
Re: Camera Trouble

Quote:
Originally Posted by nickbrickmaster View Post
What camera are you using?
Are you using GRIP?
Is this the only place that you are accessing the camera?
Are there any other errors?
__________________
I have approximate knowledge of many things.

FRC 3184: 2014-, FTC 10648: 2015-
Reply With Quote
  #5   Spotlight this post!  
Unread 31-03-2016, 17:20
Team 3023 Team 3023 is offline
Registered User
FRC #3023
 
Join Date: Feb 2016
Location: Minnesota
Posts: 4
Team 3023 is an unknown quantity at this point
Re: Camera Trouble

No
Yes
No
Reply With Quote
  #6   Spotlight this post!  
Unread 31-03-2016, 17:52
CalTran's Avatar
CalTran CalTran is offline
Missouri S&T Senior
FRC #2410 (BV CAPS Metal Mustang Robotics)
Team Role: College Student
 
Join Date: Apr 2010
Rookie Year: 2010
Location: Overland Park, Kansas
Posts: 2,369
CalTran has a reputation beyond reputeCalTran has a reputation beyond reputeCalTran has a reputation beyond reputeCalTran has a reputation beyond reputeCalTran has a reputation beyond reputeCalTran has a reputation beyond reputeCalTran has a reputation beyond reputeCalTran has a reputation beyond reputeCalTran has a reputation beyond reputeCalTran has a reputation beyond reputeCalTran has a reputation beyond repute
Re: Camera Trouble

Quote:
Originally Posted by Team 3023 View Post
No
Yes
No
Still wondering which camera you're using? (Axis, Microsoft Lifecam, etc...)
__________________
Team 2410 thinks KISSing is amazing! Keep It Super Safe!
  • "You know you've been in robotics too long when you start talking to your tools." "Well, you've been in robotics CLEARLY too long when they start talking back"
  • Theory is when you know everything but nothing works. Practice is when everything works but you don't know why. On our team, theory and practice comes together - nothing works and nobody knows why.
MMR 2410 Student (2010 - 2013) | MMR 2410 Mentor (2013 - Present)
FTC Game Announcer / EmCee (2014 - Present) | FRC EmCee (2015 - Present) | FRC Referee (2016)
Academic Student (Forever)
Reply With Quote
  #7   Spotlight this post!  
Unread 31-03-2016, 18:14
antman antman is offline
Registered User
FRC #3238
Team Role: Mentor
 
Join Date: Mar 2016
Rookie Year: 2016
Location: WA
Posts: 10
antman is an unknown quantity at this point
Re: Camera Trouble

Do you know that it is named cam0? You can check by logging into the rio's maintenance page and see what name it lists for the camera. We've had issues with cameras not being named as expected. Wrap all your camera code in try..catch blocks so camera errors don't bring down your whole program.
Reply With Quote
  #8   Spotlight this post!  
Unread 01-04-2016, 13:49
Ninjastahr's Avatar
Ninjastahr Ninjastahr is offline
FRC Member
FRC #3928 (Team Neutrino)
Team Role: Programmer
 
Join Date: Feb 2016
Rookie Year: 2014
Location: Iowa
Posts: 30
Ninjastahr is an unknown quantity at this point
Re: Camera Trouble

Have you tried imaqdxStartAcquisition()?
Reply With Quote
  #9   Spotlight this post!  
Unread 12-04-2016, 16:52
Mister_E's Avatar
Mister_E Mister_E is offline
Registered User
AKA: M. Esguerra
FRC #1796 (RoboTigers 1796)
Team Role: Mentor
 
Join Date: Jan 2014
Rookie Year: 2004
Location: Long Island City, NY
Posts: 6
Mister_E is an unknown quantity at this point
Re: Camera Trouble

I second Ninjastahr 's suggestion. I was having an issue with a Genius webcam and switched from the CameraServer class to NIVision. (thanks, jojoguy10!). Check out the "Intermediate Vision" example.
Reply With Quote
  #10   Spotlight this post!  
Unread 13-04-2016, 10:39
CloakAndDagger CloakAndDagger is offline
Registered User
FRC #0074 (CHAOS)
Team Role: Programmer
 
Join Date: Apr 2016
Rookie Year: 2015
Location: Holland, MI
Posts: 24
CloakAndDagger is on a distinguished road
Re: Camera Trouble

Just from reading the error

"No Acquisition in progress" sounds like you either aren't telling your camera to capture in the code, or you are having a physical problem on your camera preventing it from capturing images
Reply With Quote
  #11   Spotlight this post!  
Unread 13-04-2016, 15:18
Wired_Mike's Avatar
Wired_Mike Wired_Mike is offline
FF: Teh Brekfust Co.
AKA: Michael Hodson
FRC #0360 (The Revolution)
Team Role: Alumni
 
Join Date: Mar 2015
Rookie Year: 2013
Location: Tacoma
Posts: 72
Wired_Mike will become famous soon enough
Re: Camera Trouble

A few questions:
Is this on the FMS or your own connection(e.g. Practice router or tether)?
What camera are you running?

I'm not a programmer nor a professional, just an electrical/control systems troubleshooter. My team had a similar issue, however I can't think of the error off the top of my head.
__________________

FRC 360[The Revolution]: 2013-2016
2016 PNW District Champions (thanks to our partners 4469 and 3238)

Todai
Unpaid intern of The Breakfast Company
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:55.

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