Skip to content

Commit

Permalink
Added screen size flag
Browse files Browse the repository at this point in the history
  • Loading branch information
jerryz123 committed Aug 9, 2018
1 parent 6c7c76a commit 569668a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fluids/__main__.py
Expand Up @@ -23,6 +23,8 @@
parser.add_argument('-o', metavar='str', type=str, default="birdseye",
choices=["none", "birdseye", "grid"],
help='Observation type')
parser.add_argument('--screen-height', metavar='N', dest='screen_dim', type=int, default=800,
help='Sets screen height')
parser.add_argument('--no-trafficlights', dest='trafficlights', action='store_false', default=True,
help='Disables vehicle crossing lights')
parser.add_argument('--no-pedlights', dest='pedlights', action='store_false', default=True,
Expand Down Expand Up @@ -50,6 +52,7 @@
simulator = fluids.FluidSim(visualization_level=args.v,
fps =0,
obs_space =obs,
screen_dim =args.screen_dim,
background_control =fluids.BACKGROUND_CSP)

state = fluids.State(layout=args.state,
Expand Down

0 comments on commit 569668a

Please sign in to comment.