RoboCup-Humanoid-TC / webots

Webots Robot Simulator
https://cyberbotics.com
Apache License 2.0
14 stars 14 forks source link

Detection and Penalty of Fallen Robots - multiple robots #22

Open MaikePaetzel opened 3 years ago

MaikePaetzel commented 3 years ago

Setup:

  1. Game is in state PLAY
  2. Robot 1 of team red falls down (i.e., not only feet are touching the floor)
  3. Robot 2 of team red falls down (i.e., not only feet are touching the floor)
  4. Robot 1 does not get up for 20 seconds
  5. Robot 2 does not get up for 20 seconds

Expected outcome:

  1. Robot 1 receives a 30-second removal penalty
  2. Robot 1 is respawned at a position outside the touchline which is further away from the ball in its own half at the height of the penalty mark
  3. Robot 2 receives a 30-second removal penalty
  4. Robot 2 is respawned at a position outside the touchline which is further away from the ball in its own half 60 cm away from the other robot that is already suffering from a removal penalty
  5. Game log contains the information (with real and simulated timestamp): both robots that were penalized (identified by team name and number) + offense that was called, penalty position they were respawned at
omichel commented 3 years ago

60 cm away from the other robot that is already suffering from a removal penalty

Could you be more precise on that? Is it 60 cm towards to goal line, towards the center line or towards the outside of the field?

medrimonia commented 3 years ago

It's L858-866 of this document for the exact rule.

In this case, both solutions are acceptable, so implementation is up to you (the logical way with respect to how rules are written would be to take the furthest one from the ball).

medrimonia commented 3 years ago

Manual test available in misc_fouls/robot_falling.