MCPcopy Create free account
hub / github.com/Slamtec/rplidar_ros

github.com/Slamtec/rplidar_ros @2.1.5

Chat with this repo
repository ↗ · DeepWiki ↗ · release 2.1.5 ↗ · + Follow
596 symbols 864 edges 69 files 6 documented · 1% updated 14mo ago★ 67569 open issues

Browse by type

Functions 490 Types & classes 106
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

RPLIDAR ROS package

ROS node and test application for RPLIDAR

Visit following Website for more details about RPLIDAR:

rplidar roswiki: http://wiki.ros.org/rplidar

rplidar HomePage: http://www.slamtec.com/en/Lidar

rplidar SDK: https://github.com/Slamtec/rplidar_sdk

rplidar Tutorial: https://github.com/robopeak/rplidar_ros/wiki

How to build rplidar ros package

1) Clone this project to your catkin's workspace src folder 2) Running catkin_make to build rplidarNode and rplidarNodeClient

How to run rplidar ros package

There're two ways to run rplidar ros package

I. Run rplidar node and view in the rviz

The command for RPLIDAR A1 is :

roslaunch rplidar_ros view_rplidar_a1.launch

The command for RPLIDAR A2M7 is :

roslaunch rplidar_ros view_rplidar_a2m7.launch

The command for RPLIDAR A2M8 is :

roslaunch rplidar_ros view_rplidar_a2m8.launch

The command for RPLIDAR A2M12 is :

roslaunch rplidar_ros view_rplidar_a2m12.launch

The command for RPLIDAR A3 is :

roslaunch rplidar_ros view_rplidar_a3.launch

The command for RPLIDAR S1 is :

roslaunch rplidar_ros view_rplidar_s1.launch

The command for RPLIDAR S2 is :

roslaunch rplidar_ros view_rplidar_s2.launch

The command for RPLIDAR S3 is :

roslaunch rplidar_ros view_rplidar_s3.launch

The command for RPLIDAR S2E is :

roslaunch rplidar_ros view_rplidar_s2e.launch

The command for RPLIDAR T1 is :

roslaunch rplidar_ros view_rplidar_t1.launch

The command for RPLIDAR C1 is :

roslaunch rplidar_ros view_rplidar_c1.launch

You should see rplidar's scan result in the rviz.

II. Run rplidar node and view using test application

The command for RPLIDAR A1 is :

roslaunch rplidar_ros rplidar_a1.launch

The command for RPLIDAR A2M7 is :

roslaunch rplidar_ros rplidar_a2m7.launch

The command for RPLIDAR A2M8 is :

roslaunch rplidar_ros rplidar_a2m8.launch

The command for RPLIDAR A2M12 is :

roslaunch rplidar_ros rplidar_a2m12.launch

The command for RPLIDAR A3 is :

roslaunch rplidar_ros rplidar_a3.launch

The command for RPLIDAR S1 is :

roslaunch rplidar_ros rplidar_s1.launch

The command for RPLIDAR S2 is :

roslaunch rplidar_ros rplidar_s2.launch

The command for RPLIDAR S3 is :

roslaunch rplidar_ros rplidar_s3.launch

The command for RPLIDAR S2E is :

roslaunch rplidar_ros rplidar_s2e.launch

The command for RPLIDAR T1 is :

roslaunch rplidar_ros rplidar_t1.launch

The command for RPLIDAR C1 is :

roslaunch rplidar_ros rplidar_c1.launch

and in another terminal, run the following command

rosrun rplidar_ros rplidarNodeClient

You should see rplidar's scan result in the console.

Notice: different lidar use different serial_baudrate.

RPLidar frame

RPLidar frame must be broadcasted according to picture shown in rplidar-frame.png

Core symbols most depended-on inside this repo

Shape

Method 358
Function 132
Class 94
Enum 12

Languages

C++100%

Modules by API surface

sdk/src/sl_lidar_driver.cpp79 symbols
sdk/src/arch/win32/net_socket.cpp47 symbols
sdk/src/arch/macOS/net_socket.cpp42 symbols
sdk/src/arch/linux/net_socket.cpp42 symbols
sdk/include/sl_lidar_cmd.h28 symbols
sdk/src/rplidar_driver.cpp26 symbols
sdk/src/dataunpacker/dataunpacker.cpp23 symbols
sdk/src/arch/linux/net_serial.cpp22 symbols
sdk/src/dataunpacker/unpacker/handler_capsules.cpp21 symbols
sdk/src/arch/macOS/net_serial.cpp20 symbols
sdk/src/arch/win32/net_serial.cpp17 symbols
sdk/include/sl_lidar_driver.h17 symbols

For agents

$ claude mcp add rplidar_ros \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page