robopeak / rplidar_ros

BSD 2-Clause "Simplified" License
453 stars 370 forks source link

[ERROR] [1535647334.151867876]: Error, cannot bind to the specified serial port /dev/ttyUSB0. #69

Closed burakekincioglu closed 6 years ago

burakekincioglu commented 6 years ago

i write below command and i get an error as the title.

$ roslaunch rplidar_ros view_rplidar.launch

[ERROR] [1535647334.151867876]: Error, cannot bind to the specified serial port /dev/ttyUSB0. process[rviz-2]: started with pid [16019] [rplidarNode-1] process has died [pid 15996, exit code 255, cmd /home/nvidia/racecar-workspace/devel/lib/rplidar_ros/rplidarNode name:=rplidarNode log:=/home/nvidia/.ros/log/23793a6c-ac71-11e8-a23d-00044ba50ea0/rplidarNode-1.log]. log file: /home/nvidia/.ros/log/23793a6c-ac71-11e8-a23d-00044ba50ea0/rplidarNode-1*.log

how can i solve this problem

burakekincioglu commented 6 years ago

How to remap the USB serial port name Maybe you should change the usb device port mode with the authority of read and write, more than make the port remap to an fixed name. install USB port remap: ./scripts/create_udev_rules.sh

chaeck the remap use command: ls -l /dev | grep ttyUSB usb_port_remap

Once you have change the USB port remap, you can change the launch file about the serial_port value.

I SOLVED MY PROBLEM WİTH COMANDS THAT ABOVE.

kintzhao commented 6 years ago

it has the authority 0777 ./scripts/create_udev_rules.sh

KERNEL=="ttyUSB*", ATTRS{idVendor}=="10c4", ATTRS{idProduct}=="ea60", MODE:="0777", SYMLINK+="rplidar"