当前位置:网站首页>Kinect2.0+ORBSLAM2_ with_ pointcloud_ map
Kinect2.0+ORBSLAM2_ with_ pointcloud_ map
2022-06-12 15:01:00 【From spring to winter】
List of articles
One 、kinect2.0 drive
1.libfreenect2
git clone https://github.com/OpenKinect/libfreenect2.git
cd libfreenect2
cd depends; ./download_debs_trusty.sh // download upgrade deb file
sudo apt-get install build-essential cmake pkg-config// Install the compiler
sudo dpkg -i debs/libusb*deb // install libsub
sudo apt-get install libturbojpeg libjpeg-turbo8-dev// install TurboJPEG
sudo dpkg -i debs/libglfw3*deb// install OpenGL
sudo apt-get install -f
sudo apt-get install libgl1-mesa-dri-lts-vivid
//Build
cd ..
mkdir build && cd build
cmake ..
make
make install
Set up udev rules: sudo cp …/platform/linux/udev/90-kinect2.rules /etc/udev/rules.d/, Then plug and unplug again Kinect2
Now you can try to run Demo Program :./bin/Protonect
You should see that kinect Camera picture
2.iai-kinect2
from Github Download the project source code to the workspace src In the folder
cd ~/catkin_ws/src/
git clone https://github.com/code-iai/iai_kinect2.git
cd iai_kinect2
rosdep install -r --from-paths .
cd ~/catkin_ws
catkin_make -DCMAKE_BUILD_TYPE="Release"
Be careful
For the last line of the above command , It should be noted that , If the previous libfreenect2 Your installation location is not under the standard two paths , Parameter specification is required libfreenect2 Location path :
catkin_make -Dfreenect2_DIR=path_to_freenect2/lib/cmake/freenect2 -DCMAKE_BUILD_TYPE="Release"
End of compilation , Can be in ROS In order to get Kinect2 The data of , If the command cannot be executed , The corresponding environment should be written to ~/.bashrc file .
roslaunch kinect2_bridge kinect2_bridge.launch
roslaunch Initiate related nodes , Another terminal input rostopic list You can view related Topic, You can also enter rosrun kinect2_viewer kinect2_viewer sd cloud , Turn on Viewer View the data
Two 、ORBSLAM2_with_pointcloud_map
1. install Pangolin
Dependencies :
sudo apt-get install libglew-dev
sudo apt-get install ffmpeg libavcodec-dev libavutil-dev libavformat-dev libswscale-dev libavdevice-dev
sudo apt-get install libdc1394-22-dev libraw1394-dev
sudo apt-get install libjpeg-dev libpng12-dev libtiff5-dev libopenexr-dev
Source code compilation and installation
git clone https://github.com/stevenlovegrove/Pangolin.git
cd Pangolin
mkdir build
cd build
cmake ..
cmake --build .
sudo make install
2.ORBSLAM2_with_pointcloud_map
git clone https://github.com/gaoxiang12/ORBSLAM2_with_pointcloud_map.git
decompression orbslam2_modified.zip, You'll get two folders , Respectively g2o_with_orbslam2 and ORB_SLAM2_modified
compile g2o
Install dependencies
sudo apt-get intall libsuitesparse-dev qtdeclarative5-dev qt5-default libqglviewer-dev
For later revision, please refer to the blog :
https://blog.csdn.net/qq_25349629/article/details/88350374
function rgbd_tum, View drawing creation based on dataset :
The instructions I run are shown in the following figure 
The point cloud situation is as follows :
3. Using one's own Kinect Real time mapping
Reference blog :
https://blog.csdn.net/qq_25349629/article/details/88528765
According to the blogger's compilation, it passed , But in the end, there was a problem 
ERROR While loading shared libraries:cannot open shared object file
I do have some dishes …
Because you can't use your own kinect Real time running , So I plan to make my own data set , Use the data set to build the map , Then there are the following pictures :


Run with your own data set , I don't think the effect is very good , May be related to the recorded dataset , The point cloud is very sparse .
Prove again in real time : You are still very good …
summary
Problems are always encountered , Of course, we should try our best to solve it , Various SLAM In fact, there are a lot of related bags , Today's temporary rise is a simple summary of something related ORB Of , Of course, the underlying code is the one that needs to be explored , Look at the code tomorrow , I hope to summarize some code related problems later .
边栏推荐
- USART (rs232422485), I2C, SPI, can, USB bus
- Scala下载及IDEA安装Scala插件(保姆级教程超详细)
- Array related content
- How to add WWW to the domain name
- About layoffs in Internet companies
- [datetmeformatter] realize the conversion between localdatetime and text
- 机器人前行、旋转的service编写
- [SPARK][CORE] 面试问题之什么是 external shuffle service?
- PTA:自测-2 素数对猜想 (20分)
- 用游戏来讲序列化与反序列化机制
猜你喜欢

MH32F103ARPT6软硬件兼容替代STM32F103RCT6

JUnit test suite method sorting (method 2 is not easy to use)

Array related content
![[LDA] rough version notes of EM variational reasoning [to be improved](/img/de/4b028e77694297db05a2d6b6589276.png)
[LDA] rough version notes of EM variational reasoning [to be improved

简单的爬虫框架:解析51job页面岗位信息

启明云端分享| 通过Matter协议实例演示开关通过matter协议来做到对灯亮灭的控制

Simple crawler framework: parsing 51job page position information

Selenium advanced

3D reconstruction system | L3 incremental motion recovery structure (incremental SFM)

Serialization and deserialization mechanism in terms of games
随机推荐
【LocalDate LocalTime LocalDateTime】1. Using immutability to achieve thread safety 2 Current date, current time, current date time 3 Since the time zone is not considered, you need to add 8 hours to th
程序构造和解释之第一章习题
Learning is an inhumane thing (becoming an expert's internal mind skill)
Qiming Zhixian shares the application scheme of 2.8-inch handheld central control screen
JUnit exception, a method that asserts that the exception information is not empty
Open Chinese path file in C language
如何写年终总结
[wp][beginner level] attack and defense world game
C escape character
About layoffs in Internet companies
掌门教育被强制退市:上市仅一年时间 软银CMC损失惨重
How to add WWW to the domain name
Array related content
【LDA】基础知识笔记——主要是AE、VAE
Writing method of JUnit multithreading
C constant, cannot be changed
ADSL
MAT的安装和使用
[wechat applet] 3 The first wechat applet
Xshell 7 official website free download