Skip to content

RPLidar connection notes #42

Description

@carlsondc-ceva

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 to true in config/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:

  1. 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"

  1. Set the serial_port entry in config/rplidar_node.yaml to /dev/lidar_0
  2. Rebuild the workspace

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions