Skip to content

ROS2 package for LDRobotic LD06 Lidar

Notifications You must be signed in to change notification settings

Dave-van-der-Meer/ldlidar

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LD06 Lidar Humble ROS2 driver

This is an attempt to fix and improve the driver provided by LDRobots in their website

Installation

cd <your_ws> 
git clone -b ros2 https://github.com/linoroot/ldlidar src/ldlidar
rosdep update && rosdep install --from-path src --ignore-src -y
colcon build
source install/setup.bash

Run the driver

ros2 launch ldlidar ldlidar.launch.py

Optional Parameters:

  • serial_port used to override the autodetect and select a specific port.
  • lidar_frame used to override the default laser frame_id.
  • topic_name used to override the default scan topic name.

For example:

ros2 launch ldlidar ldlidar.launch.py serial_port:=/dev/ttyUSB0

---- Original readme ----

编译方法

使用catkin编译,执行如下操作

catkin_make

运行方法

source devel/setup.bash
roslaunch ldlidar LD06.launch 

or

rosrun ldlidar ldlidar 

rviz的配置在rviz文件夹下面。

测试

代码在ubuntun16.04 kinetic版本下测试,使用rviz可视化。

About

ROS2 package for LDRobotic LD06 Lidar

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 90.6%
  • Python 5.2%
  • CMake 4.2%