Your Cart

Your Trusted Partner for LiDAR, AI Perception, and Autonomous Solutions

Whatsapp:+8615958822714   Email:lidarseektech@gmail.com    

RS-Helios 16 LiDAR point cloud

The Speedster Helios-16P uses Lego-loam to build point cloud maps in real time (Part 1)

1. Installing the Radar Driver

1.1 Connecting the Hardware

Connect the radar signal cable to the computer (Note: If your computer does not have an Ethernet port and requires an adapter cable, the adapter cable’s interface protocol must be USB 3.0 or higher, and the USB port on the computer should also be 3.0 or higher; otherwise, data loss may occur during radar data transmission).

1.2 Downloading the Radar Driver Package

Driver package link: https://github.com/RoboSense-LiDAR/rslidar_sdk

Using git clone:

mkdir -p RS_Helios_16P_ws/src
cd RS_Helios_16P_ws/src
git clone https://github.com/RoboSense-LiDAR/rslidar_sdk.git
cd rslidar_sdk
git submodule init
git submodule update

1.3 Dependency Installation

ROS goes without saying; just install the corresponding Ubuntu version. I’ve written about this in previous blog posts. It’s best to install ros desktop-full, otherwise you’ll need to install other dependencies.

sudo apt-get update
sudo apt-get install -y libyaml-cpp-dev

YAML installation (can be skipped if you installed ros desktop-full):

sudo apt-get install -y  libpcap-dev

Protobuf installation:

sudo apt-get install -y libprotobuf-dev protobuf-compiler

1.4 Compiling and Running the Radar Driver Package

Compile and run (there are three ways to compile and run rslidar_sdk; here we use the ROS-catkin-based compilation method; for the other two methods, please refer to the official tutorial in the link):

(1) Open the CMakeLists.txt file in the rslidar_sdk folder, and change the variable POINT_TYPE to XYZIRT and the variable COMPILE_METHOD to CATKIN:

(2) Replace the content of the package.xml file with the content of the package_ros1.xml file in the rslidar_sdk folder (I found that the contents of these two files are the same; if they are the same, this step can be omitted. If there is no package.xml file, simply rename package_ros1.xml to package.xml).

(3) Open the rslidar_sdk/config/config.yaml file and change send_packet_ros to true and lidar_type to RSHELIOS_16P:

4) Return to the workspace directory RS_Helios_16P_ws and compile:

catkin_make

1.5 Configuring the Computer’s IP Address

(Remember to select the previous default wired address in the settings after using the radar, otherwise you won’t be able to access the internet)

The default IP address of the Suteng Helios_16P is 192.168.1.200. You need to set your computer’s IP address so that the first three segments are the same as the radar’s, i.e., starting with 192.168.1. The last digit can be any number between 0 and 255, as long as it’s not the same as the radar’s IP address.

In your computer’s settings, go to Network – Wired, click the “+” sign, select Manual for IPv4, and enter the address “192.168.1.102” and subnet mask “255.255.255.0”. The gateway does not need to be configured. After configuration, select this configuration to connect. You can use the ifconfig command to check if the static IP address is working:

1.6 Operating the Lidar

cd ~/RS_Helios_16P_ws
source devel/setup.bash    //Add environment variables
roslaunch rslidar_sdk start.launch

2、Viewing Radar Parameters and Attributes

2.1 Published Nodes and Topics

rosnode list

rostopic list

2.2 Viewing the radar scanning frequency

rostopic hz /rslidar_points

2.3 View the coordinate system name and number of points, and other parameters of the radar point cloud.

rostopic echo  --noarr /rslidar_points

3、Modifying the Radar Point Cloud Coordinate System Name and Topic Name to Velodyne Format

Most laser SLAM algorithms are adapted for Velodyne radars. To use the RoboSense radar, we need to change the format to be compatible with these algorithms.

Two methods:

(Untested, may require modifying other files) Directly modify the ros_frame_id to velodyne and ros_send_point_cloud_topic to /velodyne_points in the ~/RS_Heilos_16P_ws/src/rslidar_sdk-v1.5.0/config/config.yaml file:

  1. Install the rs_to_velodyne package

Navigate to ~/RS_Heilos_16P_ws/src, download the package there, and compile it together with the lidar driver package:

cd ~/RS_Heilos_16P_ws/src
git clone https://hub.fastgit.org/HViktorTsoi/rs_to_velodyne.git
cd ..
catkin_make

Create a new launch file in ~/RS_Heilos_16P_ws/src/rs_to_velodyne and open it:

touch rstovelodyne.launch
gedit rstovelodyne.launch

Write the following in this launch file:

<launch>
  <node pkg="rs_to_velodyne" name="rs_to_velodyne" type="rs_to_velodyne"  args="XYZIRT XYZIRT"   output="screen">
  </node>
</launch>

Start the rs_to_velodyne conversion node:

cd ~/RS_Heilos_16P_ws
source devel/setup.bash
roslaunch rs_to_velodyne rstovelodyne.launch

Conversion node started successfully:

Integration launch:

Open ~/RS_Heilos_16P_ws/src/rslidar_sdk-v1.5.0/launch/start.launch, and add the launch command for starting the conversion node at the end of the file:

 <!--- rs_to_velodyne -->
  <include file="$(find rs_to_velodyne)/launch/rstovelodyne.launch" />

The modified start.launch file is:

<launch>
  <node pkg="rslidar_sdk" name="rslidar_sdk_node" type="rslidar_sdk_node" output="screen">
    <param name="config_path" value=""/>
  </node>
  <!--- rs_to_velodyne -->
  <include file="$(find rs_to_velodyne)/rstovelodyne.launch" />
  <!-- rviz -->
  <node pkg="rviz" name="rviz" type="rviz" args="-d $(find rslidar_sdk)/rviz/rviz.rviz" />
</launch>

Start rslidar:

cd ~/RS_Helios_16P_ws
source devel/setup.bash    //添加环境变量
roslaunch rslidar_sdk start.launch

Open another terminal to view the topic:

rostopic list

We can see that `velodyne_points` is now present in the topics.

However, it might also throw an error, such as:

This warning likely occurs because of an inconsistency in the intensity field within the point cloud data structure defined in the rs_to_velodyne package.

To resolve this, go to the ~/RS_Heilos_16P_ws/src/rs_to_velodyne/src/rs_to_velodyne.cpp file, change uint8_t intensity under the rslidar point cloud format x to PCL_ADD_INTENSITY (in two places), and change the data type of intensity in the POINT_CLOUD_REGISTER_POINT_STRUCT definition to float:

After making the changes, recompiling and running the program should resolve the issue.

Leave a Reply

Your email address will not be published. Required fields are marked *

    Find The Right LiDAR Solution For Your Project

    Our LiDAR experts provide professional recommendations for robotics, autonomous driving, industrial automation, mapping and intelligent transportation applications.