YDLIDAR / sdk

ydlidar sdk
Other
7 stars 4 forks source link

[CYdLidar] Failed to turn on the Lidar, because the lidar is blocked or the lidar hardware is faulty. #7

Open fantauzzi opened 4 years ago

fantauzzi commented 4 years ago

I have built ydlidar_test as per instructions, and run it. Beside the prompt of the application does not match the instructions, I have made several attempts and, at best, got the lidar spinning for a few seconds and an error message.

Model is a just purchased X4. It is connected to a PC running Ubuntu 18.04 via USB, and the other USB goes to a power supply.

Please see attached file with shell transcript. transcript.txt

Note that I had to make the following change to the source code cloned from your repository, as build of your code otherwise stopped with an error. In source file CYdLidar.cpp I changed line #387 from if (abs(data.front() - count) > 10) { to if (abs(int(data.front() - count)) > 10) {

Please advise.

fantauzzi commented 4 years ago

I have been able to run ydlidar_test successfully after checking out branch X4.