Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Flatland
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
yoogottamk
Flatland
Commits
d725b303
Commit
d725b303
authored
5 years ago
by
Erik Nygren
Browse files
Options
Downloads
Patches
Plain Diff
updated parameters for more realistic environment in example file
parent
925db59d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+2
-2
2 additions, 2 deletions
README.md
examples/introduction_flatland_2_1.py
+1
-1
1 addition, 1 deletion
examples/introduction_flatland_2_1.py
with
3 additions
and
3 deletions
README.md
+
2
−
2
View file @
d725b303
...
...
@@ -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
=
10
0
0
,
# Adjust these parameters to fit your resolution
screen_width
=
1
00
0
)
# Adjust these parameters to fit your resolution
screen_height
=
10
8
0
,
# Adjust these parameters to fit your resolution
screen_width
=
1
92
0
)
# Adjust these parameters to fit your resolution
def
my_controller
():
...
...
This diff is collapsed.
Click to expand it.
examples/introduction_flatland_2_1.py
+
1
−
1
View file @
d725b303
...
...
@@ -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
'
:
100
00
,
# Rate of malfunction occurence of single agent
'
min_duration
'
:
15
,
# Minimal duration of malfunction
'
max_duration
'
:
50
# Max duration of malfunction
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment