How to use the gfootball.env.script_helpers.ScriptHelpers function in gfootball

To help you get started, we’ve selected a few gfootball examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github google-research / football / gfootball / dump_to_video.py View on Github external
def main(_):
  script_helpers.ScriptHelpers().dump_to_video(FLAGS.trace_file)
github google-research / football / gfootball / dump_to_txt.py View on Github external
def main(_):
  script_helpers.ScriptHelpers().dump_to_txt(FLAGS.trace_file, FLAGS.output,
                                             FLAGS.include_debug)
github google-research / football / gfootball / replay.py View on Github external
def main(_):
  script_helpers.ScriptHelpers().replay(FLAGS.trace_file, FLAGS.fps)
github google-research / football / gfootball / env / players / replay.py View on Github external
def __init__(self, player_config, env_config):
    player_base.PlayerBase.__init__(self, player_config)
    self._can_play_right = True
    self._replay = script_helpers.ScriptHelpers().load_dump(player_config['path'])
    self._step = 0
    self._player = player_config['index']