Livox-Relocalization is a relocalization package for Livox LiDARs. This package load the map which create by mid40 and then use this map to relocate itself.
- Example map points:
- Relocalization:
Ubuntu 64-bit 16.04 or 18.04. ROS Kinetic or Melodic. ROS Installation
Follow PCL Installation. Follow Eigen Installation. Follow openCV Installation.
Follow livox_ros_driver Installation.
Clone the repository and catkin_make:
cd ~/catkin_ws/src
git clone https://github.com/Livox-SDK/livox_relocalization.git
cd ../
catkin_make
source ~/catkin_ws/devel/setup.bash
Download map_example or use your own mid40 to create a map and save it to pcd file. You can use our mapping package livox_mapping to create this map.
The map_example.zip include four files {all_points.pcd corner.pcd surf.pcd key_frame.txt}.
Move these files{all_points.pcd corner.pcd surf.pcd key_frame.txt} to .../livox_relocalization/map Change the 'map_file_path' in livox_relocalization.launch to your own path.
Download mid40_re_example and then
roslaunch livox_relocalization livox_relocalization.launch
rosbag play YOUR_DOWNLOADED.bag
First you should get your own map and load it,then connect to your PC to Livox LiDAR (mid40) by following Livox-ros-driver installation, then
....
roslaunch livox_relocalization livox_relocalization.launch
Remarks:
- In this version, the initial pose still needs to be close to the original trajectory, especially the rotation.
- When the paramter 'use_map_update' is set to 'true', the map will be updated during the relocalization process, otherwise only the original map is used.
With the control algorithm, you can DIY an automated mobile car as shown below.
- Line track example:
Thanks for LOAM(J. Zhang and S. Singh. LOAM: Lidar Odometry and Mapping in Real-time), LOAM_NOTED.