Vehicle now removes old image when moving.
This commit is contained in:
@@ -79,7 +79,8 @@ def main():
|
||||
|
||||
# Loop over scans
|
||||
for scanno in range(nscans):
|
||||
|
||||
|
||||
|
||||
if use_odometry:
|
||||
|
||||
# Convert odometry to velocities
|
||||
@@ -103,6 +104,8 @@ def main():
|
||||
display.displayMap(mapbytes)
|
||||
display.displayRobot((x_mm, y_mm, theta_degrees))
|
||||
|
||||
display.setPose(x_mm, y_mm, theta_degrees)
|
||||
|
||||
# Exit gracefully if user closes display
|
||||
if not display.refresh():
|
||||
exit(0)
|
||||
|
||||
Reference in New Issue
Block a user