Go to Post Back in the old days, we didn't have clues, and we liked it! - Joe Ross [more]
Home
Go Back   Chief Delphi > Technical > Technical Discussion
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, 15: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
Calculating the trajectory and where the ball will land with a 2D image

So this year, as you may have noticed (by my posts), I'm working on a uber-powerful vision tracking system. So I was thinking about how to create a driver-aid widget to find where the ball is, and where it will land. I will have a 2D image of the ball, but I can grab the third by either a PING or Trigonometry.

So here's my question:
So our shooter will most likely have 2 or three modes, a shoot, pass and toss mode, depending on which cylinders are fired. So, if I can get the exit velocity of each mode, and I can know what mode the shooter is in, how can I find out where the ball will land. I want to use trigonometry to do this, so I don't have to recalibrate the camera to look for a ball of a different size. How can I estimate where the ball will hit the ground.

Also, if a ball is tossed towards the robot, how can the robot automatically align itself by calculating the ball's trajectory?

My platform is OpenCV-2.4.8.0/Windows 8.1, under Visual Studio 2013.

Also, how do I find out the exit velocity of the ball from the shooter?
  #2   Spotlight this post!  
Unread 02-02-2014, 15:54
Steven Donow Steven Donow is offline
Registered User
AKA: Scooby
no team
Team Role: College Student
 
Join Date: Apr 2010
Rookie Year: 2009
Location: Boston, MA
Posts: 1,335
Steven Donow has a reputation beyond reputeSteven Donow has a reputation beyond reputeSteven Donow has a reputation beyond reputeSteven Donow has a reputation beyond reputeSteven Donow has a reputation beyond reputeSteven Donow has a reputation beyond reputeSteven Donow has a reputation beyond reputeSteven Donow has a reputation beyond reputeSteven Donow has a reputation beyond reputeSteven Donow has a reputation beyond reputeSteven Donow has a reputation beyond repute
Re: Calculating the trajectory and where the ball will land with a 2D image

Quote:
Originally Posted by yash101 View Post
So this year, as you may have noticed (by my posts), I'm working on a uber-powerful vision tracking system. So I was thinking about how to create a driver-aid widget to find where the ball is, and where it will land. I will have a 2D image of the ball, but I can grab the third by either a PING or Trigonometry.

So here's my question:
So our shooter will most likely have 2 or three modes, a shoot, pass and toss mode, depending on which cylinders are fired. So, if I can get the exit velocity of each mode, and I can know what mode the shooter is in, how can I find out where the ball will land. I want to use trigonometry to do this, so I don't have to recalibrate the camera to look for a ball of a different size. How can I estimate where the ball will hit the ground.

Also, if a ball is tossed towards the robot, how can the robot automatically align itself by calculating the ball's trajectory?

My platform is OpenCV-2.4.8.0/Windows 8.1, under Visual Studio 2013.

Also, how do I find out the exit velocity of the ball from the shooter?
In order to determine the exit velocity of the ball, we used this program(I'm pretty sure this is it) in order to calculate exit velocity and angle. We used 120 fps video from a GoPro, and then used this program which tracks the trajectory of the ball in order to determine the velocity.
  #3   Spotlight this post!  
Unread 02-02-2014, 16:20
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: Calculating the trajectory and where the ball will land with a 2D image

I'll look into trying it out. So what are the variables I need? Distance from cam, Cam ViewAngle? By the way, what is the ViewAngle of the standard lens in the Canon T2i?

Also, would finding the ball trajectory be requiring any calculus or trig? I haven't learned either yet, so I'll need to spend some time reading textbooks!
  #4   Spotlight this post!  
Unread 02-02-2014, 20:12
faust1706's Avatar
faust1706 faust1706 is offline
Registered User
FRC #1706 (Ratchet Rockers)
Team Role: College Student
 
Join Date: Apr 2012
Rookie Year: 2011
Location: St Louis
Posts: 498
faust1706 is infamous around these partsfaust1706 is infamous around these parts
Re: Calculating the trajectory and where the ball will land with a 2D image

Already ahead of you review your kinematic equations to calculate velocity of a ball. You have to measure the distance the ball moves between two frames, and then divide that by the time between the two frames. This gives you velocity in 3d space if you do it properly. You can do more physics calculations to find the heading of the ball, which will remain constant in the real world but will change if the camera moves.

To find time you calculate velocity in the up direction, and do d =vt +att. Where d is it's height in the air in the initial frame.

You then use time to calculate how far the ball will travel in the left right forward back plane. You also have to take into account the delay of the program calculations and the time is takes for thr crio to do its stuff.

We're going for autonomous ball catching only on rare occasions during competitions, like in practice matches.
__________________
"You're a gentleman," they used to say to him. "You shouldn't have gone murdering people with a hatchet; that's no occupation for a gentleman."
  #5   Spotlight this post!  
Unread 02-02-2014, 20:46
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,557
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Calculating the trajectory and where the ball will land with a 2D image

Assuming your shooter is precise, and a flat field, it's very easy to mark where it will land. No math is required. Figuring out where an arbitrary ball will land is much harder.
  #6   Spotlight this post!  
Unread 02-02-2014, 23:26
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
Talking Re: Calculating the trajectory and where the ball will land with a 2D image

Thyme for some Physix!

And the smileys are back!
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 10:14.

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