From 1a3307e4a631a10f1e7a9f76a66073febb7f40d3 Mon Sep 17 00:00:00 2001 From: simondlevy Date: Fri, 14 Oct 2016 17:36:35 -0400 Subject: [PATCH] Replaced cvslamshow with pltslamshow --- examples/urgslam.py | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/examples/urgslam.py b/examples/urgslam.py index f9d8b0d..7df47e3 100755 --- a/examples/urgslam.py +++ b/examples/urgslam.py @@ -28,7 +28,7 @@ from breezyslam.components import URG04LX as LaserModel from breezylidar import URG04LX as Lidar -from cvslamshow import SlamShow +from pltslamshow import SlamShow if __name__ == '__main__': @@ -41,9 +41,6 @@ if __name__ == '__main__': # Set up a SLAM display display = SlamShow(MAP_SIZE_PIXELS, MAP_SIZE_METERS*1000/MAP_SIZE_PIXELS, 'SLAM') - # Initialize an empty trajectory - trajectory = [] - # Initialize empty map mapbytes = bytearray(MAP_SIZE_PIXELS * MAP_SIZE_PIXELS) @@ -60,12 +57,7 @@ if __name__ == '__main__': display.displayMap(mapbytes) - display.displayRobot((x, y, theta)) - - trajectory.append((x,y)) - - # Display trajectory - display.displayTrajectory(trajectory) + display.setPose(x, y, theta) # Exit on ESCape key = display.refresh()