soccer_strategy.communication.game_controller_receiver.GameStateReceiver
- class soccer_strategy.communication.game_controller_receiver.GameStateReceiver[source]
Bases:
object
Get information about the GameState and publish to /robotx/game_state
Methods
__init__
()answer_to_gamecontroller
(peer)Answer the game controller information it requires :param peer: Don't know
on_new_gamestate
(state)Publish information about the game state :param state: state of the game :return:
Runs the main loop and gets information from the game controller
Attributes
DEFAULT_LISTENING_HOST
GAME_CONTROLLER_ANSWER_PORT
GAME_CONTROLLER_LISTEN_PORT
- answer_to_gamecontroller(peer)[source]
Answer the game controller information it requires :param peer: Don’t know