LD06 LiDar ROS2

ROS 2 official website:https://docs.ros.org/

ROS 2 Feature pack:https://github.com/ldrobotSensorTeam/ldlidar_stl_ros

ROS 2 Feature pack:https://gitee.com/ldrobotSensorTeam/ldlidar_stl_ros

Device : PC;LD 06(LD 19)

Environment : Ubuntu18.04;ROS2(eloquent)

New Workspace

When the radar is used, it is necessary to enter the workspace each time the command is executed

Decompress the [ldlidar_ros2. zip] function package and put it in the src folder of your workspace. Open the terminal in the workspace

Note: Every time a new terminal is opened, it needs to [update the environment]. Every time the code in the function pack is changed, it needs to [re-compile] and then update the environment.

1、Remap the USB serial port

To perform this step, run the installation USB port remapping command in the scripts folder of the ldlidar_stl_ros2 function package

Use the following command to view the modified remapping

0001

2、rviz2 Visual test

You should see the radar scan results in rviz2

0003

Note: the [Fixed Frame] coordinate system and [LaserScan] topics should be consistent with those published.

3、gmapping Build diagram test

A key to start

You should see the result in rviz2

0004

Note: [Fixed Frame] coordinate system, [LaserScan] topic, [map] topic should be the same as published.