python libraries for processing raw mmWave radar data
In order for the code to work properly, the following steps are required
- Install correct version of python
- Install mmWaveRadarProcessing using Poetry
- On ubuntu systems, start by adding the deadsnakes PPA to add the required version of python.
sudo add-apt-repository ppa:deadsnakes/ppa
- Update the package list
sudo apt update
- Install python 3.10 along with the required development dependencies
sudo apt install python3.10 python3.10-dev
The following resources may be helpful Deadsnakes PPA description, Tutorial on Deadsnakes on Ubuntu
- If conda isn't already installed, follow the Conda Install Instructions to install conda
- Use the following command to download the conda installation (for linux)
wget https://repo.anaconda.com/archive/Anaconda3-2023.09-0-Linux-x86_64.sh
- Run the conda installation script (-b for auto accepting the license)
bash Anaconda3-2023.09-0-Linux-x86_64.sh -b
- Once conda is installed, create a new conda environment with the correct version of python
conda create -n mmWaveRadarProcessing python=3.10
git clone https://github.com/davidmhunt/mmwave_radar_processing.git
Initialize the submodule
cd mmwave_radar_processing
git submodule update --init
- Check to see if Python Poetry is installed. If the below command is successful, poetry is installed move on to setting up the conda environment
poetry --version
- If Python Poetry is not installed, follow the Poetry Install Instructions. On linux, Poetry can be installed using the following command:
curl -sSL https://install.python-poetry.org | python3 -
Navigate to the mmwave_radar_processing foler (this folder) and execute the following command
poetry install --with submodules
If you get an an error saying: "Failed to unlock the collection!", execute the following command in the terminal:
export PYTHON_KEYRING_BACKEND=keyring.backends.null.Keyring
If the pyproject.toml file is updated, the poetry installation must also be updated. Use the following commands to update the version of poetry
poetry lock --no-update
poetry install
In order to use any datasets in your computer's directory, you must first create a .env file and mark where the dataset files can be found.
- Create a .env file in your project's root directory. This will file will not be uploaded to GitHub when you commit your changes.
- Inside the .env file, add these variables
DATASET_DIRECTORY=/example/your_directory
MAP_DIRECTORY=/example/your_directory
MOVIE_TEMP_DIRECTORY=/example/your_directory
- Replace the example text with the path to your directory