Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Whats the Equivalent Node of transform_node (velodyne) in rslidar? #14

Open
donrv opened this issue Feb 18, 2019 · 3 comments
Open

Whats the Equivalent Node of transform_node (velodyne) in rslidar? #14

donrv opened this issue Feb 18, 2019 · 3 comments

Comments

@donrv
Copy link

donrv commented Feb 18, 2019

Hi,
I have bag files with rslidar packets.
I want to convert them to sensor_msgs/PointCloud2 format. Do you have a sample launch file to do that?
Also, Resulting bag files are larger than Velodyne, may be due to Longer range supported by RSlidar. Is there a ros param to define Maximum range?

@HaoQChen
Copy link
Contributor

Hi,
I have bag files with rslidar packets.
I want to convert them to sensor_msgs/PointCloud2 format. Do you have a sample launch file to do that?
Also, Resulting bag files are larger than Velodyne, may be due to Longer range supported by RSlidar. Is there a ros param to define Maximum range?

Maybe you can record data as a pcap using wireshark, and use the driver by setting "pcap" parameter. Or record rosbag with rslidarScan message and use only rslidar_node.

@donrv donrv closed this as completed Feb 17, 2020
@donrv
Copy link
Author

donrv commented Aug 1, 2020

@HaoQChen , I have used the pcap parameter but points are being read slowly. Driver is publishing 75 packets per scan. Is there any setting to read data at actual speed? Also, is there any way to preserve original time stamps?

@donrv donrv reopened this Aug 1, 2020
@HaoQChen
Copy link
Contributor

HaoQChen commented Aug 3, 2020

@HaoQChen , I have used the pcap parameter but points are being read slowly. Driver is publishing 75 packets per scan. Is there any setting to read data at actual speed? Also, is there any way to preserve original time stamps?

75 per scan is right if it is RS-Lidar-16. You can read about (MSOP) in the user's manual. There is a param read_fast, which mean read data as fast ad possible without sleep.

If you need to preserve original time stamps, I recommend you record /rslidar_packets that launch as this:

<launch>
  <arg name="model" default="RS16" />
  <arg name="lidar_param_path" default="$(find rslidar_pointcloud)/data/rs_lidar_16/"/>

  <node  name="cloud_node" pkg="rslidar_pointcloud" type="cloud_node" output="screen" >
    <param name="model" value="$(arg model)"/>
    <param name="curves_path" value="$(arg lidar_param_path)/curves.csv" />
    <param name="angle_path" value="$(arg lidar_param_path)/angle.csv" />
    <param name="channel_path" value="$(arg lidar_param_path)/ChannelNum.csv" />
    <param name="max_distance" value="200"/>
    <param name="min_distance" value="0.4"/>
    <param name="resolution_type" value="0.5cm"/>
    <param name="intensity_mode" value="1"/>
  </node>

  <node name="rviz" pkg="rviz" type="rviz"  args="-d $(find rslidar_pointcloud)/rviz_cfg/rslidar.rviz" />
  <node name="rosbag_play" pkg="rosbag" type="play" args="-l YOUR_PATH_TO_BAG"/>

</launch>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants