SICKAG / libsick_ldmrs

This package contains a library for communicating with the SICK LD-MRS line of laser scanners. For a ROS wrapper, see sick_ldmrs_laser.
Apache License 2.0
7 stars 18 forks source link

CMD Buffer Issue #8

Open EgeSaykan opened 3 months ago

EgeSaykan commented 3 months ago

Hello,

I am trying to connect to a LD-MRS 400001 through Ros2 Iron on Ubuntu 22.04 desktop. I have completed installation and build using sick_scan_xd build guide.

When I t tried to connect to the scanner on port 192.168.0.1, it didn't recognise the scanner as a scanner but just as an ethernet connection.

So I installed Sopas ET on my windows machine and realised the IP of the scanner is different to default value. Using the Sopas ET I changed the IP to 192.168.0.1. Also on Sopas ET I managed to get readings on GUI via the scanner, so I know that the scanner does work.

Then when I tried to connect to the device with ros2 on my ubuntu desktop, it managed to connect, but the buffer would get 0x8011 code rather than 0x0011.

This resulted was flagged as an error on libsick_ldmrs/src/devices/LuxBase.cpp on line 2421.

if (cmdInBuffer == 0x8000 + cmd)
{
    printWarning("LuxBase::receiveMrsReply: " + m_longName + " Received that an error occurred.");
    result = false;
    break;
}

I could not find any explanation why I am getting 0x8011 instead of 0x0011 and why is that an error. Any help would be greatly appreciated.

Thanks in advance, Ege

mintar commented 3 months ago

Could you please also open an issue at sick_scan_xd? I'm not sure that the sick_scan_xd authors are monitoring the issues in this repo here.