Skip to content

Commit

Permalink
defined class and constructor of binary occupancy grid map constructi…
Browse files Browse the repository at this point in the history
…on class
  • Loading branch information
ShisatoYano committed Feb 26, 2025
1 parent 178a798 commit 311ef23
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/components/mapping/binary/binary_grid_mapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,23 @@
Author: Shisato Yano
"""


class BinaryGridMapper:
"""
Binary occupancy grid map construction class
"""

def __init__(self, width_m=60.0, height_m=60.0, resolution_m=1.0,
center_x_m=0.0, center_y_m=0.0, sensor_params=None):
"""
Constructor
width_m: Width size of map[m]
height_m: Height size of map[m]
resolution: Size of each cells[m]
center_x_m: Center x position of map[m]
center_y_m: Center y position of map[m]
sensor_params: Parameters object of sensor
"""

self.params = sensor_params

0 comments on commit 311ef23

Please sign in to comment.