There are two types of point cloud topics sent by the livox LiDAR. One is the CustomMsg format customized by Livox, and the other is the pointcloud2 format converted from the CustomMsg format. You can refer to configuration instructions .
This code converts the CustomMsg format point cloud into pointcloud2 format and displays it in rviz.
Compile using the catkin_tools package via:
mkdir -p livox_repub/src
cd livox_repub/src
git clone https://github.com/Shidabot/livox_repub.git
cd ..
catkin_make
After compiling, source the workspace and execute via:
roslaunch livox_repub run.launch
rosbag play your.bag