-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
37 changed files
with
80 additions
and
1,356 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,3 @@ | ||
[submodule "ocam"] | ||
path = ocam | ||
url = [email protected]:AerialRobotics-IITK/ocam.git | ||
[submodule "opencv-basic_1MGN/cpp_python_socket"] | ||
path = opencv-basic_1MGN/cpp_python_socket | ||
url = https://github.com/OleguerCanal/cpp_python_socket.git | ||
[submodule "opencv-basic_1MGN/cpp-python_socket"] | ||
path = opencv-basic_1MGN/cpp-python_socket | ||
[submodule "pose_ocam/cpp-python_socket"] | ||
path = pose_ocam/cpp-python_socket | ||
url = [email protected]:OleguerCanal/cpp-python_socket.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,34 +3,61 @@ | |
## Installation | ||
|
||
```bash | ||
mkdir catkin_ws | ||
cd catkin_ws | ||
mkdir src | ||
git clone -b refactored [email protected]:AerialRobotics-IITK/InterIIT_2023.git src | ||
cd src | ||
git clone -b refactored [email protected]:AerialRobotics-IITK/interiit_11.0.git | ||
cd interiit_11.0 | ||
git submodule init | ||
git submodule update | ||
catkin build | ||
source ../devel/setup.bash # setup.zsh otherwise | ||
``` | ||
|
||
Install OpenCV 4.2.0 | ||
|
||
```bash | ||
sudo apt install libopencv-dev python3-opencv | ||
``` | ||
|
||
Create a virtualenv | ||
|
||
```bash | ||
sudo apt install python3.8-venv | ||
python -m venv ./.venv | ||
source ./.venv/bin/activate | ||
``` | ||
|
||
Install python requirements | ||
|
||
```bash | ||
pip install -r requirements.txt | ||
``` | ||
|
||
## Execution | ||
|
||
Run the following to open ocam_ros driver with ros pipeline. Check the file of ocam using `ls /dev/video*`, putting that in device_id | ||
To build `pose_ocam` | ||
|
||
```bash | ||
cd pose_ocam | ||
mkdir build && cd build | ||
cmake .. | ||
make | ||
``` | ||
|
||
You should find the executable `ocam` inside `build` now. | ||
Run the following to open ocam_ros driver with ros pipeline. 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, | ||
|
||
```bash | ||
roslaunch ocam ocam_ros.launch show_rqt_image_view:=true device_id:=/dev/video2 | ||
./pose_ocam/build/ocam | ||
``` | ||
|
||
In another terminal, run the following to obtain /detected topic | ||
Note 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 | ||
|
||
```bash | ||
cd pose_ocam/scripts/ | ||
python aruco_ros_ocam.py # this will start a log in src/logs/pose | ||
cd pluto_control | ||
pip install . # if not done by the above script by chance | ||
``` | ||
|
||
Run the controller in another terminal using | ||
|
||
```bash | ||
python controller.py # this starts a log in src/logs/controller | ||
python single.py # this starts a log in src/logs/controller | ||
``` |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.