Go to Post You wrote a PID control loop for your coach? Whoa. - meatmanek [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 03-02-2013, 13:51
gitlitz gitlitz is offline
Registered User
FRC #4590
 
Join Date: Jan 2013
Location: israel
Posts: 11
gitlitz is an unknown quantity at this point
vision processing on laptop

hi all,
we are trying to run the vision process on our laptop on a laptop and send the results to the crio.
We found a vision lib at
Code:
C:\Program Files\SmartDashboard\extensions\lib
but we get an error while trying to execute our code.
Our error appears at the first line:
Code:
AxisCamera camera=AxisCamera.getInstance("10.45.90.11");
Our source code is:
Code:
import edu.wpi.first.wpilibj.camera.AxisCamera;
public class Main {

	public static void main(String[] args){
		AxisCamera camera=AxisCamera.getInstance("10.45.90.11");
	}
}
When executing the code we get the following error:
Code:
Exception in thread "main" java.lang.Error: Unresolved compilation problem: 

	at edu.wpi.first.wpilibj.camera.AxisCamera.getInstance(AxisCamera.java:241)
	at Main.main(Main.java:13)
If you have a better idea on how to do the vision processing on the laptop you are more than welcome to post it here
  #2   Spotlight this post!  
Unread 03-02-2013, 15:42
inkspell4's Avatar
inkspell4 inkspell4 is offline
Registered User
FRC #3650 (Robo Raptors)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Maryland
Posts: 326
inkspell4 will become famous soon enough
Ive been trying to figure out how to process the vision on the laptop
__________________
Chesapeake Regional : 2013, 2012, 2011
Rookie Year: 2011
2013 RoboRaptors Team 3650 Programming Team Captain
Team Website : http://www.roboraptorsfrcteam3650.com/index.html
_____________________________________________
  #3   Spotlight this post!  
Unread 03-02-2013, 22:36
Ginto8's Avatar
Ginto8 Ginto8 is offline
Programming Lead
AKA: Joe Doyle
FRC #2729 (Storm)
Team Role: Programmer
 
Join Date: Oct 2010
Rookie Year: 2010
Location: Marlton, NJ
Posts: 174
Ginto8 is a glorious beacon of lightGinto8 is a glorious beacon of lightGinto8 is a glorious beacon of lightGinto8 is a glorious beacon of lightGinto8 is a glorious beacon of light
Re: vision processing on laptop

You're having problems because you're trying to use the WPILib vision library (built on NIVision) on the laptop. Those libraries (to my knowledge) don't exist on the cRIO. To do image processing on the laptop, you'll want to make a SmartDashboard extension extending WPICameraExtension, using some combination of WPIJavaCV and OpenCV. Check out Miss Daisy's code from last year for some inspiration there.
__________________
I code stuff.
  #4   Spotlight this post!  
Unread 04-02-2013, 07:19
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,756
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: vision processing on laptop

The NIVision libraries do exist on both cRIO and on Windows laptops. They are callable from C and LV and languages that can wrap C. The vision libraries are how the default dashboard does the display and the annotations.

Documentation for it is in Start>>All Programs>>National Instruments>>Vision>>Documentation. The C specific documents tend to have CVI somewhere in the name, and the Concepts manual is highly recommended.

Greg McKaskle
Closed Thread


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 02:31.

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