- Create a build folder outside the repo and
cd
into it - Run
cmake <path to gesturelibrary folder>
to create build files - Run
make
to build - Run
ctest [--verbose]
to run tests
If you don't have pre-commit installed, follow these steps:
sudo apt install python3-pip
pip install pre-commit
- From the repo's root folder,
pre-commit install
Note: If pre-commit
doesn't work, you probably don't have ~/.local/bin
in your PATH.
To fix that, you can either add it to your PATH or run ~/.local/bin/pre-commit install
instead.
To add it to your path, follow these steps:
- Add the following line to the end of your
~/.bashrc
file:export PATH="${HOME}/.local/bin/:${PATH}"
- Run
. ~/.bashrc
To generate test data:
- Visit this website
- Open the console
- Perform gestures on the blue rectangle
- Copy the console output into a csv file
test/res/<gesture>/<device>_<number>.csv
where<number>
differentiates data of the same gesture on the same device.