RoboCup-Humanoid-TC / webots

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

When a game interruption occurs, the game can end immediately #274

Open medrimonia opened 3 years ago

medrimonia commented 3 years ago

In the following game, the overtime period is ended immediately after the direct free kick is called because the AutoRef sends a FINISH message:

[2852.504|0250.880] Info: STATUS: state: STATE_PLAYING, remaining time: 114
[2858.387|0251.424] Info: Blue player 2 committed a forceful contact foul on red player 3 (opponent moving towards the ball, charge from behind) outside penalty area.
[2859.293|0251.424] Info: State has succesfully changed to STATE_DIRECT_FREEKICK:0
[2859.298|0251.424] Info: Sending FINISH because seconds remaining = -22
[2859.298|0251.424] Info: Sending 31499:STATE:FINISH to GameController.
[2859.699|0251.424] Error: Received illegal answer from GameController for message 31499:STATE:FINISH.

There are mainly two problems which needs to be solved here: