create_udev_rules.sh 463 B

12345678910111213
  1. #!/bin/bash
  2. echo "remap the device serial port(ttyUSBX) to rplidar"
  3. echo "rplidar usb connection as /dev/rplidar , check it using the command : ls -l /dev|grep ttyUSB"
  4. echo "start copy rplidar.rules to /etc/udev/rules.d/"
  5. echo "`rospack find rplidar_ros`/scripts/rplidar.rules"
  6. sudo cp `rospack find rplidar_ros`/scripts/rplidar.rules /etc/udev/rules.d
  7. echo " "
  8. echo "Restarting udev"
  9. echo ""
  10. sudo service udev reload
  11. sudo service udev restart
  12. echo "finish "