Go to Post Man, FIRST is amazing :D - galewind [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
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 17-01-2016, 20:13
dubiousSwain's Avatar
dubiousSwain dubiousSwain is offline
The ride never ends
AKA: Christian Steward
FRC #5420 (Velocity)
Team Role: Mentor
 
Join Date: Oct 2011
Rookie Year: 2011
Location: USA
Posts: 304
dubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond repute
Re: Aiming with Vision

Quote:
Originally Posted by Greg McKaskle View Post
Your input value ranges from -160 to 160, which means that your other tuning parameters will need to be pretty small to output a number between .5 and -.5.
...
Finally, after doing this, I think you'll find that you cannot really close the loop using a camera. I'd suggest that you use the offset from the camera to compute an amount to turn the robot. Then use a gyro to close the loop. The measure with the camera and repeat if necessary.

Greg McKaskle
Thank you, this is great advice. I hadn't thought of graphing the output. We were discussing closing the loop with a gyro, now I think we will definitely do that. I'm not sure if it was included in the snippets, but I was trying to set the offset to zero when we lost the target but the robot kept spinning, must have been a bug.

Also when I set the I to 0, the loop doesn't output anything. Why is that?
__________________
2015 MAR District Champions




Reply With Quote
  #2   Spotlight this post!  
Unread 18-01-2016, 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,751
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: Aiming with Vision

When I is set to zero, the code has a special case for P and PD. When you say it doesn't output anything, do you mean it doesn't complete, always returns zero, or something else?

Greg McKaskle
Reply With Quote
  #3   Spotlight this post!  
Unread 18-01-2016, 13:00
dubiousSwain's Avatar
dubiousSwain dubiousSwain is offline
The ride never ends
AKA: Christian Steward
FRC #5420 (Velocity)
Team Role: Mentor
 
Join Date: Oct 2011
Rookie Year: 2011
Location: USA
Posts: 304
dubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond repute
Re: Aiming with Vision

Quote:
Originally Posted by Greg McKaskle View Post
When I is set to zero, the code has a special case for P and PD. When you say it doesn't output anything, do you mean it doesn't complete, always returns zero, or something else?

Greg McKaskle
I'll do some more testing when I get back to the shop, but AFAIR, it outputs 0
__________________
2015 MAR District Champions




Reply With Quote
  #4   Spotlight this post!  
Unread 18-01-2016, 14:48
btcshields6 btcshields6 is offline
Registered User
FRC #4206
 
Join Date: Aug 2014
Location: Texas
Posts: 107
btcshields6 is an unknown quantity at this point
Re: Aiming with Vision

So dubiousSwain, you used both RoboRealm and the Vision Assistant? What 'algorithm' did you perfect in RoboRealm?
Reply With Quote
  #5   Spotlight this post!  
Unread 18-01-2016, 17:44
dubiousSwain's Avatar
dubiousSwain dubiousSwain is offline
The ride never ends
AKA: Christian Steward
FRC #5420 (Velocity)
Team Role: Mentor
 
Join Date: Oct 2011
Rookie Year: 2011
Location: USA
Posts: 304
dubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond repute
Re: Aiming with Vision

Quote:
Originally Posted by btcshields6 View Post
So dubiousSwain, you used both RoboRealm and the Vision Assistant? What 'algorithm' did you perfect in RoboRealm?
We have two programmers on our team, so we decided to split up and research different approaches. I worked on blob filtering in RoboRealm, while my teammate Billy worked on pattern matching in the Vision assistant, a la 900. I made much quicker progress on the blob filter, and it gave good results, so we ported the pipeline into the vision assistant and had it build the VI. We decided that socketing into roborealm would not be as reliable as running a VI robot-side or using NT dashboard-side

tl;dr, we are not using both Roborealm and Vision Assistant, we tested both and then decided to use the VA.

EDIT: By algorithm I mean Pipeline.
__________________
2015 MAR District Champions





Last edited by dubiousSwain : 18-01-2016 at 17:45. Reason: clarification
Reply With Quote
  #6   Spotlight this post!  
Unread 18-01-2016, 17:48
btcshields6 btcshields6 is offline
Registered User
FRC #4206
 
Join Date: Aug 2014
Location: Texas
Posts: 107
btcshields6 is an unknown quantity at this point
Re: Aiming with Vision

Oh. Okay. We only have one programmer, me, so the quicker I can settle on something the better. I guess I'll stick with Vision Assistant. Thanks!

Benjamin
Reply With Quote
  #7   Spotlight this post!  
Unread 18-01-2016, 17:52
dubiousSwain's Avatar
dubiousSwain dubiousSwain is offline
The ride never ends
AKA: Christian Steward
FRC #5420 (Velocity)
Team Role: Mentor
 
Join Date: Oct 2011
Rookie Year: 2011
Location: USA
Posts: 304
dubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond repute
Re: Aiming with Vision

Quote:
Originally Posted by btcshields6 View Post
Oh. Okay. We only have one programmer, me, so the quicker I can settle on something the better. I guess I'll stick with Vision Assistant. Thanks!

Benjamin
The key for vision assistant is to take as many test images as you can, in all kinds of lighting. You can do this by pausing the live stream at 10.42.06.20 and right clicking "save as". Make sure its paused, or your computer will not open the dialogue box and continuously acquire images.

Please PM me if you have any trouble, it can be tricky to figure out
__________________
2015 MAR District Champions




Reply With Quote
  #8   Spotlight this post!  
Unread 18-01-2016, 18:07
btcshields6 btcshields6 is offline
Registered User
FRC #4206
 
Join Date: Aug 2014
Location: Texas
Posts: 107
btcshields6 is an unknown quantity at this point
Re: Aiming with Vision

Okay. Thanks! Do I use all the images to test it, or somehow factor them all in as images to look for in Vision Assistant? Sorry for my inexperience, I've never used it before, and I haven't yet had the chance to play around with it.
Reply With Quote
  #9   Spotlight this post!  
Unread 18-01-2016, 20:54
dubiousSwain's Avatar
dubiousSwain dubiousSwain is offline
The ride never ends
AKA: Christian Steward
FRC #5420 (Velocity)
Team Role: Mentor
 
Join Date: Oct 2011
Rookie Year: 2011
Location: USA
Posts: 304
dubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond repute
Re: Aiming with Vision

Quote:
Originally Posted by btcshields6 View Post
Okay. Thanks! Do I use all the images to test it, or somehow factor them all in as images to look for in Vision Assistant? Sorry for my inexperience, I've never used it before, and I haven't yet had the chance to play around with it.
There is an option in the file menu to import images. Just shift select all the images you saved and it will import them all. then use the green arrows above the pipeline or the grey arrows to the left to move through them.
__________________
2015 MAR District Champions




Reply With Quote
  #10   Spotlight this post!  
Unread 19-01-2016, 10:07
btcshields6 btcshields6 is offline
Registered User
FRC #4206
 
Join Date: Aug 2014
Location: Texas
Posts: 107
btcshields6 is an unknown quantity at this point
Re: Aiming with Vision

Okay. Thanks. I'll be trying that soon.
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 01:20.

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