User:Tkiesel/MovementPredictor

From Robowiki
< User:Tkiesel
Revision as of 02:31, 25 May 2012 by Tkiesel (talk | contribs) (correcting a term)
Jump to navigation Jump to search

I've begun an expansion of Nat's Movement Predictor which will hopefully include:

  • precise MEAs (predict as far laterally from HOT as possible, smoothing against wall, take into account farthest bot corner for final angle calc.)
  • forward/stop/back orbit around a center point for TrueSurfers, including:
    • a pluggable prediction stop condition Object [already done] (not everyone decides a wave has broken at the same time)
    • a pluggable radius control Object (not everyone alters their turn angle to control distance in the same way)
  • Nat's code already has almost everything needed to Precise Predict for a GoTo surfer, I think I'll just add a wrapper method to allow directly plugging in a battlefield coordinate.

I think I'll make a hacked up version of sample.Interactive and paint debug graphics all over the screen to test this thing.

  • WASD to move center of surfed wave/MEA origin.
  • +/- to change the desired orbit radius around the wave center
  • GoTo prediction at mouse
  • Draw MEA, back/stop/forward TrueSurf, GoTo prediction points.
  • It'll be an ugly mess, but should debug the wall smoothing and prediction wonderfully!