版权声明:https://blog.csdn.net/CAIYUNFREEDOM https://blog.csdn.net/CAIYUNFREEDOM/article/details/89946349
zp@zp:/etc/udev/rules.d$ sudo cp ~/qrcode_tracking/
CMakeLists.txt config/ cv_qr_code.kdev4 .git/ launch/ package.xml README.md src/ usb_rules/
zp@zp:/etc/udev/rules.d$ sudo cp ~/qrcode_tracking/usb_rules/building_qr_cam.rules .
[sudo] password for zp:
zp@zp:/etc/udev/rules.d$ ls
98-mars01a-lsusb.rules building_qr_cam.rules
zp@zp:/etc/udev/rules.d$ sudo service udev restart
zp@zp:/etc/udev/rules.d$ ls /dev | grep qr
building_qr_cam
zp@zp:/etc/udev/rules.d$ cat building_qr_cam.rules
KERNEL=="video*", ATTRS{idVendor}=="2304", ATTRS{idProduct}=="8981", MODE:="0666", SYMLINK+="building_qr_cam"
zp@zp:/etc/udev/rules.d$
$dmesg
$lsusb
zp@zp:/etc/udev/rules.d$ sudo cp ~/qrcode_tracking/
CMakeLists.txt config/ cv_qr_code.kdev4 .git/ launch/ package.xml README.md src/ usb_rules/
zp@zp:/etc/udev/rules.d$ sudo cp ~/qrcode_tracking/usb_rules/building_qr_cam.rules .
[sudo] password for zp:
zp@zp:/etc/udev/rules.d$ ls
98-mars01a-lsusb.rules building_qr_cam.rules
zp@zp:/etc/udev/rules.d$ sudo service udev restart
zp@zp:/etc/udev/rules.d$ ls /dev | grep qr
building_qr_cam
zp@zp:/etc/udev/rules.d$ cat building_qr_cam.rules
KERNEL=="video*", ATTRS{idVendor}=="2304", ATTRS{idProduct}=="8981", MODE:="0666", SYMLINK+="building_qr_cam"
zp@zp:/etc/udev/rules.d$