# YOLO_ORB_SLAM3 **Repository Path**: chen-liangwei/YOLO_ORB_SLAM3 ## Basic Information - **Project Name**: YOLO_ORB_SLAM3 - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-11-07 - **Last Updated**: 2025-11-07 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # YOLO_ORB_SLAM3 **This is an improved version of [ORB-SLAM3](https://github.com/UZ-SLAMLab/ORB_SLAM3) that adds an object detection module implemented with [YOLOv5](https://github.com/ultralytics/yolov5) to achieve SLAM in dynamic environments.** - Object Detection - Dynamic SLAM


Fig 1 : Test with TUM dataset

## Getting Started ### 0. Prerequisites We have tested on: > > OS = Ubuntu 20.04 > > OpenCV = 4.2 > > [Eigen3](http://eigen.tuxfamily.org/index.php?title=Main_Page) = 3.3.9 > > [Pangolin](https://github.com/stevenlovegrove/Pangolin) = 0.5 > > [ROS](http://wiki.ros.org/ROS/Installation) = Noetic ### 1. Install libtorch #### Recommended way You can download the compatible version of libtorch from [Baidu Netdisk](https://pan.baidu.com/s/1DQGM3rt3KTPWtpRK0lu8Fg?pwd=8y4k) code: 8y4k, then ```bash unzip libtorch.zip mv libtorch/ PATH/YOLO_ORB_SLAM3/Thirdparty/ ``` #### Or you can ```bash wget https://download.pytorch.org/libtorch/cpu/libtorch-cxx11-abi-shared-with-deps-1.11.0%2Bcpu.zip unzip libtorch-cxx11-abi-shared-with-deps-1.11.0%2Bcpu.zip mv libtorch/ PATH/YOLO_ORB_SLAM3/Thirdparty/ ``` ### 2. Build ```bash cd YOLO_ORB_SLAM3 chmod +x build.sh ./build.sh ``` Only the rgbd_tum target will be build. ### 3. Build ROS Examples Add the path including *Examples/ROS/YOLO_ORB_SLAM3* to the ROS_PACKAGE_PATH environment variable. Open .bashrc file: ```bash gedit ~/.bashrc ``` and add at the end the following line. Replace PATH by the folder where you cloned YOLO_ORB_SLAM3: ```bash export ROS_PACKAGE_PATH=${ROS_PACKAGE_PATH}:PATH/YOLO_ORB_SLAM3/Examples/ROS ``` Then build ```bash chmod +x build_ros.sh ./build_ros.sh ``` Only the RGBD target has been improved. The frequency of camera topic must be lower than 15 Hz. You can run this command to change the frequency of topic which published by the camera driver. ```bash roslaunch YOLO_ORB_SLAM3 camera_topic_remap.launch ``` ### 4. Try #### TUM Dataset ```bash ./Examples/RGB-D/rgbd_tum Vocabulary/ORBvoc.txt Examples/RGB-D/TUMX.yaml PATH_TO_SEQUENCE_FOLDER ASSOCIATIONS_FILE ``` #### ROS ```bash roslaunch YOLO_ORB_SLAM3 camera_topic_remap.launch rosrun YOLO_ORB_SLAM3 RGBD PATH_TO_VOCABULARY PATH_TO_SETTINGS_FILE ```