Cleaned up
This commit is contained in:
41
README.md
41
README.md
@@ -28,27 +28,26 @@ the map (pixels) and mapping area (meters); a method for updating with the curre
|
|||||||
the current robot position; and a method for retrieving the current map as a byte
|
the current robot position; and a method for retrieving the current map as a byte
|
||||||
array.
|
array.
|
||||||
|
|
||||||
</p><p>
|
<pre>
|
||||||
<tt>
|
from breezyslam.algorithms import RMHC\_SLAM
|
||||||
from breezyslam.algorithms import RMHC_SLAM
|
|
||||||
</tt></p><p><tt>
|
lidar = MyLidarModel()
|
||||||
lidar = MyLidarModel()
|
|
||||||
</tt></p><p><tt>
|
mapbytes = bytearray(800*800)
|
||||||
mapbytes = bytearray(800*800)
|
|
||||||
</tt></p><p><tt>
|
slam = <b>RMHC_SLAM</b>(lidar, 800, 35)
|
||||||
slam = <b>RMHC_SLAM</b>(lidar, 800, 35)
|
|
||||||
</tt></p><p><tt>
|
while True:
|
||||||
while True:
|
|
||||||
</tt></p><p><tt>
|
scan = readLidar()
|
||||||
scan = readLidar()
|
|
||||||
</tt></p><p><tt>
|
slam.update(scan)
|
||||||
slam.<b>update</b>(scan)
|
|
||||||
</tt></p><p><tt>
|
x, y, theta = slam.<b>getpos</b>(scan)
|
||||||
x, y, theta = slam.<b>getpos</b>(scan)
|
|
||||||
</tt></p><p><tt>
|
slam.getmap(mapbytes)
|
||||||
slam.<b>getmap</b>(mapbytes)
|
</pre>
|
||||||
</tt>
|
|
||||||
</p><p>
|
|
||||||
If odometry is available, it can also be passed into the update method.
|
If odometry is available, it can also be passed into the update method.
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user