I have two rplidar a2m12 on a mobile platform. Their ports e.g. /dev/ttyUSB0 may be switched around when unplugged or on system restart.
When running udevadm info -a -n /dev/ttyUSBx on both lidars the information is identical e.g. ATTRS{idVendor}=="10c4" and ATTRS{idProduct}=="ea60". How can I properly map or set up a rule to differentiate two lidars on the same robot?
Hi,
I have two
rplidar a2m12
on a mobile platform. Their ports e.g./dev/ttyUSB0
may be switched around when unplugged or on system restart.When running
udevadm info -a -n /dev/ttyUSBx
on both lidars the information is identical e.g.ATTRS{idVendor}=="10c4"
andATTRS{idProduct}=="ea60"
. How can I properly map or set up a rule to differentiate two lidars on the same robot?