robopeak / rplidar_ros

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

How to remap serial port for RPLidar #32

Closed raynerthestoner closed 7 years ago

raynerthestoner commented 7 years ago

Dear robopeak,

I'm currently facing this issue of creating udev rule for the RPLidar sensor. I have viewed the instructions but still unsure how to go about doing it.

So far, besides scoring through numerous udev articles and tutorials, what I have done is run the create_udev_rule.sh script, and check that the file is reflected in the /etc/udev/rules.d folder but it did not help in any way as I still get the bind error " Error, cannot bind to the specified serial port /dev/rplidar." when I try to launch the rplidar sensor.

Are there any step by step guide to doing this particular RPLidar remap and giving it read and write authority? Such that rplidar -> ttyUSB (where is a number) is displayed when I input the "ls -l /dev |grep ttyUSB" command

Thank you!

raynerthestoner commented 7 years ago

Realized I had to be a root user to set it up