ROS launch error, RPLIDAR
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/
SUMMARY
========
PARAMETERS
* /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
NODES
/
rplidarNode (rplidar_ros/rplidarNode)
auto-starting new master
process[master]: started with pid [1464]
ROS_MASTER_URI=http://localhost:11311
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
Can you please do the following and update your question with the output of the commands?
dmsg
ls -l /dev | grep ttyUSB0
groups