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

How to configure RPLidar S3 to publish measurements at 20Hz? #150

Open
wette opened this issue Jan 9, 2024 · 0 comments
Open

How to configure RPLidar S3 to publish measurements at 20Hz? #150

wette opened this issue Jan 9, 2024 · 0 comments

Comments

@wette
Copy link

wette commented Jan 9, 2024

I am on the ros2 branch, running the RPLidar S3 with rplidar_ros on ros2 iron.

Everything seems to be fine. However, LaserScan messages are only published at 10Hz. According to the data sheet, the S3 is capable of publishing at 20Hz.

How to configure rplidar_ros, to publish at 20Hz?

I already tried to pass the parameter 'scan_frequency': 20.0 and 'scan_mode': "Standard" to the rplidar_node in the launch file.

On stdout, the rod node actually tells to publish at 20Hz:
[rplidar_node-1] [INFO] [1704789672.831671430] [rplidar_node]: current scan mode: Standard, sample rate: 16 Khz, max_distance: 16.0 m, scan frequency:20.0 Hz,
however, the rod LaserScan messages only come at 10Hz:

# ros2 topic hz /scan
average rate: 10.015
	min: 0.099s max: 0.101s std dev: 0.00056s window: 12
average rate: 10.012
	min: 0.099s max: 0.101s std dev: 0.00051s window: 23
average rate: 10.013
	min: 0.099s max: 0.101s std dev: 0.00053s window: 34
average rate: 10.006
	min: 0.099s max: 0.101s std dev: 0.00053s window: 44
average rate: 10.008

How to increase to 20Hz?

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

1 participant