usc-m / SDP-Team-F

SDP Team F - Group 1 (NASA) and Group 16
0 stars 0 forks source link

Flexible defender strategy #27

Open koenraat opened 9 years ago

koenraat commented 9 years ago

What does it do?

  1. Get the X coordinate of the destination from the WorldState/ControlBox (WSCB)
  2. Get to the X coordinate.
  3. Rotate so that it faces the other robot.
  4. Tell the WSCB it's ready.

What information does it need?

  1. X coordinate.
  2. Orientation (which direction should it face?)

What information does this share with WSCB?

  1. I'm ready.

Why flexible?

  1. For the task A, the defender needs to move to the position of the ball (roughly) where the attacking robot is going anyway.
  2. For the task B, the defender needs to move to some position decided by the WSCB which is the optimal for both of them to avoid the obstacle. --> By reading the X coordinate from the WSCB we can use this strategy in either task.