Attention: Answers.ros.org is deprecated as of August the 11th, 2023. Please visit robotics.stackexchange.com to ask a new question. This site will remain online in read-only mode during the transition and into the foreseeable future. Selected questions and answers have been migrated, and redirects have been put in place to direct users to the corresponding questions on Robotics Stack Exchange. Additional details are available here.
*** Attempting to initialize the Sick LMS...
Attempting to open device @ /dev/ttyMXUSB0
Device opened!
Attempting to start buffer monitor...
Buffer monitor started!
Attempting to set requested baud rate...
A Timeout Occurred! 2 tries remaining
A Timeout Occurred! 1 tries remaining
A Timeout Occurred - SickLIDAR::_sendMessageAndGetReply: Attempted max number of tries w/o success!
Failed to set requested baud rate...
Attempting to detect LMS baud rate...
Checking 19200bps...
A Timeout Occurred! 2 tries remaining
A Timeout Occurred! 1 tries remaining
A Timeout Occurred - SickLIDAR::_sendMessageAndGetReply: Attempted max number of tries w/o success!
Checking 38400bps...
A Timeout Occurred! 2 tries remaining
A Timeout Occurred! 1 tries remaining
A Timeout Occurred - SickLIDAR::_sendMessageAndGetReply: Attempted max number of tries w/o success!
Checking 500Kbps...
A Timeout Occurred! 2 tries remaining
A Timeout Occurred! 1 tries remaining
A Timeout Occurred - SickLIDAR::_sendMessageAndGetReply: Attempted max number of tries w/o success!
ERROR: I/O exception - SickLMS::Initialize: failed to detect baud rate!
[ERROR] [1321844482.225130027]: Initialize failed! are you using the correct device path?
I am having the same problem with my SICK laser. I can get it to work perfectly when using a USB->RS232 adapter (but with many of the "A scan was probably missed") messages.
However, to operate faster, I am trying to connect using an RS422 interface. The ports are showing up under /dev/ttyUSB1, /dev/ttyUSB2 etc. But I cannot get the SICK to communicate through these ports.
Sven_007 - what do you mean by "set the interface of "/dev/ttyMXUSB0" to RS-422"??
I am setting _baud:=500000 and have set the permissions on the port correctly. However, i end up with the same error messages as the original post.
I use the Uport1250 to connect the sick.Uport1250 is a USB to serial adapter.So after I connected them,it shows /dev/ttyMXUSB0 and /dev/ttyMXUSB1. Uport1250 can work on RS232 and RS422.I doubt whether your adapter support RS422.
During the initialization, the driver will try to auto detect the baud rate of the LIDAR(which stays the same as the last time it runs.) And as RS232 can do no more than 19200, may be you need to check with a RS422 connection.
Another thing is if you want your lidar to work at real-time, you definite need 500K baud rate.
I got the same error trying to connect my Sick laser and I found no solution. I have a USB->RS422 converter and it works fine with all baud rates equal or less than 38400. When I set the baud rate to 500000, then a similar error message appears.
I tried some commands from the tutorial "Using The Sick lms" (http://www.ros.org/wiki/sicktoolbox_wrapper/Tutorials/UsingTheSicklms):