Go to Post Monkeys with typewriters will eventually create shakespeare, and spam bots will eventually create a thread title that fits the rumor mill. - rtfgnow [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 08-02-2014, 13:06
Potatoes's Avatar
Potatoes Potatoes is offline
Registered User
AKA: Eric Wittmann
FRC #5136 (Mecha Pirates)
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2014
Location: Santa Ynez, CA
Posts: 17
Potatoes is an unknown quantity at this point
Question Ball Tracking

It's our first year as a rookie team and we have some questions about using a servo-mounted camera for ball tracking.

-Can we just use the example "2014 Ball Detection" code provided by FRC, and if so, how do we implement it into our own code?

-How would we calculate the trajectory of a ball mid-air? We could do the calculations and come up with the functions ourselves but it seems like a safer bet to use someone else's tried-and-tested code.

-Is there anything else I'm overlooking in terms of necessary pieces of code for using the camera to track ball movement?

Thanks in advance for the help!
Reply With Quote
  #2   Spotlight this post!  
Unread 09-02-2014, 12:07
Invictus3593's Avatar
Invictus3593 Invictus3593 is offline
time you like wasting is not wasted
FRC #3593 (Team Invictus)
Team Role: Leadership
 
Join Date: Jan 2013
Rookie Year: 2010
Location: Tulsa, OK
Posts: 318
Invictus3593 is just really niceInvictus3593 is just really niceInvictus3593 is just really niceInvictus3593 is just really nice
Re: Ball Tracking

As far as implementing the example, I would say re-make what you see in the example wherever you plan to do the calculation.

On trajectory, You may need to take the area and location of the ball for one image, then compare it to the area and location of the next image and the next one and the next one, each making these comparisons to get speed of the ball and/or possibly the direction.

Keep in mind your camera would have to be stationary for each image, limiting your movement however long you wanted to perform the calculation.
__________________
Per Audacia Ad Astra
Reply With Quote
  #3   Spotlight this post!  
Unread 09-02-2014, 16:14
killer_rabbit3's Avatar
killer_rabbit3 killer_rabbit3 is offline
programming rabbit
AKA: Alexander Martinez
FRC #1038 (Lakota Robotics)
Team Role: Programmer
 
Join Date: Feb 2014
Rookie Year: 2012
Location: liberty township OH
Posts: 13
killer_rabbit3 is an unknown quantity at this point
Re: Ball Tracking

You can import the ball track Project from examples into your robot project. I would recommend however to try and import it into your dashboard project and have the dashboard do the vision calculations on your computer as to not overload your cRIO.
Reply With Quote
  #4   Spotlight this post!  
Unread 11-02-2014, 22:03
Potatoes's Avatar
Potatoes Potatoes is offline
Registered User
AKA: Eric Wittmann
FRC #5136 (Mecha Pirates)
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2014
Location: Santa Ynez, CA
Posts: 17
Potatoes is an unknown quantity at this point
Re: Ball Tracking

Now I have another question. How do I get the data that gets processed by the code running on my computer (the ball tracking project) about the ball's location to get sent to the dashboard running on the cRIO?
Is there a way to transfer variables/values from applications running on the cRIO to one running locally on my computer?
Reply With Quote
  #5   Spotlight this post!  
Unread 12-02-2014, 07:31
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: Ball Tracking

The dashboard tutorial, and in particular tutorial 8 will explain one way to do it.

Greg McKaskle
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 09:47.

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