git clone -b main [email protected]:AerialRobotics-IITK/interiit_11.0.git
cd interiit_11.0
git submodule init
git submodule updateInstall OpenCV 4.2.0
sudo apt install libopencv-dev python3-opencvCreate a virtualenv
sudo apt install python3.8-venv
python3 -m venv ./.venv
source ./.venv/bin/activateInstall python requirements
pip install -r requirements.txtTo build pose_ocam
cd pose_ocam
mkdir build && cd build
cmake ..
makeYou should find the executable ocam inside build now.
Check the file of ocam using ls /dev/video*, check that it's the same in ./pose_ocam/src/main.cpp as devpath. If not, change it and run the script again. Otherwise, to run pose estimation through oCam-1CGN-U, or any of the similar series,
./pose_ocam/build/ocamNote that quality of image would decide it's latency. To improve the parameters, try changing exposure and gain the same file.
In another terminal, run the following to install package for the controller
cd pluto_control
pip install . # if not done by the above script by chanceRun the controller in another terminal using
python single.py # this starts a log in src/logs/controller