User Guide

Table Of Contents
RS-LiDAR-32 User Manual
61
Appendix D RS-LiDAR-32 ROS Package
This appendix describes how to use ROS to view the RS-LiDAR-32 data.
D.1 Prerequisite
1. Download and install Ubuntu 16.04.
2. Please refer the link (http://wiki.ros.org/ kinetic/Installation/Ubuntu) to install the ROS kinetic version.
3. Download and install libpcap-dev.
D.2 Install RS-LiDAR-32 ROS Package
1. Create the work space for ros:
cd ~
mkdir -p catkin_ws/src
2. Copy the ros_rslidar_package into the work space ~/catkin_ws/src. You can find the ros_rslidar
package in the U disk in the RS-LiDAR-32 box. You can also ask RoboSense to get these files. The
latest version of the ros_rslidar driver can be downloaded from
https://github.com/RoboSense-LiDAR/ros_rslidar.
3. Build
cd ~/catkin_ws
catkin_make
4. Place the configuration file corresponding to the LiDAR:
The configuration file is in the USB disk shipped with the LiDAR. You need to copy the .csv file in the
configuration_data folder from the USB disk to the folder specified in the launch file. This path can be
customized. For example: rslidar_pointcloud/data/rs_lidar_32.
Note: After Sep. 2019, LiDAR needs the data from U stick no longer, it can directly use the default parameters
in LiDAR. If user needs to program by self, the files in this fold doesn’t need to read.
D.3 Configure PC IP address
For the default RS-LiDAR-32 firmware, it is configured the “192.168.1.200” as its own IP address, and
the “192.168.1.102 as its destination PC IP address. So we need set the PC static IP as
“192.168.1.102” and the net mask as “255.255.255.0”, while the gateway address is not necessary.
After configuration, we can use “ifconfig” command to check if the IP is work.