Home

Awesome

1 rs_driver

中文介绍

1.1 Introduction

rs_driver is the driver kernel for the RoboSense LiDARs.

Please download the official release from github, or get the latest version with the git client tool.

git clone https://github.com/RoboSense-LiDAR/rs_driver.git

1.2 Supported LiDARs

Below are the supported LiDARS.

1.3 Supported Platforms

rs_driver is supported on the following platforms and compilers. Note the compiler should support C++14.

1.4 Dependency Libraries

rs_driver depends on the following third-party libraries.

1.5 Compile On Ubuntu

1.5.1 Dependency Libraries

sudo apt-get install libpcap-dev libeigen3-dev libboost-dev libpcl-dev

1.5.2 Compilation

cd rs_driver
mkdir build && cd build
cmake .. && make -j4

1.5.3 Installation

sudo make install

1.5.4 Use rs_driver as a third party library

In your CMakeLists.txt, find the rs_driver package and link to it .

find_package(rs_driver REQUIRED)
include_directories(${rs_driver_INCLUDE_DIRS})
target_link_libraries(your_project ${rs_driver_LIBRARIES})

1.5.5 Use rs_driver as a submodule

Add rs_driver into your project as a submodule.

In your CMakeLists.txt, find the rs_driver package and link to it .

add_subdirectory(${PROJECT_SOURCE_DIR}/rs_driver)
find_package(rs_driver REQUIRED)
include_directories(${rs_driver_INCLUDE_DIRS})
target_link_libraries(your_project ${rs_driver_LIBRARIES})

1.6 Compile On Windows

1.6.1 Dependency Libraries

1.6.1.1 libpcap

Install libpcap runtime library.

Unzip libpcap's developer's pack to your favorite location, and add the path to the folder WpdPack_4_1_2/WpdPack to the environment variable PATH .

1.6.1.2 PCL

To compile with VS2019, please use the official installation package PCL All-in-one installer.

Select the "Add PCL to the system PATH for xxx" option during the installation.

1.6.2 Installation

Installation is not supported on Windows.

1.7 Quick Start

rs_driver offers two demo programs in rs_driver/demo.

demo_online connects to online lidar, and output point cloud.

demo_pcap parses pcap file, and output point cloud. It is based on libpcap.

To build demo_online and demo_pcap, enable the CMake option COMPILE_DEMOS.

cmake -DCOMPILE_DEMOS=ON ..

For more info about demo_online, Please refer to Decode online LiDAR

For more info about demo_pcap, Please refer to Decode pcap file

1.8 Visualization of Point Cloud

rs_driver offers a visualization tool rs_driver_viwer in rs_driver/tool , which is based on PCL.

To build it, enable the CMake option CMOPILE_TOOLS.

cmake -DCOMPILE_TOOLS=ON ..

For more info about rs_driver_viewer, please refer to Visualization tool guide

1.9 API files

For more info about the rs_driver API, Please refer to:

1.10 More Topics

For more topics, Please refer to:

​ Please see Directories and Files

​ Please see How to port from v1.3.x to v1.5.x

​ Please see How to compile rs_driver on Windows

​ Please see Thread Model and Interface

​ Please see How to connect to online LiDARHow to decode PCAP file

​ Please see Online LiDAR - Advanced Topics

​ Please see PCAP File - Advanced Topics

​ Please see How to configure rs_driver by PCAP file

​ Please see How to capture a PCAP file for rs_driver

​ Please see rs_driver CMake Macros

​ Please see rs_driver configuration parameters

​ Please see rs_driver Error Code

​ Please see How to transform point cloud

​ Please see How to avoid packet Loss

​ Please see CPU Usage and Memory Usage of rs_driver

​ Please see Point Layout in point cloud

​ Please see Splitting frames

​ Please see Analysis of rs_driver's source code