Author: Peter Stratton
Emails: [email protected], [email protected]
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
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