Skip to content

Commit

Permalink
updated comments
Browse files Browse the repository at this point in the history
  • Loading branch information
SPDonaghy committed Sep 27, 2024
1 parent 3576250 commit 3145a2b
Show file tree
Hide file tree
Showing 2 changed files with 87 additions and 1,650 deletions.
1,732 changes: 85 additions & 1,647 deletions src/local_pathfinding/land/land_polygons_notebook.ipynb

Large diffs are not rendered by default.

5 changes: 2 additions & 3 deletions src/local_pathfinding/local_pathfinding/obstacles.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@ def _update_land_collision_zone(
) -> None:
"""
Updates the Land object's collision zone with a MultiPolygon representing
all land obstacles within either a bounding box input as an argument
or a rectangle that bounds boxes around Sailbot and the next global waypoint.
all land obstacles within either a state_space input as an argument
or a default rectangle that bounds boxes around Sailbot and the next global waypoint.
"""
if land_multi_polygon is not None: # for testing

Expand Down Expand Up @@ -174,7 +174,6 @@ def _update_land_collision_zone(

if len(collision_zone.geoms) > 0:
# if collision_zone is empty, buffer(0) will return an empty Polygon
# not a MultiPolygon
# buffer(0) will repair invalid/overlapping geometry
# otherwise we cant run .contains() on it
collision_zone = collision_zone.buffer(0)
Expand Down

0 comments on commit 3145a2b

Please sign in to comment.