Related Paper:
-
Benchun Zhou, Maximilian Gilles, Yongqi Meng. Structure SLAM with Points, Planes, and Objects[J]//Advanced Robotics 36.20 (2022): 1060-1075. [Link] [PDF] [Slide] [Youtube] [Bilibili]
-
If you use the code in your academic work, please cite the above paper.
- Ubuntu (18.04.5)
- CMake (3.10.2)
- Eigen (3)
- OpenCV (3.2.0)
- PCL (1.8.1)
- Note: the code builds on the top of ORB-SLAM2, if you meet compile problems, please refer to ORB-SLAM2.
Clone the repository:
git clone https://github.com/benchun123/point-plane-object-SLAM.git
build the project:
chmod +x build.sh
./build.sh
Download dataset:
the open-source code runs on a living room kt-2 sequence sequences of ICL NUIM RGB-D Dataset
Run it as follows:
./build/mono_icl_test ~/path/to/icl_dataset
- The main contribution of the code is to add cuboid and plane objects in tracking and optimization process, thus we add two classes MapCuboid and MapPlane together with several functions, such as:
- void DetectCuboid(KeyFrame *pKF);
- void AssociateCuboids(KeyFrame *pKF);
- void DetectPlane(KeyFrame *pKF);
- void AssociatePlanes(KeyFrame *pKF);
- void AssociatePlanesAndCuboids(KeyFrame *pKF);
- void static LocalBACameraPlaneCuboids(KeyFrame *pKF, bool *pbStopFlag, Map *pMap, bool fixCamera = false, bool fixPoint = false);
- please check "Tracking.h" and "Optimizer.h" for more details.
- In this code, we read offline 3D cuboid, the objects can be detected online.
- In this code, we use OrganizedMultiPlaneSegmentation from PCL library to detect planes from depth image, it can be replaced by other methods.
Thanks for the great work: ORB-SLAM2, Cube SLAM, and SP-SLAM
- Mur-Artal R, Tardós J D. Orb-slam2: An open-source slam system for monocular, stereo, and rgb-d cameras[J]. IEEE Transactions on Robotics, 2017, 33(5): 1255-1262. [PDF], [Code]
- Yang S, Scherer S. Cubeslam: Monocular 3-d object slam[J]. IEEE Transactions on Robotics, 2019, 35(4): 925-938. [PDF], [Code]
- Zhang, X., Wang, W., Qi, X., Liao, Z., & Wei, R. Point-plane slam using supposed planes for indoor environments[J]. Sensors, 2019, 19(17), 3795. [PDF], [Code]