Skip to content

Commit 1809360

Browse files
committed
import grid map module
1 parent 58be240 commit 1809360

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/components/mapping/binary/binary_grid_mapper.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44
Author: Shisato Yano
55
"""
66

7+
import sys
8+
from pathlib import Path
9+
10+
sys.path.append(str(Path(__file__).absolute().parent) + "/../grid")
11+
from grid_map import GridMap
12+
713

814
class BinaryGridMapper:
915
"""
@@ -22,7 +28,7 @@ def __init__(self, width_m=60.0, height_m=60.0, resolution_m=1.0,
2228
sensor_params: Parameters object of sensor
2329
"""
2430

25-
# initialize map data
31+
self.map = GridMap(width_m, height_m, resolution_m, center_x_m, center_y_m)
2632
self.params = sensor_params
2733

2834
def update(self, point_cloud, state):

0 commit comments

Comments
 (0)