First of all, thank Gaobo for his selfless dedication! Http://www.cnblogs.com/gaoxiang12/p/5161223.html
The directory where the program is located is:/home/zty/catkin_ws/src/iai_kinect2/kinect2_viewer
/src/kinect2_orb.cpp for Modified Program Files
The header file under the/include/directory is the header file in the orb_slam2/directory,
Kinect2_orb.cpp The original # include "Orbslam2/system.h" to the current # include "System.h"
1. Cd/home/zty/catkin_ws/src/iai_kinect2/kinect2_viewer/build
2. CMake.
3. Make
4. The directory where the executable file was generated is:/home/zty/catkin_ws/src/iai_kinect2/kinect2_viewer/build/devel/lib/kinect2_viewer/
5. Run Roslaunch Kinect2_bridge kinect2_bridge.launch, capture kinect2 image first
6. Then run the./my_kinect2_viewer. To
Kinect2 Run Gaobo's orbslam2 process (for your own reference records only)