Skip to content

davidmhunt/mmwave_radar_processing

Repository files navigation

mmwave_radar_processing

python libraries for processing raw mmWave radar data

Installation

In order for the code to work properly, the following steps are required

  1. Install correct version of python
  2. Install mmWaveRadarProcessing using Poetry

1. Setup Python environment

Deadsnakes PPA (requires sudo access)

  1. On ubuntu systems, start by adding the deadsnakes PPA to add the required version of python.
sudo add-apt-repository ppa:deadsnakes/ppa
  1. Update the package list
sudo apt update
  1. 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

Conda (Backup)

  1. If conda isn't already installed, follow the Conda Install Instructions to install conda
  2. 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
  1. Run the conda installation script (-b for auto accepting the license)
bash Anaconda3-2023.09-0-Linux-x86_64.sh -b
  1. Once conda is installed, create a new conda environment with the correct version of python
conda create -n mmWaveRadarProcessing python=3.10

2. Clone mmwave_radar_processing

git clone https://github.com/davidmhunt/mmwave_radar_processing.git

Initialize the submodule

cd mmwave_radar_processing
git submodule update --init

3. Install mmwave_radar_processing using Poetry

Installing Poetry:

  1. 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
  1. 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 -

Installing mmwave_radar_processing

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

Updating mmwave_radar_processing

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

Using .env for Project Directories

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.

  1. Create a .env file in your project's root directory. This will file will not be uploaded to GitHub when you commit your changes.
  2. Inside the .env file, add these variables
DATASET_DIRECTORY=/example/your_directory
MAP_DIRECTORY=/example/your_directory
MOVIE_TEMP_DIRECTORY=/example/your_directory
  1. Replace the example text with the path to your directory

About

python libraries for processing raw mmWave radar data

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published