当前位置:网站首页>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 .
边栏推荐
- Xshell 7 official website free download
- Autofac Beginner (1)
- Qiming cloud sharing | demonstrate the switch through an example of the matter protocol to control the light on and off through the matter protocol
- New features of ES6
- 三维重建系统 | L3增量运动恢复结构(增量SFM)
- Chapter I exercises of program construction and interpretation
- 【Instant】1. Equivalent to date class 2 Represents a moment
- PHPstudy建站提示hosts文件可能不存在或被阻止打开,同步hosts失败怎么解决
- 【SimpleDateFormat】1. Conversion of date type and text type 2 Thread unsafe
- Solution to the new database prompt on the pagoda panel that the database name cannot be greater than 16 bits
猜你喜欢
随机推荐
selenium之元素定位
【LDA】LDA主题模型笔记—主要是狄利克雷
粒子滤波学习记录
Error 1105: message:\“raft entry is too large
Function recursion example
TCP/IP 三次握手四次挥手(面试题)
启明云端分享| 通过Matter协议实例演示开关通过matter协议来做到对灯亮灭的控制
[wechat applet] 6.1 applet configuration file
ROS中tf学习笔记
[spark][core] interview questions talk about push based shuffle
[LDA] LDA theme model notes - mainly Dirichlet
Tensorrt based in-depth learning model deployment practice tutorial!
C 字符串
模块八
PHPstudy建站提示hosts文件可能不存在或被阻止打开,同步hosts失败怎么解决
h3c GR5200路由器上如何设置公网ip可以访问
Browser fingerprint interpretation
Thinking: what is asynchrony and thread safety
Shardingsphere practice (6) - elastic scaling
Phpstudy indicates that the hosts file may not exist or be blocked from being opened. How to resolve the failure of synchronizing hosts
![[LDA] basic knowledge notes - mainly AE and VAE](/img/1c/ccc073cac79b139becd5de0b9a91b1.png)








