roslaunch rplidar Error, operation time out. RESULT_OPERATION_TIMEOUT!

asked 2019-05-24 11:11:36 -0500

jamesislost gravatar image

updated 2019-05-24 11:26:43 -0500

jayess gravatar image

Hi there, I'm having a problem running an rplidar through a usb hub on intel aero.

When running launch:

roslaunch rplidar.launch

Error message:

[ERROR] [1558615600.086287674]: Error, cannot bind to the specified serial port /dev/bus/usb/001/005.
[rplidarNode-2] process has died [pid 3325, exit code 255, cmd /home/aero/rplidar/devel/lib/rplidar_ros/rplidarNode __name:=rplidarNode __log:=/home/aero/.ros/log/cd3b83b2-7d58-11e9-a033-ae53970a7cc1/rplidarNode-2.log].
log file: /home/aero/.ros/log/cd3b83b2-7d58-11e9-a033-ae53970a7cc1/rplidarNode-2*.log

As i interpret it I need to remap the USB serial connection, but the lidar is connected by usb hub

Bus 001 Device 002: ID 05e3:0610 Genesys Logic, Inc. 4-port hub

The port within this the lidar is connected to is number 005

ls /dev/bus/usb/001

001  002  003  004  005

Within the rplidar.launch file I have changed to this

param name="serial_port"         type="string" value="/dev/bus/usb/001/005"/

and in the rplidar.rules file changed to this:

KERNEL=="/dev/bus/usb/001/005", ATTRS{idVendor}=="10c4", ATTRS{idProduct}=="ea60", MODE:="0666", SYMLINK+="rplidar"

I also run, from the rplidar wiki:

ls -l /dev/bus/usb/001 |grep` 005

output

crw-rw-rw- 1 root root 189, 4 May 23 14:01 005

Then:

sudo chmod 666 /dev/bus/usb/001/005

with no response message

Then, when running the rplidar.launch code again I now get the error message:

Error, operation time out. RESULT_OPERATION_TIMEOUT!

Im not sure what else to try so if anyone has any suggestions that is much appreciated. The environment is definitely sourced and I think this is sufficiently different from the other similar question on here, thanks.

edit retag flag offensive close merge delete

Comments

How did you solve this?

femitof gravatar image femitof  ( 2020-06-12 12:30:04 -0500 )edit

I am also trying to run it using a USB hub. I had got it working on a jetson nano but for some reason it isn't working now

cjoshi17 gravatar image cjoshi17  ( 2021-08-31 08:04:09 -0500 )edit