Skip to content
Snippets Groups Projects
Commit d725b303 authored by Erik Nygren's avatar Erik Nygren :bullettrain_front:
Browse files

updated parameters for more realistic environment in example file

parent 925db59d
No related branches found
No related tags found
No related merge requests found
......@@ -158,8 +158,8 @@ env = RailEnv(width=width,
env_renderer = RenderTool(env, gl="PILSVG",
agent_render_variant=AgentRenderVariant.AGENT_SHOWS_OPTIONS_AND_BOX,
show_debug=False,
screen_height=1000, # Adjust these parameters to fit your resolution
screen_width=1000) # Adjust these parameters to fit your resolution
screen_height=1080, # Adjust these parameters to fit your resolution
screen_width=1920) # Adjust these parameters to fit your resolution
def my_controller():
......
......@@ -62,7 +62,7 @@ schedule_generator = sparse_schedule_generator(speed_ration_map)
# We can furthermore pass stochastic data to the RailEnv constructor which will allow for stochastic malfunctions
# during an episode.
stochastic_data = {'malfunction_rate': 100, # Rate of malfunction occurence of single agent
stochastic_data = {'malfunction_rate': 10000, # Rate of malfunction occurence of single agent
'min_duration': 15, # Minimal duration of malfunction
'max_duration': 50 # Max duration of malfunction
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment