Wiki source code of Ball Physics
Version 4.1 by stu104225 on 2020/03/04 16:26
Hide last authors
| author | version | line-number | content |
|---|---|---|---|
| |
1.1 | 1 | \\ |
| 2 | |||
| 3 | == Task == | ||
| 4 | |||
| 5 | The ball physics model is meant to do things ... | ||
| 6 | |||
| |
4.1 | 7 | == Ball trajectory == |
| |
1.1 | 8 | |
| |
4.1 | 9 | The trajectory of a ball can be modeled to be parabolic. |
| 10 | |||
| |
1.1 | 11 | == Configuration == |
| 12 | |||
| 13 | === Points of interest === | ||
| 14 | |||
| |
4.1 | 15 | The model of the area, where the the flippers can hit a ball is computed from a set of five points. These points are set to real world coordinates in meter |
| |
1.1 | 16 | |
| |
4.1 | 17 | and should not need further adjustment after the camera is correctly calibrated (see [[doc:World Coordinate System]]). |
| 18 | |||
| |
1.1 | 19 | [[image:attach:physics_points.png]] |
| 20 | |||
| |
4.1 | 21 | |=((( |
| 22 | Point# | ||
| 23 | )))|=((( | ||
| 24 | Description | ||
| 25 | ))) | ||
| 26 | |((( | ||
| 27 | 1 | ||
| 28 | )))|((( | ||
| 29 | center point of the circle that the flippers tip moves o | ||
| 30 | ))) | ||
| 31 | |((( | ||
| 32 | 2 | ||
| 33 | )))|((( | ||
| 34 | highest point a ball can be at when it hits the resting flipper | ||
| 35 | ))) | ||
| 36 | |((( | ||
| 37 | 3 | ||
| 38 | )))|((( | ||
| 39 | lowest point a ball can be at when it hits the resting flipper | ||
| 40 | ))) | ||
| 41 | |((( | ||
| 42 | 4 | ||
| 43 | )))|((( | ||
| 44 | lowest point a ball can be at when it hits the fully triggered flipper | ||
| 45 | ))) | ||
| 46 | |((( | ||
| 47 | 5 | ||
| 48 | )))|((( | ||
| 49 | highest point a ball can be at when it hits the fully triggered flipper | ||
| 50 | ))) | ||
| |
1.1 | 51 | |
| 52 | \\ | ||
| 53 | |||
| |
4.1 | 54 | === Flipper range === |
| 55 | |||
| 56 | From the aforementioned points | ||
| 57 | |||
| |
1.1 | 58 | \\ |
| 59 | |||
| 60 | \\ | ||
| 61 | |||
| 62 | \\ | ||
| 63 | |||
| 64 | [[image:attach:physics2.png]] | ||
| 65 | |||
| 66 | \\ | ||
| 67 | |||
| 68 | === Inlane Area === | ||
| 69 | |||
| |
4.1 | 70 | \\ |
| 71 | |||
| |
1.1 | 72 | [[image:attach:physics_inlane.png]] |
| 73 | |||
| 74 | \\ | ||
| 75 | |||
| 76 | === Prediction parameters === | ||
| 77 | |||
| 78 | \\ | ||
| 79 | |||
| 80 | \\ | ||
| 81 | |||
| 82 | \\ | ||
| 83 | |||
| 84 | \\ | ||
| 85 | |||
| 86 | \\ | ||
| 87 | |||
| 88 | \\ | ||
| 89 | |||
| 90 | \\ | ||
| 91 | |||
| 92 | \\ | ||
| 93 | |||
| 94 | \\ | ||
| |
4.1 | 95 | |
| 96 | \\ | ||
| 97 | |||
| 98 | \\ |