I am using the YDLIDAR TG30 sensor to measure distances in my project. However, I noticed that the data from the sensor is not stable and oscillates between 0 and the actual measured value. This makes it hard to use the sensor for accurate measurements.
Launch rqt and plot any one of the scanned data, eg: /scan/ranges[1]
Expected behavior
The output data from the sensor should be consistent (or oscillates around the measured value) and reflect the actual distance to the objects in front of the sensor.
Actual behavior
The output data from the sensor fluctuates between 0 and the actual distance to the objects in front of the sensor. For example, if the object is 1 meter away, the output data will alternate between 0 and 1 meter.
Description
I am using the YDLIDAR TG30 sensor to measure distances in my project. However, I noticed that the data from the sensor is not stable and oscillates between 0 and the actual measured value. This makes it hard to use the sensor for accurate measurements.
关于YDLIDAR TG30传感器的数据不稳定的问题。发现传感器的数据在0和实际测量值之间波动,导致无法进行精确的测量。希望得到解决方案或建议。谢谢!
Steps to reproduce
ydlidar_launch.py
launch file with theTG.yaml
parametersrqt
and plot any one of the scanned data, eg:/scan/ranges[1]
Expected behavior
The output data from the sensor should be consistent (or oscillates around the measured value) and reflect the actual distance to the objects in front of the sensor.
Actual behavior
The output data from the sensor fluctuates between 0 and the actual distance to the objects in front of the sensor. For example, if the object is 1 meter away, the output data will alternate between 0 and 1 meter.
Screenshots
Environment
ydlidar_launch.py
Additional information