RTMaps Toolkits Documentation日本語

Basic Toolkit › Sensor Driver components

YDLidarX2_Driver

Driver for the YDLIDAR X2 low-cost 2-D LiDAR connected by USB serial; outputs one full scan per revolution.

Processing

Usage

Data format

Notes

References

Properties

NameDefaultDescription
DeviceNameCOM1Serial device of the LiDAR (COMx on Windows, /dev/tty* on Linux).
FixedOutputSizefalseIf true, every revolution is output with the same number of points.
StartAtZeroAnglefalseIf true, the output starts at the point closest to angle 0 (cyclic shift, measurement order kept); otherwise the driver order is kept.
AngleUnitradianUnit of the angle output.
Options: radian, degree.
InvertedtruePassed to the YDLIDAR driver. true (default): counter-clockwise positive angle (ROS REP-103), because the X2 measures clockwise. false: raw clockwise angle of the X2. Either way the points keep the measurement (time) order.

Outputs

NameDescription
angle_numNumber of points in the current revolution.
Type: Integer32
angleAngle of each point, in the unit selected by AngleUnit. Counter-clockwise positive when Inverted is true (default).
Type: Float64
distance_in_mDistance of each point in meter.
Type: Float64
distance_in_mmDistance of each point in millimeter.
Type: Integer32