Spaces:
Sleeping
Sleeping
Rodrigo Ferreira Rodrigues
commited on
Commit
·
74a7ec7
1
Parent(s):
53e45ca
verifying that the path ends in a end point
Browse files
path_planning_evaluate.py
CHANGED
|
@@ -155,7 +155,7 @@ class Path_Planning_evaluate(evaluate.Metric):
|
|
| 155 |
|
| 156 |
unvisited = set()
|
| 157 |
|
| 158 |
-
if gen_path[0] == start:
|
| 159 |
metrics['correct'] = True
|
| 160 |
for e in ends:
|
| 161 |
if e not in gen_path:
|
|
|
|
| 155 |
|
| 156 |
unvisited = set()
|
| 157 |
|
| 158 |
+
if gen_path[0] == start and gen_path[-1] in ends:
|
| 159 |
metrics['correct'] = True
|
| 160 |
for e in ends:
|
| 161 |
if e not in gen_path:
|