当前位置:网站首页>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 .
边栏推荐
- selenium之元素定位
- About layoffs in Internet companies
- Pointer related concepts
- Thinking: what is asynchrony and thread safety
- 交换数字,异或求单,操作符相关
- 数据的收集
- Alibaba, Tencent et pingduo sont à la recherche d'une nouvelle logique pour l'Internet industriel
- [writeup]buu SQL course1[entry level]
- [LDA] basic knowledge notes - mainly AE and VAE
- Function recursion example
猜你喜欢

亿纬锂能拟募资90亿:刘金成骆锦红夫妇合计认购60亿 布局光谷

粒子滤波学习记录

Detailed explanation of factory pattern (simple factory pattern, factory method pattern, abstract factory pattern) Scala code demonstration

简单的爬虫框架:解析51job页面岗位信息
![[LDA] LDA theme model notes - mainly Dirichlet](/img/e0/bc96b141aa577106379fab63d9df40.png)
[LDA] LDA theme model notes - mainly Dirichlet

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

Simple crawler framework: parsing 51job page position information

Xshell 7 official website free download

基于TensorRT的深度学习模型部署实战教程!

ROS 中 boost::bind( ) 的使用
随机推荐
NETCORE combined with cap event bus to realize distributed transaction - message (2)
Ankai microelectronics rushes to the scientific innovation board: the annual revenue of 500million Xiaomi industry fund is the shareholder
程序构造和解释之第一章习题
ROS初学者编写小乌龟以一定速度旋转一定角度的server
函数相关事项
启明智显分享| 2.8寸手持中控屏应用方案
[datetmeformatter] realize the conversion between localdatetime and text
【Optional】1. Map and ifpresent 2 Ofnullable and orelse
PTA:自测-2 素数对猜想 (20分)
增加mysql的最大连接数
基于TensorRT的深度学习模型部署实战教程!
TCP/IP 三次握手四次挥手(面试题)
产业端:618的新战场
Autofac (2)
[lambda operation jcf]
USART(RS232422485)、I2C、SPI、CAN、USB总线
#include使用“文件名“和<文件名>引入头文件的区别及简述
FIRSTVT和LASTVT白话版
【Environment】1. Get the configuration in YML through the environment in the configuration class
學習是一件逆人性的事情(成為高手的內功心法)