2019-06-04 05:08:13 +03:00
.. _orb_slam2:
2019-03-14 05:48:41 +02:00
2019-06-25 06:09:49 +03:00
How To Use In `ORB_SLAM2 <https://github.com/raulmur/ORB_SLAM2> `_
2019-03-14 05:48:41 +02:00
==================================================================
If you wanna run ORB_SLAM2 with MYNT EYE camera, please follow the steps:
-------------------------------------------------------------------------
1. Download `MYNT-EYE-S-SDK <https://github.com/slightech/MYNT-EYE-S-SDK.git> `_ and follow steps to install.
2. Follow the normal procedure to install ORB_SLAM2.
2019-04-19 00:19:55 +03:00
3. Run examples by MYNT® EYE.
2019-03-14 05:48:41 +02:00
2019-04-19 00:19:55 +03:00
Prerequisites
--------------
2019-03-14 05:48:41 +02:00
.. code-block :: bash
2019-04-19 00:19:55 +03:00
sudo apt-get -y install libglew-dev cmake
cd ~
git clone https://github.com/stevenlovegrove/Pangolin.git
cd Pangolin
mkdir build
cd build
cmake ..
cmake --build .
sudo make install
2019-03-14 05:48:41 +02:00
Building the nodes for mono and stereo (ROS)
--------------------------------------------
2019-04-19 00:19:55 +03:00
* Add the path including `` Examples/ROS/ORB_SLAM2 `` to the `` ROS_PACKAGE_PATH `` environment variable. Open `` .bashrc `` file and add at the end the following line.
2019-03-14 05:48:41 +02:00
.. code-block :: bash
2019-04-19 00:19:55 +03:00
export ROS_PACKAGE_PATH=${ROS_PACKAGE_PATH}:~/catkin_ws/src/MYNT-EYE-ORB-SLAM2-Sample
2019-03-14 05:48:41 +02:00
* Execute `build_ros.sh` :
.. code-block :: bash
2019-04-19 09:22:07 +03:00
chmod +x build.sh
./build.sh
2019-03-14 05:48:41 +02:00
chmod +x build_ros.sh
./build_ros.sh
2019-03-18 09:36:40 +02:00
Stereo_ROS Example
~~~~~~~~~~~~~~~~~~~
2019-03-14 05:48:41 +02:00
2019-03-18 09:36:40 +02:00
* Launch ORB_SLAM2 `` Stereo_ROS ``
2019-03-14 05:48:41 +02:00
2019-03-18 09:36:40 +02:00
1. Launch mynteye node
2019-03-14 05:48:41 +02:00
.. code-block :: bash
2019-03-18 09:36:40 +02:00
cd [path of mynteye-s-sdk]
make ros
source ./wrappers/ros/devel/setup.bash
roslaunch mynt_eye_ros_wrapper mynteye.launch
2019-03-14 05:48:41 +02:00
2019-03-18 09:36:40 +02:00
2. Open another terminal and run ORB_SLAM2
2019-03-14 05:48:41 +02:00
.. code-block :: bash
2019-04-19 00:19:55 +03:00
rosrun ORB_SLAM2 mynteye_s_stereo ./Vocabulary/ORBvoc.txt ./config/mynteye_s_stereo.yaml false /mynteye/left_rect/image_rect /mynteye/right_rect/image_rect