Interface Protocol
31 / 50
Copyright (c) 2009-2013 RoboPeak Team
Copyright (c) 2013-2019 Shanghai Slamtec Co., Ltd.
Figure 4-23 The Abstract Description for the Response Data Packet of Express
Scan Request
The above figure indicates the data response packet format of RPLIDAR in the
express scan mode. For convenience, after RPLIDAR receives the express scan
request and enter express scan mode, the first sent data response packet is denoted
as π
ο΅
, the second π
οΆ
and the i
th
π
ο
. Accordingly, π
π
indicates the actual angular physical
quantity corresponded with the start_angle_q6 field of π
π
Since in express scan mode, the corresponding data of measurement sampling is
stored respectively and sequentially in the Cabin of each data response packet. In
every π
ο
response data, the data of the k
th
measurement sampling point is denoted
as πΆ
ο
. It carries the distance value π·ππ π‘ππππ
ο
and the included angle compensation
ππ
ο
corresponded with the current measurement sampling point.
The actual included angle π
ο
of any measurement sampling point πΆ
ο
can be
calculated out via the following formula:
π
ο
= π
ο
+
π΄πππππ·πππ(π
ο
,π
οοΎο΅
)
32
β
π β ππ
ο
The function π΄πππππ·πππ(π
ο
,π
οοΎο΅
) in the above formula is defined as below:
AngleDiff
(
π
ο
,π
οοΎο΅
)
=
ο
π
οοΎο΅
β π
ο
, π
ο
β€ π
οοΎο΅
360 + π
οοΎο΅
β π
ο
, π
ο
> π
οοΎο΅
Data Processing of the Express Scan Data (Ultra Capsuled Express Scans)
Measurements are grouped to 3 samples per set, and stored in 32bit ultra cabins.
Each ultra cabin consists of one sample and two predicts. The angle offset fields are
removed in this data format. The SDK calculates angle offsets by LIDARsβ optical
model and start_angle_q6 field of the response packet.
The data process and calculation is complicated. As a result, using SDK to deal with
ultra capsuled packets is strongly recommended. You may refer to the source code
of RPLIDAR public SDK in case you need to understand its algorithm and principles
or to parse ultra capsuled packets.