-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
Hi,
Previously I was using ubuntu 16.04 and using this library with the RPLIDARs A3, when I tried upgrading to 18.04 LTS the lidars start but I receive the following error messages on console. It seems that I am able to communicate to the lidars and I am able to see them on my serial ports but there is some issue with the communication somehow. The ubuntu installation has LVM setup and I also did a minimal installation of the OS.
sync = (pRPLIDAR->esdata_prev[0] & 0xF0)|(pRPLIDAR->esdata_prev[1]>>4);
if (sync != START_FLAG1_RPLIDAR)
{
printf("A RPLIDAR is not responding correctly : Bad sync1 or sync2. \n");
return EXIT_FAILURE;
}
ChkSum = (pRPLIDAR->esdata_prev[1]<<4)|(pRPLIDAR->esdata_prev[0] & 0x0F);
// Force ComputeChecksumRPLIDAR() to compute until the last byte...
if (ChkSum != ComputeChecksumRPLIDAR(pRPLIDAR->esdata_prev+2, sizeof(pRPLIDAR->esdata_prev)-1))
{
printf("A RPLIDAR is not responding correctly : Bad ChkSum. \n");
return EXIT_FAILURE;
}
The following file contains our settings, scan mode, etc.
% Server TCP port (e.g. :4001), client IP address and TCP port (e.g. 127.0.0.1:4001) or local RS232 port
%127.0.0.1:55555
__PORT__
% BaudRate
256000
% Timeout (in ms)
1000
% bSaveRawData
0
% ScanMode (0 : SCAN, 1 : EXPRESS_SCAN, 2 : FORCE_SCAN)
1
% motordelay (in ms)
5
% motorPWM (0~1023, 660=default)
1023
% maxhist (0 : try to automatically remove old data, around 180 : advised for SCAN mode, around 360 : advised for EXPRESS_SCAN mode)
360
% alpha_max_err (in rad)
0.01
% d_max_err (in m)
0.1
Any help is much appreciated.
Metadata
Metadata
Assignees
Labels
No labels