From 3440bc91c4d2c4e6010cc16e48a931f398fff609 Mon Sep 17 00:00:00 2001 From: "Dr. Simon Levy" Date: Wed, 10 Aug 2016 16:02:55 -0400 Subject: [PATCH] Added "make display" command to makefile --- examples/Makefile | 3 +++ examples/logdemo.py | 4 +--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/examples/Makefile b/examples/Makefile index 37e41cf..9d2e85e 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -30,6 +30,9 @@ RANDOM_SEED = 9999 all: log2pgm Log2PGM.class +display: + ./logdemo.py exp1 1 9999 + pytest: ./log2pgm.py $(DATASET) $(USE_ODOMETRY) $(RANDOM_SEED) $(VIEWER) $(DATASET).pgm ~/Desktop/$(DATASET).pgm diff --git a/examples/logdemo.py b/examples/logdemo.py index 67d74a2..0c4a7f8 100755 --- a/examples/logdemo.py +++ b/examples/logdemo.py @@ -96,9 +96,7 @@ def main(): # Get new position x_mm, y_mm, theta_degrees = slam.getpos() - print(scanno, x_mm, y_mm, theta_degrees) - - # Get current map + # Get new map slam.getmap(mapbytes) # Display map and robot pose