You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
### Implementation of Monocular Visual SLAM in Python:
2
+
3
+
4
+
## Setup pangolin for python:
5
+
6
+
#### Install pangolin python:
7
+
The [original library](https://github.com/stevenlovegrove/Pangolin) is written in c++, but there is [python binding](https://github.com/uoip/pangolin) available.
8
+
9
+
-**Install dependency:** For Ubuntu/Debian execute the below commands to install library dependencies,
- Don't need to follow the [Very Optional Dependencies](https://github.com/uoip/pangolin?tab=readme-ov-file#very-optional-dependencies) from the repository.
20
+
21
+
-**Install the Library:** Execute the below commands to install *pangolin*,
22
+
```
23
+
git clone https://github.com/uoip/pangolin.git
24
+
cd pangolin
25
+
mkdir build
26
+
cd build
27
+
cmake ..
28
+
make -j8
29
+
cd ..
30
+
python setup.py install
31
+
```
32
+
33
+
In the `make -j8` you might get some error, just follow the comment mentioned in this [github issue](https://github.com/uoip/pangolin/issues/33#issuecomment-717655495). Running the `python setup.py install` might throw an silly error, use this [comment](https://github.com/uoip/pangolin/issues/20#issuecomment-498211997) from the exact issue to solve this.
34
+
35
+
- Other dependencies are pip installable.
36
+
37
+
38
+
## How to run?
39
+
40
+
```bash
41
+
python main.py
42
+
```
43
+
44
+
## Code structure:
45
+
```bash
46
+
├── display.py
47
+
├── extractor.py
48
+
├── pointmap.py
49
+
├── main.py
50
+
├── notebooks
51
+
│ ├── bundle_adjustment.ipynb
52
+
│ ├── mapping.ipynb
53
+
│ └── SLAM_pipeline_step_by_step.ipynb
54
+
55
+
```
56
+
57
+
In the notebook section we have shown how to run all the components of a monocular slam,
58
+
-`SLAM_pipeline_step_by_step.ipynb` Describes the entire pipeline
59
+
-`mapping.ipynb` is another resource for mapping [source](https://github.com/SiddhantNadkarni/Parallel_SFM)
60
+
-`bundle_adjustment.ipynb` another great resource to understand g2o and bundle adjustment. [source](https://github.com/maxcrous/multiview_notebooks)
61
+
62
+
1st notebook uses the kitti dataset (grayscale, 22 GB), [download it from here](https://www.cvlibs.net/datasets/kitti/eval_odometry.php).
Collapse file: Monocular SLAM for Robotics implementation in python/__pycache__/display.cpython-310.pyc
0 commit comments