Go to Post If you build offensively, keep defense in mind always for defense will always keep you in mind. - Molten [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 02-02-2014, 16:40
lucas.alvarez96's Avatar
lucas.alvarez96 lucas.alvarez96 is offline
Registered User
AKA: Lucas Alvarez
FRC #2576 (Chilean Heart)
 
Join Date: Dec 2013
Rookie Year: 2013
Location: Chile
Posts: 123
lucas.alvarez96 is a name known to alllucas.alvarez96 is a name known to alllucas.alvarez96 is a name known to alllucas.alvarez96 is a name known to alllucas.alvarez96 is a name known to alllucas.alvarez96 is a name known to all
NI Vision + Java

Is it possible to integrate code and algorithms generated by the NI Vision Assistant tool into the Java SmartDashboard and/or the SFX?

Thanks in advance
  #2   Spotlight this post!  
Unread 02-02-2014, 16:45
yash101 yash101 is offline
Curiosity | I have too much of it!
AKA: null
no team
 
Join Date: Oct 2012
Rookie Year: 2012
Location: devnull
Posts: 1,191
yash101 is an unknown quantity at this point
Re: NI Vision + Java

I think that's what our mentor is doing. He's using the sample vision code (NI Vision) and integrating it with the Robot Code. That can work with the SmartDashboard too.
  #3   Spotlight this post!  
Unread 02-02-2014, 16:49
lucas.alvarez96's Avatar
lucas.alvarez96 lucas.alvarez96 is offline
Registered User
AKA: Lucas Alvarez
FRC #2576 (Chilean Heart)
 
Join Date: Dec 2013
Rookie Year: 2013
Location: Chile
Posts: 123
lucas.alvarez96 is a name known to alllucas.alvarez96 is a name known to alllucas.alvarez96 is a name known to alllucas.alvarez96 is a name known to alllucas.alvarez96 is a name known to alllucas.alvarez96 is a name known to all
Re: NI Vision + Java

Any chance of getting a tutorial or something? We know how to process onboard the cRIO, but our mentor and I decided it would be much too CPU intensive, especially considering the problems with the JVM.
  #4   Spotlight this post!  
Unread 02-02-2014, 17:25
yash101 yash101 is offline
Curiosity | I have too much of it!
AKA: null
no team
 
Join Date: Oct 2012
Rookie Year: 2012
Location: devnull
Posts: 1,191
yash101 is an unknown quantity at this point
Re: NI Vision + Java

If I'm not wrong, you can load the processing onto the driver station, still using NI Vision, or maybe use something like OpenCV/RoboRealm! I am not the one who wrote the code, so I can only get help the next time the Mentor comes along (Saturdays)
  #5   Spotlight this post!  
Unread 02-02-2014, 17:35
Jared's Avatar
Jared Jared is offline
Registered User
no team
Team Role: Programmer
 
Join Date: Aug 2013
Rookie Year: 2012
Location: Connecticut
Posts: 602
Jared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond repute
Re: NI Vision + Java

The NI Vision library for Java is a little bit incomplete. If you want to use java, you can write a plugin for the smart dashboard and use openCV. Search in CD Media for 341's 2012 vision code as a starting place.

If you're open to other methods, you should try labview. They give you vi's that grab images from the camera, and they give you vi's that can communicate with your robot, even if it's programmed in Java. They are also nice enough to give you a piece of default vision code that does a pretty good job of tracking the targets. All you need to do is copy and paste it into a new project and run that on the computer. We used this in 2013, and it worked really well, and took only 2 hours to get working.

I agree that vision processing on the robot can be cpu intensive if you're going at 20 fps, but if you get clever with your software, you should only need to process one image to find out where you are (or which goal is hot).

Which problems with the JVM are you referring to? For any FRC applications, Java is insignificantly slower than C++.

Last edited by Jared : 02-02-2014 at 17:37.
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: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