calibration_tools_v1.0/lidar_driver
2025-02-20 10:45:17 +08:00
..
cmake init 2025-02-20 10:45:17 +08:00
include init 2025-02-20 10:45:17 +08:00
build.sh init 2025-02-20 10:45:17 +08:00
CMakeLists.txt init 2025-02-20 10:45:17 +08:00
liblivox_sdk_wrapper.so init 2025-02-20 10:45:17 +08:00
livox_sdk_wrapper.cpp init 2025-02-20 10:45:17 +08:00
livox_sdk_wrapper.cpp.bak init 2025-02-20 10:45:17 +08:00
README.MD init 2025-02-20 10:45:17 +08:00
sdk_test.py init 2025-02-20 10:45:17 +08:00

找到 CMakeLists.txt 中编译静态库的地方,确保添加 -fPIC 标志。可以通过以下方式添加:

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")

source file

livox_sdk_wrapper.cpp

cd build

make -j8

install

copy lidar_driver to board path: /root/calibration_tools

execute

./lidar_driver 300000

q&a

(base) root@localhost:~/calibration_tools# ./lidar_driver 300000 cloud_points_count == [300000] Livox SDK initializing. Livox SDK has been initialized. Livox SDK version 2.3.0 . Started device discovery. start_sampling error is -3

cd /root/app/detect-ui ./start.sh # start lidar kill -9 pid