Works with roboviz.MapVisualizer instead of Visualizer
This commit is contained in:
@@ -32,7 +32,7 @@ MIN_SAMPLES = 200
|
||||
from breezyslam.algorithms import RMHC_SLAM
|
||||
from breezyslam.sensors import RPLidarA1 as LaserModel
|
||||
from rplidar import RPLidar as Lidar
|
||||
from roboviz import Visualizer
|
||||
from roboviz import MapVisualizer
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
@@ -43,7 +43,7 @@ if __name__ == '__main__':
|
||||
slam = RMHC_SLAM(LaserModel(), MAP_SIZE_PIXELS, MAP_SIZE_METERS)
|
||||
|
||||
# Set up a SLAM display
|
||||
display = Visualizer(MAP_SIZE_PIXELS, MAP_SIZE_METERS, 'SLAM')
|
||||
display = MapVisualizer(MAP_SIZE_PIXELS, MAP_SIZE_METERS, 'SLAM')
|
||||
|
||||
# Initialize an empty trajectory
|
||||
trajectory = []
|
||||
|
||||
Reference in New Issue
Block a user