-
Notifications
You must be signed in to change notification settings - Fork 4
Installation
The steps for installation use Anaconda for a virtual environment. Other python virtual environments but Anaconda has worked well for 2129 Ultraviolet. Make sure you are using python 3.8 as this is compatible with all of the dependencies.
NOTE: Issues may occur when attempting to install python dependencies on Windows. This is caused by an issue in the apriltags library, not this project.
-
Clone repository
On Linux, run the commandgit clone https://github.com/SouthwestRoboticsProgramming/TagTracker.git
On Windows, clone the repository using GitHub Desktop or by downloading the zipped folder. -
Install cmake using
sudo apt install cmake
on linux. It can be downloaded for Windows here. -
Install Anaconda using the steps listed on docs.anaconda.com.
-
Create an Anaconda virtual environment, this lets us have a specific version of python set up for AprilTag processing.
On Linux, run the commandconda create -n apriltags python=3.8
.
On Windows, open the Anaconda Command Prompt through the start menu. Once this is open, run the commandconda create -n apriltags python=3.8
. -
Activate the Anaconda environment to start installing dependencies
In either the Linux shell or the Anaconda Command Prompt, run the commandconda activate apriltags
. -
Install dependencies using PIP
Using the Linux shell or the Anaconda Command Prompt, navigate to the cloned repository. Once in the directoryTagTracker/
, run the commandpip install -r requirements.txt
. -
If Required Install Systemd Service
If you require it, you can use the provided default systemd service provided atapriltag_detector.service
. To Install it replace %s with the location of the main script, and %p with the base path of the TagTracker project (use the absolute path starting with/
. Afterwards move the file to/etc/systemd/system/apriltag_detector.service
. The project will now start on boot. Further explanation of the functionality provided by systemd can be found here https://en.wikipedia.org/wiki/Systemd
FRC 2129 Ultraviolet 2022
https://swrobotics.com