Vehicle now removes old image when moving.

This commit is contained in:
Matt Lubas
2016-08-11 15:29:13 -04:00
parent a1be738010
commit e8cf694ce0
2 changed files with 32 additions and 22 deletions

View File

@@ -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)