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
cfca5902
Commit
cfca5902
authored
5 years ago
by
Erik Nygren
Browse files
Options
Downloads
Patches
Plain Diff
minor documentation update
parent
7e74c267
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/grid4_generators_utils.py
+10
-10
10 additions, 10 deletions
flatland/envs/grid4_generators_utils.py
with
10 additions
and
10 deletions
flatland/envs/grid4_generators_utils.py
+
10
−
10
View file @
cfca5902
...
@@ -21,16 +21,16 @@ def connect_rail(rail_trans: RailEnvTransitions, grid_map: GridTransitionMap, st
...
@@ -21,16 +21,16 @@ def connect_rail(rail_trans: RailEnvTransitions, grid_map: GridTransitionMap, st
"""
"""
Creates a new path [start,end] in `grid_map.grid`, based on rail_trans, and
Creates a new path [start,end] in `grid_map.grid`, based on rail_trans, and
returns the path created as a list of positions.
returns the path created as a list of positions.
:param rail_trans:
:param rail_trans:
basic rail transition object
:param grid_map:
:param grid_map:
grid map
:param start:
:param start:
start position of rail
:param end:
:param end:
end position of rail
:param flip_start_node_trans:
:param flip_start_node_trans:
make valid start position by adding dead-end, empty start if False
:param flip_end_node_trans:
:param flip_end_node_trans:
make valid end position by adding dead-end, empty end if False
:param respect_transition_validity:
:param respect_transition_validity:
Only draw rail maps if legal rail elements can be use, False, draw line without respecting rail transitions.
:param a_star_distance_function:
:param a_star_distance_function:
Define what distance function a-star should use
:param forbidden_cells:
:param forbidden_cells:
cells to avoid when drawing rail. Rail cannot go through this list of cells
:return:
:return:
List of cells in the path
"""
"""
# in the worst case we will need to do a A* search, so we might as well set that up
# in the worst case we will need to do a A* search, so we might as well set that up
...
...
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