View Single Post
  #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."