Skip to content

Commit 51594ec

Browse files
committed
More cleanup
1 parent c7a0983 commit 51594ec

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/scenic/domains/driving/behaviors/walks.scenic

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ def getBugPath(actor, path_ls, backgroundObjects, bufferConst=1):
7777
start_pt_s = exterior_ls.project(start_pt, normalized=True)
7878
exterior_ls = LineString(list(shapely.ops.substring(exterior_ls, start_pt_s, 1, normalized=True).coords)
7979
+ list(shapely.ops.substring(exterior_ls, 0, start_pt_s, normalized=True).coords))
80+
exterior_ls = shapely.remove_repeated_points(exterior_ls)
8081
end_pt_ls = exterior_ls.project(end_pt, normalized=True)
8182
exterior_segments = [
8283
shapely.ops.substring(exterior_ls, 0, end_pt_ls, normalized=True),

0 commit comments

Comments
 (0)