View Single Post
  #11   Spotlight this post!  
Unread 01-20-2012, 03:47 PM
AjFoster AjFoster is offline
Hydra Robotics - 2425
AKA: AJ
FRC #2425 (Hydra Robotics)
Team Role: Mentor
 
Join Date: Mar 2009
Rookie Year: 2008
Location: Tampa, FL
Posts: 2
AjFoster is an unknown quantity at this point
Re: NI Vision Functions

We've been starting to work on camera-tracking code, and we ran into some issues. We thought that it might be a good idea to try the code that was posted here first, and make sure we could get that much to work. This is what we have so far:

Code:
public class Camera2012 {

    public AxisCamera camera = AxisCamera.getInstance();
    
    private static final BlockingFunction imaqConvexHullFn = NativeLibrary.getDefaultInstance().getBlockingFunction("imaqConvexHull");
        static { imaqConvexHullFn.setTaskExecutor(taskExecutor); }
    
    public static void convexHull(Pointer source, Pointer dest, int connectivity8) throws NIVisionException {
        assertCleanStatus(imaqConvexHullFn.call3(source.address().toUWord().toPrimitive(), dest.address().toUWord().toPrimitive(), connectivity8));
    }
}
We get the following errors:

taskExecutor: cannot find symbol
assertCleanStatus: cannot find symbol

My own experience with Java is limited; could you help us out with this? If you happen to notice anything that might be helpful, we'll take all suggestions.

Thanks so much!
__________________
Aj Foster

Team 2425 - HYDRA Robotics
Hillsborough High School
Tampa, Florida
Reply With Quote