| 1 | /* |
| 2 | * Slamtec LIDAR SDK |
| 3 | * |
| 4 | * Copyright (c) 2014 - 2023 Shanghai Slamtec Co., Ltd. |
| 5 | * http://www.slamtec.com |
| 6 | * |
| 7 | */ |
| 8 | |
| 9 | /* |
| 10 | * Sample Data Unpacker System |
| 11 | * External Reference and dependencies |
| 12 | */ |
| 13 | |
| 14 | /* |
| 15 | * Redistribution and use in source and binary forms, with or without |
| 16 | * modification, are permitted provided that the following conditions are met: |
| 17 | * |
| 18 | * 1. Redistributions of source code must retain the above copyright notice, |
| 19 | * this list of conditions and the following disclaimer. |
| 20 | * |
| 21 | * 2. Redistributions in binary form must reproduce the above copyright notice, |
| 22 | * this list of conditions and the following disclaimer in the documentation |
| 23 | * and/or other materials provided with the distribution. |
| 24 | * |
| 25 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
| 26 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, |
| 27 | * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR |
| 28 | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR |
| 29 | * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, |
| 30 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, |
| 31 | * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; |
| 32 | * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, |
| 33 | * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR |
| 34 | * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, |
| 35 | * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 36 | * |
| 37 | */ |
| 38 | |
| 39 | #pragma once |
| 40 | |
| 41 | #include "sdkcommon.h" |
| 42 | #include "hal/abs_rxtx.h" |
| 43 | #include "hal/thread.h" |
| 44 | #include "hal/types.h" |
| 45 | #include "hal/assert.h" |
| 46 | #include "hal/locker.h" |
| 47 | #include "hal/socket.h" |
| 48 | #include "hal/event.h" |
| 49 | #include "hal/waiter.h" |
| 50 | #include "hal/byteorder.h" |
| 51 | #include "sl_lidar_driver.h" |
| 52 | #include "sl_crc.h" |
| 53 | #include <algorithm> |
| 54 | #include <memory> |
| 55 | |
| 56 | #define CONF_NO_BOOST_CRC_SUPPORT |
| 57 | |
| 58 | #include "dataupacker_namespace.h" |
| 59 | |
| 60 |