Slamtec / sllidar_ros2

BSD 2-Clause "Simplified" License
123 stars 84 forks source link

ROS2 Foxy - Error on launch - SL_RESULT _OPERATION_TIMEOUT #6

Open DingoOz opened 2 years ago

DingoOz commented 2 years ago

Using the lauch scripts on this GitHub with a clean install of Foxy2 on an X86 machine with a rplidar A1 I constantly receive a SL_RESULT_OPERATION_TIMEOUT error.

The USB serial port is correct and baud is correct because when monitoring it, I receive clear text from the lidar: "Firmware Ver 1.25 - rc2, HW Ver 5 Model: 18"

Is there something else I need to configure to avoid this error?

DingoOz commented 2 years ago

I have tried upgrading my rplidar firmware to the latest (1.27) but this did not change anything.

The Ros logs do not provide any more information about why this node threw an error that this error code "SL_RESULTS_OPERATION_TIMEOUT"

DingoOz commented 2 years ago

I have confirmed the hardware works buy using the SLAMTEC demo software under windows.

DingoOz commented 2 years ago

Firmware is now: "RP LIDAR System. Firmware Ver 1.27 - rc8 HW Ver 5 Model: 18"

vattenbuffel commented 2 years ago

I had this problem and the solution for me was that sudo was needed to access the usb port. A simple solution is to give everyone access: sudo chmod 666 /dev/ttyUSB0

ladrians commented 2 years ago

Any other thing to test from this issue? I got the same error and the 666 permission change on ttyUSB0 does not fix the problem connecting to an S2 Lidar, this is the error

[sllidar_node-1] [ERROR] [1657739326.111938211] [sllidar_node]: Error, operation time out. SL_RESULT_OPERATION_TIMEOUT!
[ERROR] [sllidar_node-1]: process has died [pid 41683, exit code 255, cmd '/home/ubuntu/ros2_ws/install/sllidar_ros2/lib/sllidar_ros2/sllidar_node --ros-args --log-level debug --ros-args -r __node:=sllidar_node -r __node:=sllidar_node --params-file /tmp/launch_params_xvswqiic'].

thanks,

ladrians commented 2 years ago

sorry discard my last comment, I confused the lidar model, actually it was a S1 version and works fine!

xiaoc10020015 commented 2 years ago

13 humble error SL_RESULT _OPERATION_TIMEOUT