Skip to content

Commit

Permalink
revert removing hulistic rule to delete last leaft node less than 3 m…
Browse files Browse the repository at this point in the history
…eters

Signed-off-by: Daisuke Sato <[email protected]>
  • Loading branch information
daisukes committed Mar 19, 2024
1 parent 6209425 commit ba3836d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cabot_ui/cabot_ui/navgoal.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,9 +325,9 @@ def convert(g, a=anchor):
# TODO: This is a hulistic rule to deal with the last leaf link towards doorway in corridor
# It needs to check if the last link has perpendicular turn
# if the link is a leaf of the graph and short
# if isinstance(item, geojson.RouteLink):
# if item.is_leaf and item.length < 3.0:
# continue
if isinstance(item, geojson.RouteLink):
if item.is_leaf and item.length < 3.0:
continue

if isinstance(item.geometry, geojson.Point):
points.append(convert(item.geometry))
Expand Down

0 comments on commit ba3836d

Please sign in to comment.