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

Point cloud dimensions seem not consistent with real world distances #116

Open
howaix1 opened this issue Mar 23, 2023 · 1 comment
Open

Comments

@howaix1
Copy link

howaix1 commented Mar 23, 2023

The distance of point cloud measured in rviz seems to be half of the corresponding real world distance.

I tested the ros_rslidar, rslidar_sdk and RSView and this bug only occurred in rslidar_sdk.

This occurred both in XYZI and XYZIRT settings.

@howaix1 howaix1 changed the title Point cloud dimensions seems not consistent with real world distances Point cloud dimensions seem not consistent with real world distances Mar 26, 2023
@Teemumokkonen
Copy link

To anybody who is still facing this issue: Some RS-lidars seem to assume a 0.01 meter distance resolution. The driver assumes 0.05m resolution, which causes this issue. In the driver decoder implementation change the following line definition of the resolution:
https://github.com/RoboSense-LiDAR/rs_driver/blob/ef1bdd45ee4df51e5acb57b64e49d8fed233039c/src/rs_driver/driver/decoder/decoder_RS16.hpp#L151

Remember to change the decoder version of the lidar that you are using. The link is pointing to the RS16 decoder.

Change the value from 0.005f to 0.01f. This should resolve the issue with the scaling, this change at least for us fixed this real world distance scaling issue.

Hope this helps anybody who is looking into this same issue.

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