Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
tonynajjar committed Jan 10, 2024
1 parent 5f7f83a commit af34314
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions nav2_simple_commander/nav2_simple_commander/costmap_2d.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,15 @@ class PyCostmap2D:
"""

def __init__(self, occupancy_map):
"""
Initialize costmap2D.
Args
----
occupancy_map: OccupancyGrid
2D OccupancyGrid Map
"""
self.size_x = occupancy_map.info.width
self.size_y = occupancy_map.info.height
self.resolution = occupancy_map.info.resolution
Expand Down

0 comments on commit af34314

Please sign in to comment.