目录
1. 编译Livox-SDK2
执行一下命令:
git clone https://github.com/Livox-SDK/Livox-SDK2.git
cd ./Livox-SDK2/
mkdir build
cd build
cmake .. && make
sudo make install
如上就安装完成了Livox-SDK2,会安装如下内容:
-- Installing: /usr/local/lib/liblivox_lidar_sdk_static.a
-- Installing: /usr/local/include/livox_lidar_def.h
-- Installing: /usr/local/include/livox_lidar_api.h
-- Installing: /usr/local/include/livox_lidar_cfg.h
-- Installing: /usr/local/lib/liblivox_lidar_sdk_shared.so
如需删除,执行如下命令:
sudo rm -rf /usr/local/lib/liblivox_lidar_sdk_*
sudo rm -rf /usr/local/include/livox_lidar_*
2.编译livox_ros_driver2
官方地址:https://github.com/Livox-SDK/livox_ros_driver2
2.1.克隆源代码
打开终端执行如下命令,会将源代码clone在/home/ws_livox/src/livox_ros_driver2目录下,这步创建了ROS2需要使用的工作空间。
git clone https://github.com/Livox-SDK/livox_ros_driver2.git ws_livox/src/livox_ros_driver2