Skip to content

Commit 311ef23

Browse files
committed
defined class and constructor of binary occupancy grid map construction class
1 parent 178a798 commit 311ef23

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

src/components/mapping/binary/binary_grid_mapper.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,23 @@
33
44
Author: Shisato Yano
55
"""
6+
7+
8+
class BinaryGridMapper:
9+
"""
10+
Binary occupancy grid map construction class
11+
"""
12+
13+
def __init__(self, width_m=60.0, height_m=60.0, resolution_m=1.0,
14+
center_x_m=0.0, center_y_m=0.0, sensor_params=None):
15+
"""
16+
Constructor
17+
width_m: Width size of map[m]
18+
height_m: Height size of map[m]
19+
resolution: Size of each cells[m]
20+
center_x_m: Center x position of map[m]
21+
center_y_m: Center y position of map[m]
22+
sensor_params: Parameters object of sensor
23+
"""
24+
25+
self.params = sensor_params

0 commit comments

Comments
 (0)