ROS:二维激光雷达
本文最后更新于:2020年8月5日 下午
1. LaserScan
1 |
|
1 |
|
1.1 ROS Message Headers
To standardize how this information is sent, the Header
message type is used as a field in all such messages.
seq
: an identifier that automatically increases as Messages are sent from a given publisherstamp
: time information that should be associated with data in a Messageframe_id
: tf frame information that should be associated with data in a message.
In the case of a laser scan
- the
stamp
might correspond to the time at which the scan was taken - the
frame_id
would be set to the frame in which the scan was taken.
1 |
|
1.2 The LaserScan Message
1 |
|
2. Code
1 |
|
3. rplidar
The rplidar ros package, support rplidar A2/A1 and A3/S1
3.1 Overview
RPLIDAR
- a low cost LIDAR sensor suitable for indoor robotic SLAM application
- 360 degree scan field
- 5.5hz/10hz rotating frequency
- 8 meter ranger distance, current more than 16m for A2 and 25m for A3
- RPLIDAR A3 performs high speed distance measurement with more than 16K samples per second
- RPLIDAR A2 performs high speed distance measurement with more than 4K/8K samples per second
- RPLIDAR A1 supports 2K/4K samples per second
3.2 rplidarNode
rplidarNode is a driver for RPLIDAR. It reads RPLIDAR raw scan result using RPLIDAR’s SDK and convert to ROS LaserScan message.
Published Topics
scan | sensor_msgs/LaserScan | it publishes scan topic from the laser. |
---|---|---|
- | - | - |
Services
stop_motor | std_srvs/Empty | Call the serive to stop the motor of rplidar. |
---|---|---|
start_motor | std_srvs/Empty | Call the service to start the motor of rplidar. |
Parameters
serial_port | string , default: /dev/ttyUSB0 |
serial port name used in your system. |
---|---|---|
serial_baudrate | int , default: 115200 |
serial port baud rate. |
frame_id | string , default: laser_frame |
frame ID for the device. |
inverted | bool , default: false |
indicated whether the LIDAR is mounted inverted. |
angle_compensate | bool , default: false |
indicated whether the driver needs do angle compensation. |
scan_mode | string , default: std::string() |
the scan mode of lidar. |
4. References
本博客所有文章除特别声明外,均采用 CC BY-SA 3.0协议 。转载请注明出处!