Skip to content

mattwilliamson/ld19_lidar

 
 

Repository files navigation

ROS2 Node for the LD19 LIDAR sensor

LD19 Spin

LD19 Scan

Hardware details

https://www.waveshare.com/wiki/DTOF_LIDAR_LD19

Where to buy

https://www.aliexpress.us/item/3256804109024401.html

Installation

Setup device alias to /dev/ldlidar

sudo apt install libudev-dev

cat << EOF | sudo tee /etc/udev/rules.d/99-ldlidar.rules
# set the udev rule to alias the device at /dev/ldlidar
# CP210x USB Device
KERNEL=="ttyUSB*", ATTRS{idVendor}=="10c4", ATTRS{idProduct}=="ea60", MODE:="0777", SYMLINK+="ldlidar"
EOF

sudo udevadm control --reload-rules
sudo udevadm trigger

Check it:

screen -L /dev/ldlidar 230400

Compile

cd src
git clone https://github.com/mattwilliamson/ld19_lidar.git
colcon build --symlink-install --packages-select=ld19_lidar

Running

source install/setup.sh
ros2 launch ld19_lidar node.launch.py

SLAM

source install/setup.sh
ros2 launch ld19_lidar slam.launch.py

Credits

Thank you to these repos for doing all the hard work:

About

A ROS 2.0 Node for the LD19 LIDAR

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 84.6%
  • Python 10.1%
  • CMake 3.9%
  • Dockerfile 1.1%
  • Shell 0.3%