This is the userspace API for the robot, which is what students will interface with to program their robots.
# Install build tools:
sudo apt install build-essential devscripts debhelper equivs
# cd to the root of this project
cd path/to/robot-api
# Install dependencies
sudo mk-build-deps -ir
# Build the package:
debuild -uc -us
After building, the .deb file should appear in the parent directory, just run
# Go up a directory (there should be a .deb file here)
cd ..
# Install the package
sudo dpkg -i robot-api_0_all.deb
to install the package
The robot-api tests require robotd
installed.
To run the tests, run python3 -m unittest
and it will run all tests.