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
7e4db340
Commit
7e4db340
authored
Oct 07, 2021
by
nimishsantosh107
Browse files
removed comment in wrappers.py
parent
157d8872
Pipeline
#8703
failed with stages
in 7 minutes
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
flatland/contrib/wrappers/flatland_wrappers.py
View file @
7e4db340
...
@@ -26,7 +26,6 @@ def possible_actions_sorted_by_distance(env: RailEnv, handle: int):
...
@@ -26,7 +26,6 @@ def possible_actions_sorted_by_distance(env: RailEnv, handle: int):
else
:
else
:
print
(
"no action possible!"
)
print
(
"no action possible!"
)
print
(
"agent status: "
,
agent
.
state
)
print
(
"agent status: "
,
agent
.
state
)
#return None
# NEW: if agent is at target, DO_NOTHING, and distance is zero.
# NEW: if agent is at target, DO_NOTHING, and distance is zero.
# NEW: (needs to be tested...)
# NEW: (needs to be tested...)
return
[(
RailEnvActions
.
DO_NOTHING
,
0
)]
*
2
return
[(
RailEnvActions
.
DO_NOTHING
,
0
)]
*
2
...
...
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