-
Notifications
You must be signed in to change notification settings - Fork 15
Description
Suggestions for the documentation:
-
Note that for an RPLidar A2, if the cable is coming out towards the tray, you need to set
flip_axis
totrue
inconfig/rplidar_node.yaml
. I'm assuming this value is fine as it is specified for the A1 which is used in the readme. You can tell that Something Is Wrong by looking at the /scan topic in rviz and driving it towards a wall (set fixed frame to base_link)-- the scan hits will move the wrong direction unless you flip the x axis. -
You can make the following changes to ensure that the LIDAR is always available at a fixed device file:
- Connect RPLidar USB adapter to SBC and run
sudo lsusb
. Look for the section describing the UART bridge:
Bus 001 Device 004: ID 10c4:ea60 Silicon Labs CP210x UART Bridge
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 0
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x10c4 Silicon Labs
idProduct 0xea60 CP210x UART Bridge
Note the "idVendor" and "idProduct" fields (0x10c4, 0xea60 respectively)
2. Create a file under /etc/udev/rules.d
to handle usb-serial device connections and automatically symlink to a predictable location
Create /etc/udev/rules.d/99-usb-serial.rules
(or similar file)
SUBSYSTEM=="tty", ATTRS{idVendor}=="10c4", ATTRS{idProduct}=="ea60", SYMLINK+="lidar_0"
- Set the
serial_port
entry inconfig/rplidar_node.yaml
to/dev/lidar_0
- Rebuild the workspace