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) {
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 fromif (abs(data.front() - count) > 10) {
toif (abs(int(data.front() - count)) > 10) {
Please advise.