|
| 1 | + |
| 2 | +# Real-Time Simultaneous Localization and Mapping with LiDAR Intensity |
| 3 | + |
| 4 | +The utilization of LiDAR's intensity image for scan matching addresses the issue of degeneracy. |
| 5 | + |
| 6 | +[](https://youtu.be/B_JX0q5Cdeg) |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | +## Paper |
| 11 | +Thank you for citing our [paper](https://arxiv.org/abs/2301.09257) if you use any of this code or datasets. |
| 12 | +``` |
| 13 | +@article{du2023real, |
| 14 | + title={Real-Time Simultaneous Localization and Mapping with LiDAR intensity}, |
| 15 | + author={Du, Wenqiang and Beltrame, Giovanni}, |
| 16 | + journal={arXiv preprint arXiv:2301.09257}, |
| 17 | + year={2023} |
| 18 | +} |
| 19 | +``` |
| 20 | +## Authors |
| 21 | + |
| 22 | +- [@Wenqiang Du](http://wenqiangdu.me/) |
| 23 | + - [@Linkedin](https://www.linkedin.com/in/wenqiangdu/) |
| 24 | + - [@Github](https://github.com/SnowCarter) |
| 25 | +- [@Giovanni Beltrame](https://mistlab.ca/people/beltrame/) |
| 26 | + - [@Linkedin](https://www.linkedin.com/in/gbeltrame/) |
| 27 | + |
| 28 | + |
| 29 | +## Installation |
| 30 | +### Dependency |
| 31 | + |
| 32 | +* [ROS noetic](http://wiki.ros.org/noetic/Installation/Ubuntu) |
| 33 | +* [ceres-solver](https://github.com/ceres-solver/ceres-solver) |
| 34 | + ```bash |
| 35 | + $ mkdir ~/dependencies_ws |
| 36 | + $ cd ~/dependencies_ws/ |
| 37 | + $ wget -O ~/dependencies_ws/ceres.zip https://github.com/ceres-solver/ceres-solver/archive/1.14.0.zip |
| 38 | + $ apt-get install -y cmake libgoogle-glog-dev libgflags-dev libatlas-base-dev libeigen3-dev unzip libsuitesparse-dev |
| 39 | + $ cd ~/dependencies_ws/ && unzip ceres.zip -d ~/dependencies_ws/ |
| 40 | + $ cd /dependencies_ws/ceres-solver-1.14.0 |
| 41 | + $ mkdir ceres-bin && cd ceres-bin |
| 42 | + $ cmake .. |
| 43 | + $ sudo make install -j4 |
| 44 | + ``` |
| 45 | +* [GTSAM](https://github.com/borglab/gtsam) |
| 46 | + ``` |
| 47 | + $ cd ~/dependencies_ws/ |
| 48 | + $ wget -O gtsam.zip https://github.com/borglab/gtsam/archive/4.1.0.zip |
| 49 | + $ unzip gtsam.zip -d ~/dependencies_ws/ |
| 50 | + $ cd ~/dependencies_ws/gtsam-4.1.0 |
| 51 | + $ mkdir build && cd build |
| 52 | + $ cmake -DGTSAM_BUILD_WITH_MARCH_NATIVE=OFF .. |
| 53 | + $ sudo make install -j4 |
| 54 | + ``` |
| 55 | +* [DBOW3](https://github.com/rmsalinas/DBow3) |
| 56 | + ``` |
| 57 | + $ cd ~/dependencies_ws/ |
| 58 | + $ git clone https://github.com/rmsalinas/DBow3.git |
| 59 | + $ cd DBow3/ && mkdir build && cd build |
| 60 | + $ cmake .. |
| 61 | + $ make |
| 62 | + $ sudo make install |
| 63 | + ``` |
| 64 | +### Compile and Launch |
| 65 | +- Create workspace |
| 66 | + ``` |
| 67 | + mkidr -p catkin_ws/src |
| 68 | + ``` |
| 69 | + |
| 70 | +- Clone the project |
| 71 | + |
| 72 | + ```bash |
| 73 | + cd catkin_ws/src/ |
| 74 | + git clone https://github.com/SnowCarter/Intensity_based_LiDAR_SLAM.git |
| 75 | + ``` |
| 76 | + |
| 77 | +- Go to the project workspace directory |
| 78 | + |
| 79 | + ```bash |
| 80 | + cd ../ |
| 81 | + ``` |
| 82 | + |
| 83 | +- Compile |
| 84 | + ```bash |
| 85 | + source /opt/ros/noetic/setup.bash |
| 86 | + catkin_make |
| 87 | + ``` |
| 88 | + |
| 89 | +- Launch |
| 90 | + |
| 91 | + ```bash |
| 92 | + source devel/setup.bash |
| 93 | + roslaunch intensity_feature_tracker spot.launch rviz:=1 |
| 94 | + ``` |
| 95 | +- Play bag file |
| 96 | + ``` |
| 97 | + rosbag play xxx.bag --clock |
| 98 | + ``` |
| 99 | + |
| 100 | +## [Docker](https://www.docker.com/) support |
| 101 | +#### Building |
| 102 | +- Create workspace |
| 103 | + |
| 104 | + ``` |
| 105 | + mkidr -p catkin_ws/src |
| 106 | + ``` |
| 107 | + |
| 108 | +- Clone the project |
| 109 | + |
| 110 | + ```bash |
| 111 | + cd catkin_ws/src/ |
| 112 | + git clone https://github.com/SnowCarter/Intensity_based_LiDAR_SLAM.git |
| 113 | + ``` |
| 114 | + |
| 115 | +- Go to the project directory |
| 116 | + |
| 117 | + ```bash |
| 118 | + cd Intensity_based_LiDAR_SLAM/ |
| 119 | + ``` |
| 120 | +- Build docker image |
| 121 | + ``` |
| 122 | + docker build . -t intensity_lidar_slam |
| 123 | + ``` |
| 124 | + |
| 125 | +#### Launch |
| 126 | +- Launch docker images with intensity Lidar SLAM (Terminal 1) |
| 127 | + ``` |
| 128 | + docker run --rm -it --net=host --privileged intensity_lidar_slam:latest /bin/bash -i -c 'roslaunch intensity_feature_tracker spot.launch rviz:=0' |
| 129 | + ``` |
| 130 | +- Play bag file (Terminal 2) |
| 131 | + ``` |
| 132 | + rosbag play xxx.bag --clock |
| 133 | + ``` |
| 134 | +- RVIZ (Terminal 3) |
| 135 | + ``` |
| 136 | + rosrun rviz rviz -d catkin_ws/src/Intensity_based_LiDAR_SLAM/launch/rviz_setting.rviz |
| 137 | + ``` |
| 138 | + |
| 139 | +## Example Bag file |
| 140 | +* [Onedrive](https://polymtlca0-my.sharepoint.com/:u:/g/personal/wenqiang_du_polymtl_ca/EUn0TO3TMLdFvBvRiVFroIUBLXWWzqdy9wXMKtIVT6MCzw?e=MedxZ2) |
| 141 | + ``` |
| 142 | + path: spot_corridor.bag |
| 143 | + version: 2.0 |
| 144 | + duration: 8:46s (526s) |
| 145 | + start: Aug 12 2022 16:25:24.06 (1660335924.06) |
| 146 | + end: Aug 12 2022 16:34:10.95 (1660336450.95) |
| 147 | + size: 8.2 GB |
| 148 | + messages: 57957 |
| 149 | + compression: lz4 [5270/5270 chunks; 53.28%] |
| 150 | + uncompressed: 15.5 GB @ 30.0 MB/s |
| 151 | + compressed: 8.2 GB @ 16.0 MB/s (53.28%) |
| 152 | + types: sensor_msgs/Imu [6a62c6daae103f4ff57a132d6f95cec2] |
| 153 | + sensor_msgs/PointCloud2 [1158d486dd51d683ce2f1be655c3c181] |
| 154 | + topics: /os_cloud_node/imu 52688 msgs : sensor_msgs/Imu |
| 155 | + /os_cloud_node/points 5269 msgs : sensor_msgs/PointCloud2 |
| 156 | + ``` |
| 157 | + |
| 158 | +## Contributing |
| 159 | + |
| 160 | +Contributions are always welcome! |
| 161 | + |
| 162 | +## License |
| 163 | +[MIT](https://choosealicense.com/licenses/mit/) |
| 164 | +[](https://choosealicense.com/licenses/mit/) |
| 165 | + |
| 166 | + |
| 167 | +## Acknowledgements |
| 168 | +- [Robust Place Recognition using an Imaging Lidar](https://github.com/TixiaoShan/imaging_lidar_place_recognition) |
| 169 | +- [A-LOAM](https://github.com/HKUST-Aerial-Robotics/A-LOAM) |
| 170 | +- [VINS-Mono](https://github.com/HKUST-Aerial-Robotics/VINS-Mono) |
| 171 | +- [Scan Context](https://github.com/irapkaist/scancontext) |
| 172 | +- [LVI-SAM](https://github.com/TixiaoShan/LVI-SAM) |
| 173 | +- [ikd-Tree](https://github.com/hku-mars/ikd-Tree) |
| 174 | +## 🚀 About Me |
| 175 | +I'm a Ph.D. candidate in [MISTLab](https://mistlab.ca/). |
| 176 | +
|
| 177 | +
|
| 178 | +## Support |
| 179 | +
|
| 180 | +For support, email [email protected]. |
| 181 | +
|
| 182 | + |
0 commit comments