RoboSense-LiDAR / rslidar_sdk

RoboSense LiDAR SDK for ROS & ROS2
Other
455 stars 219 forks source link

rs-16 and rs-m1 supporting problem #19

Open simulacrus opened 3 years ago

simulacrus commented 3 years ago
  1. Configuration rslidar_sdk

    
    common:
    msg_source: 1                                         #0: not use Lidar
                                                        #1: packet message comes from online Lidar
                                                        #2: packet message comes from ROS or ROS2
                                                        #3: packet message comes from Pcap file
                                                        #4: packet message comes from Protobuf-UDP
                                                        #5: point cloud comes from Protobuf-UDP
    send_packet_ros: false                                #true: Send packets through ROS or ROS2(Used to record packet)
    send_point_cloud_ros: true                            #true: Send point cloud through ROS or ROS2
    send_packet_proto: false                              #true: Send packets through Protobuf-UDP
    send_point_cloud_proto: false                         #true: Send point cloud through Protobuf-UDP
    pcap_path: /home/robosense/lidar.pcap                 #The path of pcap file

lidar:

top lidr info

left lidar info

right lidar info

front lidar info

  1. RS-16

After roslaunch rslidar_sdk start.launch and opening rviz i was confusing by periodically disappearing part of points.
(View 1.pcd, 2.pcd, 1.png, 2.png).

1.pcd

1

2.pcd

2

Interesting that RSView show scans correctly

  1. RS m1

There is some problem with correcting reading poins from RS MEMS by rslidar_sdk

3.pcd

4

RSView show correcting scans

3

HaoQChen commented 3 years ago
  1. periodically disappearing part of points

did you change split_frame_mode to 2 or 3?

image

  1. which version of RSView did you use? There are two modes to parse points, And this driver only support one mode. You need to content our support colleague, he will help you about it

armin.mu@robosense.cn

HaoQChen commented 3 years ago

Can this issue be closed?

simulacrus commented 3 years ago

I'm trying to configure rslidar_sdk with split_frame_mode =2. Result ... rs16.zip

Lidar scan looks same with spilit_frame_mode = 3 and num_pkts_split = 37. If I set num_pkts_split > 38 then i have oversize pointcloud

HaoQChen commented 3 years ago

I'm trying to configure rslidar_sdk with split_frame_mode =2. Result ... rs16.zip

Lidar scan looks same with spilit_frame_mode = 3 and num_pkts_split = 37. If I set num_pkts_split > 38 then i have oversize pointcloud

emm, I mean you need to set split_frame_mode to 1, default is 1.

If split frame by cut angle, driver will split frames when it finds lidar step over cut_angle. This guarantees no periodically disappearing part of points.

If split frame by number of packets, unstable speed will lead to a periodically disappearing part of points

simulacrus commented 3 years ago

I'm trying to configure rslidar_sdk with split_frame_mode =2. Result ... rs16.zip Lidar scan looks same with spilit_frame_mode = 3 and num_pkts_split = 37. If I set num_pkts_split > 38 then i have oversize pointcloud

emm, I mean you need to set split_frame_mode to 1, default is 1.

If split frame by cut angle, driver will split frames when it finds lidar step over cut_angle. This guarantees no periodically disappearing part of points.

If split frame by number of packets, unstable speed will lead to a periodically disappearing part of points

Initially, I used the default parameters. I also debugged the driver and saw that scans are periodically compiled from 37 to 38 packages. Maybe this is the problem

Andrea2202 commented 3 years ago

I've the same problem with ROS2 and M1. Have you any solutions?

@HaoQChen

HaoQChen commented 3 years ago

I've the same problem with ROS2 and M1. Have you any solutions?

@HaoQChen

Did you try split_frame_mode?

Did you try ROS1?

The environment of your computer?

tomcamp0228 commented 3 years ago

I've the same problem with ROS2 and M1. Have you any solutions? @HaoQChen

Did you try split_frame_mode?

Did you try ROS1?

The environment of your computer?

Hello, I have same problem with RS-M1-B2 as @simulacrus shows. I'm using about the latest version of your SDK and the enviorment is Ubuntu 18.04 with ROS eloquent. How can I solve the problem? Waiting for your reply, thank you.

HaoQChen commented 3 years ago

I've the same problem with ROS2 and M1. Have you any solutions? @HaoQChen

Did you try split_frame_mode? Did you try ROS1? The environment of your computer?

Hello, I have same problem with RS-M1-B2 as @simulacrus shows. I'm using about the latest version of your SDK and the enviorment is Ubuntu 18.04 with ROS eloquent. How can I solve the problem? Waiting for your reply, thank you.

rs_driver does not support B2, you need to use ros_rslidar