Go to Post So much energy is wasted complaining (even in this thread) and belittling others (subtly in this thread). You need to engineer an attitude that encourages success through hard work before you engineer the robot. - PayneTrain [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 03-02-2015, 21:32
emusteve's Avatar
emusteve emusteve is offline
Registered User
AKA: Steve Martin
#0470 (Alpha Omega)
 
Join Date: Jan 2004
Location: Ypsilanti
Posts: 66
emusteve is just really niceemusteve is just really niceemusteve is just really niceemusteve is just really nice
need "simple vision" help

Trying to get started with vision in this year's environment. Figured I'd start with the "Simple Vision" example. (supposed to push an image to the dashboard.) Started by using the NI Axis Camera Tool to configure the camera. RoboRio finds the camera and lists it as "Cam0". I build and deploy the example code, but the RoboRio log reports "Error when getting image from camers: IMAQdxError:-1074360306: No acquisition in progress, at edu.wpi.first.wpilibi.CameraServer.capture(CameraS erver.java:182)"

Anyone have any idea what is going on here? I should mention that I'm using the Axis 206, same camera as described in the documentation (or what passes for such). I"ve also tried all options for Live View, thinking that the problem might be in how the camera is serving up the image, but no luck regardless of setting for ActiveX, Java Applet, or Still Image.

Thanks for any help.
Reply With Quote
  #2   Spotlight this post!  
Unread 03-02-2015, 22:05
RufflesRidge RufflesRidge is offline
Registered User
no team
 
Join Date: Jan 2012
Location: USA
Posts: 989
RufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant future
Re: need "simple vision" help

There's no reason to run the CameraServer to serve up an image from the Axis camera. Just use the LV Dashboard or Simple Camera Viewer in the Smart Dashboard to connect directly to the camera.

The Simple Vision example is meant for USB cameras like the Microsoft Lifecam HD-3000
Reply With Quote
  #3   Spotlight this post!  
Unread 04-02-2015, 10:58
emusteve's Avatar
emusteve emusteve is offline
Registered User
AKA: Steve Martin
#0470 (Alpha Omega)
 
Join Date: Jan 2004
Location: Ypsilanti
Posts: 66
emusteve is just really niceemusteve is just really niceemusteve is just really niceemusteve is just really nice
Re: need "simple vision" help

We're using Java, and thus Smart Dashboard. Reading through the Smart Dasboard documentation, I couldn't find any mention of "Simple Camera Viewer". If you could point me to the documentation on that, I'd appreciate it. Vision Processing documentation seems to be essentially non-existent. ("More coming soon" couldn't be soon enough!)

I did see some stuff about RoboRealm, but we're trying to keep the Driver Station as generic as possible, in case we have to switch out, or use a borrowed DS in a pinch.

Thanks.
Reply With Quote
  #4   Spotlight this post!  
Unread 04-02-2015, 11:14
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: 111
nickmcski has a spectacular aura aboutnickmcski has a spectacular aura aboutnickmcski has a spectacular aura about
Re: need "simple vision" help

Quote:
Originally Posted by emusteve View Post
I did see some stuff about RoboRealm, but we're trying to keep the Driver Station as generic as possible, in case we have to switch out, or use a borrowed DS in a pinch.
This may be extreme for some teams but you are actually allowed to have a laptop mounted on the robot running RoboRealm and use it as a co-processor. That way its independent of your driver station, and you don't have to worry about the bandwidth cap between the robot and the driver station.

Last edited by nickmcski : 04-02-2015 at 11:24.
Reply With Quote
  #5   Spotlight this post!  
Unread 04-02-2015, 23:08
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: need "simple vision" help

Quote:
Originally Posted by nickmcski View Post
This may be extreme for some teams but you are actually allowed to have a laptop mounted on the robot running RoboRealm
the only problem is the laptop has to start up, and be powered by the battery in that time...minor detail

i would suggest using a coprocessor such as a Odroid c1, or beaglebone esk board. They are relatively easy to set up. Imho Do not bother with vision this year unless your willing to research it, DO NOT use the first libraries as they have very little documentation and if your having simple vision trouble then your definitely going to have problems with others.
Reply With Quote
  #6   Spotlight this post!  
Unread 05-02-2015, 00:10
mmaunu's Avatar
mmaunu mmaunu is offline
Registered User
FRC #2485 (W.A.R. Lords)
Team Role: Mentor
 
Join Date: Mar 2013
Rookie Year: 2010
Location: San Diego, CA
Posts: 89
mmaunu is a jewel in the roughmmaunu is a jewel in the roughmmaunu is a jewel in the roughmmaunu is a jewel in the rough
Re: need "simple vision" help

Quote:
Originally Posted by Fauge7 View Post
the only problem is the laptop has to start up, and be powered by the battery in that time...minor detail
Just to be clear, the laptop can be solely powered by the laptop's battery and does not have to be powered by the robot's battery; the laptop can be booted and setup in the pit or in queue. This is probably what you meant, but the part about starting up "in that time" gave me pause. R20 is the relevant rule and this is just below the big blue box:

Quote:
Additionally, batteries integral to and part of a COTS computing device or self-contained camera are also permitted (e.g. laptop
batteries, GoPro style camera, etc.), provided they’re only used to power the COTS computing device and any peripheral COTS
USB input devices connected to the COTS computing device and they are securely fastened to the ROBOT.
__________________
2014 Las Vegas (Winners with 987, 2478; Excellence in Engineering)
2014 San Diego (Finalists with 987, 3250; Quality Award)
2013 Inland Empire (Winners with 1538, 968; Excellence in Engineering Award)
2013 San Diego (Finalists with 2984, 4322; Creativity Award)
2012 Las Vegas (Finalists with 2034, 3187; Quality Award)
Reply With Quote
  #7   Spotlight this post!  
Unread 05-02-2015, 09:36
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: need "simple vision" help

I didn't actually know that, but seems a lot more complicated then solutions that already exist
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 22:30.

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