(argv)
| 37 | |
| 38 | |
| 39 | def main(argv): |
| 40 | if len(argv) > 1: |
| 41 | raise app.UsageError("Too many command-line arguments.") |
| 42 | |
| 43 | viewer.launch( |
| 44 | environment_loader=functools.partial( |
| 45 | soccer.load, |
| 46 | team_size=2, |
| 47 | walker_type=soccer.WalkerType[FLAGS.walker_type], |
| 48 | disable_walker_contacts=FLAGS.disable_walker_contacts, |
| 49 | enable_field_box=FLAGS.enable_field_box, |
| 50 | keep_aspect_ratio=True, |
| 51 | terminate_on_goal=FLAGS.terminate_on_goal)) |
| 52 | |
| 53 | |
| 54 | if __name__ == "__main__": |
nothing calls this directly
no test coverage detected
searching dependent graphs…