Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Flatland
Flatland
Commits
28f5d0c0
Commit
28f5d0c0
authored
Aug 29, 2019
by
Egli Adrian (IT-SCI-API-PFI)
Browse files
refactoring
parent
7234b44a
Pipeline
#1844
failed with stages
in 22 minutes
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
flatland/envs/schedule_generators.py
View file @
28f5d0c0
...
...
@@ -211,6 +211,7 @@ def random_schedule_generator(speed_ratio_map: Mapping[float, float] = None) ->
if
len
(
valid_starting_directions
)
==
0
:
re_generate
=
True
update_agents
[
i
]
=
1
print
(
"reset position for agents:"
,
i
,
agents_position
[
i
],
agents_target
[
i
])
break
else
:
agents_direction
[
i
]
=
valid_starting_directions
[
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment