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
Package Registry
Model registry
Operate
Environments
Terraform modules
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
elrichgro
Flatland
Commits
30a149a5
Commit
30a149a5
authored
5 years ago
by
Erik Nygren
Browse files
Options
Downloads
Patches
Plain Diff
updated comment to make tree observation more understandable
parent
c4747283
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
flatland/envs/observations.py
+9
-8
9 additions, 8 deletions
flatland/envs/observations.py
with
9 additions
and
8 deletions
flatland/envs/observations.py
+
9
−
8
View file @
30a149a5
...
@@ -215,24 +215,25 @@ class TreeObsForRailEnv(ObservationBuilder):
...
@@ -215,24 +215,25 @@ class TreeObsForRailEnv(ObservationBuilder):
Finally, each node information is composed of 5 floating point values:
Finally, each node information is composed of 5 floating point values:
#1:
1
if own target lies on the explored branch
#1: if own target lies on the explored branch
the current distance from the agent in number of cells is stored.
#2: distance toa target of another agent is detected between the previous node and the current one.
#2: if another agents target is detected the distance in number of cells from the agents current locaiton
is stored
#3: distance to another agent is detected between the previous node and the current one.
#
4
:
distance of agent to the current branch node
#
3
:
if another agent is detected the distance in number of cells from current agent position is stored.
#5: minimum distance from node to the agent
'
s target (when landing to the node following the corresponding
#4: This feature stores the distance in number of cells to the next branching store (current node)
branch.
#5: minimum distance from node to the agent
'
s target given the direction of the agent if this path is chosen
#6: agent in the same direction
#6: agent in the same direction
1
= agent present same direction
n
=
number of
agent
s
present same direction
(possible future use: number of other agents in the same direction in this branch)
(possible future use: number of other agents in the same direction in this branch)
0 = no agent present same direction
0 = no agent present same direction
#7: agent in the opposite drection
#7: agent in the opposite drection
1
= agent present other direction than myself (so conflict)
n
=
number of
agent
s
present other direction than myself (so conflict)
(possible future use: number of other agents in other direction in this branch, ie. number of conflicts)
(possible future use: number of other agents in other direction in this branch, ie. number of conflicts)
0 = no agent present other direction than myself
0 = no agent present other direction than myself
...
...
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