Skip to content

Commit

Permalink
Bring back pep257 docstring (ros-navigation#4045)
Browse files Browse the repository at this point in the history
* test

Signed-off-by: Tony Najjar <[email protected]>

* .

Signed-off-by: Tony Najjar <[email protected]>

---------

Signed-off-by: Tony Najjar <[email protected]>
Signed-off-by: enricosutera <[email protected]>
  • Loading branch information
tonynajjar authored and enricosutera committed May 19, 2024
1 parent f3ecf36 commit 644def0
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 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,18 @@ class PyCostmap2D:
"""

def __init__(self, occupancy_map):
"""
Initialize costmap2D.
Args
----
occupancy_map (OccupancyGrid): 2D OccupancyGrid Map
Returns
-------
None
"""
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 644def0

Please sign in to comment.