Go to Post Is there a way to spotlight an entire thread? - ctt956 [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Spotlight this post!  
Unread 12-01-2015, 19:21
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: Vision system help

So it looks like last years part of the library has been outdated or designed for the Crio not the robotRio. I think first wants us to use NIVision.imaq but theres a problem with the native libraries and the lack of documentation.

Code:
NIVision.IMAQdxGrab(Robot.session, Robot.RGBImage, 1);
NIVision.imaqSavePattern(Robot.RGBImage, "imagergb.png");
NIVision.imaqColorThreshold(Robot.GREYImage, Robot.RGBImage, 255, NIVision.ColorMode.HSL, RobotMap.HueRange,RobotMap.SaterationRange,RobotMap.ValueRange);
NIVision.imaqFillHoles(Robot.GREYImage,Robot.GREYImage, 4);
GetParticleInfoResult resault = NIVision.imaqGetParticleInfo(Robot.GREYImage, 4, NIVision.ParticleInfoMode.ALL_INFO);
ParticleReport[] array = resault.array;
SmartDashboard.putNumber("NumberOfParticles", array.length);
for (int i = 0; i < array.length; i++) {
        targetFound(array[i], i++);
}
error given
Code:
/usr/local/frc/JRE/bin/java: symbol lookup error: /var/volatile/tmp/libwpilibJavaJNI3257654380311841301.so: undefined symbol: imaqGetParticleInfo
but with the native libraries it seems like its missing the getparticleinfo class with the java wrapper.

Last edited by Fauge7 : 12-01-2015 at 19:23.
Reply With Quote
 


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 10:48.

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