Skip to content

Latest commit

 

History

History
52 lines (41 loc) · 1.56 KB

README.md

File metadata and controls

52 lines (41 loc) · 1.56 KB

LidarOccupancyGridMapping


Occupancy Grid Mapping simulation using lidar and odometry data and VTKPlotter for display.

Author: Peter Stratton

Emails: pstratt@umich.edu, pstratto@ucsd.edu

Installation

First, install python executing this in a terminal:

sudo apt-get update
sudo apt-get install python

Next, install pip by running:

sudo apt install python3-pip

We want to use a virtual environment to isolate the required packages for the repo, so use this command to install venv, a package used to create and manage virtual environments:

pip install virtualenv

Next, run this command to start the virtual environement and install the dependancies:

./easy_install.sh

Run

To run the code, first run this command to activate the virtual environment that was installed:

source env/bin/activate

After that, execute this command to run the simulation:

python main.py

The program will first show a window with the robot and lidar scan from the first timestep. After clicking 'x' to close that initial window, the rest of the scans will render automatically.

When you're done running the code, run this command to deactivate the virtual environment:

deactivate