webots icon indicating copy to clipboard operation
webots copied to clipboard

Inaccurate Lidar measurements

Open astumpf opened this issue 3 years ago • 12 comments

Describe the Bug

(3D) Lidar scans are very inaccurate and slightly skewed.

Steps to Reproduce

I've used a Lidar Node as given below and added some default props from Webots.

Lidar {
  name "lidar-RSBP"
  fieldOfView 6.283185
  verticalFieldOfView 3.141593
  horizontalResolution 1800
  numberOfLayers 64
  minRange 0.100000
  maxRange 30.000000
  noise 0.000011
  resolution -1
  near 0.050000
}

Expected behavior

Perfect matching laser scans due to infinite resolution settings.

Screenshots

Screenshot from 2022-06-27 17-30-36 Screenshot from 2022-06-27 17-32-02

System

  • Linux Ubuntu 20.04
  • NVIDIA GeForce GTX 1070

astumpf avatar Jun 27 '22 15:06 astumpf

Thank you for this bug report. Could you please create a simple example showing this problem and upload it as a ZIP file on this issue?

omichel avatar Jun 28 '22 06:06 omichel

This world seems to behave the same than your.

accuracy_lidar.zip

Note that I have to increase the near and minRange values. Settings then to smaller value (especially the near 0.1 to 0.01), fix the world for me

empty_1

hope it could help

Edit : change .zip

ShuffleWire avatar Jul 01 '22 08:07 ShuffleWire

@ShuffleWire I think the zip file you provided is not about the correct world. Could you please provide the one about the lidar issue if you still have it?

ygoumaz avatar Aug 18 '22 09:08 ygoumaz

@ShuffleWire I think the zip file you provided is not about the correct world. Could you please provide the one about the lidar issue if you still have it?

Yes, I've mess up when uploading the file, and took the wrong one ! Fixed it in my message

Thanks

ShuffleWire avatar Aug 22 '22 12:08 ShuffleWire

I tried your world with many different settings of minRange, maxRange and near but I can't reproduce the problem. I test on the master branch of Webots. It is possible that the problem has been fixed in a PR in the meantime.

Could you test in the latest nightly version with the settings that were causing wrong measurements and tell me if the problem is still there?

ygoumaz avatar Aug 26 '22 13:08 ygoumaz

It work indeed fine for my example, so something could have changed.

But we would need @astumpf to post his world to be sure, imo.

ShuffleWire avatar Nov 02 '22 09:11 ShuffleWire

Follow up to this topic : I'm having issues working with cylindrical lidar, so I've gave the planar a try, and what a ride is it ! The data returned is actually wrong, as shown by this example, the distance are always 1.29, which correspond to the distance of the closest points, but not for the other ! Moreover, the whole object is not covered, left and right extremities don't seems to be "seen" by the lidar

Changing parameters like min/max distance etc didn't change anything

I'm running Webots on the master as today, 045000f6f723f93a57e34434dac05ff74a745013 and develop acbab4ca686d9b4b5cadc7aa2a4852bc815c40b0

Debian 11, up to date But I've no GPU, so either it's intel HD doing the job, or the CPU, idk. That could explain bad result...

What are the results on your end ?

lidar_planar.zip

lidar

ShuffleWire avatar Jan 31 '23 10:01 ShuffleWire

Another fun fact : when increasing the fov, the number of point reduce ! if fov is PI, not point are displayed. if fov is near PI, (eg 3), then some points remains, as shown here : lidar_1 That is strange !

ShuffleWire avatar Jan 31 '23 11:01 ShuffleWire

And another crazy fact : Same world, but set fov to 0.2 you get lidar_2 but let the simulation run, and change on the fly the value to something bigger (eg 1.0), and the number of point decrease as shown here :

lidar_3

note the "Ray path" representation don't change, that also not correct...

ShuffleWire avatar Jan 31 '23 11:01 ShuffleWire

@astumpf Do you have any info to give us ?

ShuffleWire avatar Sep 06 '23 12:09 ShuffleWire

Unfortunately I cannot give much input on that anymore. But this version from Oct-2022 worked great in combination with the current Webots version at that time. The simulated Lidar and Stereo behaved as expected.

astumpf avatar Sep 06 '23 14:09 astumpf

What is the link to the issue ? Was the object actually incorrectly generated ? Because from what I see in your link, I don't understand the consequence on the Lidar

ShuffleWire avatar Sep 06 '23 15:09 ShuffleWire