ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

ROS launch error, RPLIDAR

asked 2021-09-26 21:11:29 -0500

tnkumar gravatar image

updated 2021-09-27 01:47:27 -0500

gvdhoorn gravatar image

I am running on RPI4 with a ROS image inside a docker container. When I try to launch, I am getting error that ttyUSB0 not found. Please help

root@2a69a7970f29:~/catkin_ws# roslaunch rplidar_ros rplidar.launch 
... logging to /root/.ros/log/cc4f4226-1f37-11ec-a150-0242ac110002/roslaunch-2a69a7970f29-1454.log
Checking log directory for disk usage. This may take a while.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://2a69a7970f29:46691/


 * /rosdistro: melodic
 * /rosversion: 1.14.11
 * /rplidarNode/angle_compensate: True
 * /rplidarNode/frame_id: laser
 * /rplidarNode/inverted: False
 * /rplidarNode/serial_baudrate: 115200
 * /rplidarNode/serial_port: /dev/ttyUSB0

    rplidarNode (rplidar_ros/rplidarNode)

auto-starting new master
process[master]: started with pid [1464]

setting /run_id to cc4f4226-1f37-11ec-a150-0242ac110002
process[rosout-1]: started with pid [1475]
started core service [/rosout]
process[rplidarNode-2]: started with pid [1478]
[ INFO] [1632708508.988799780]: RPLIDAR running on ROS package rplidar_ros. SDK Version:1.12.0
[ERROR] [1632708508.991433542]: Error, cannot bind to the specified serial port /dev/ttyUSB0.
[rplidarNode-2] process has died [pid 1478, exit code 255, cmd /root/catkin_ws/devel/lib/rplidar_ros/rplidarNode __name:=rplidarNode __log:=/root/.ros/log/cc4f4226-1f37-11ec-a150-0242ac110002/rplidarNode-2.log].
log file: /root/.ros/log/cc4f4226-1f37-11ec-a150-0242ac110002/rplidarNode-2*.log
edit retag flag offensive close merge delete



Can you please do the following and update your question with the output of the commands?

  1. unplug the rplidar. Plug it back again and execute dmsg
  2. while the rplidar is plugged, execute ls -l /dev | grep ttyUSB0
  3. execute groups
janindu gravatar image janindu  ( 2021-09-27 02:03:47 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2022-08-03 08:35:19 -0500

I was having the same issue using the RPLIDAR and a Jetson Nano. Basically, you can try to run "sudo apt update" and "sudo apt upgrade". However, what was really causing trouble for me was the usb cable I was using, so just make sure the usb cable you are using is able to transport data and not only energy. I was using the usb cable from my bluetooth headphone, and it doesn't transports data. After using another usb cable, that does allows the passage of data, I was able to use the LIDAR.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2021-09-26 21:11:29 -0500

Seen: 416 times

Last updated: Sep 27 '21