Skip to content
Snippets Groups Projects
Commit 5d19dcdc authored by Shivam Khandelwal's avatar Shivam Khandelwal
Browse files

Merge branch '308_fix' into 'master'

#308 fix merge to master branch

See merge request flatland/flatland!283
parents 60bbde32 08c4b8fd
No related branches found
No related tags found
No related merge requests found
...@@ -167,6 +167,9 @@ def complex_rail_generator(nr_start_goal=1, ...@@ -167,6 +167,9 @@ def complex_rail_generator(nr_start_goal=1,
if len(new_path) >= 2: if len(new_path) >= 2:
nr_created += 1 nr_created += 1
else:
# after too many failures we will give up
created_sanity += 1
return grid_map, {'agents_hints': { return grid_map, {'agents_hints': {
'start_goal': start_goal, 'start_goal': start_goal,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment