handler_hqnode.h
Go to the documentation of this file.
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  * HQNode Sample Node Handler
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 
42 
43 namespace unpacker {
44 
46  public:
48  virtual ~UnpackerHandler_HQNode();
49 
50  virtual _u8 getSampleAnswerType() const;
51  virtual void onData(LIDARSampleDataUnpackerInner* engine, const _u8* data, size_t size);
52  virtual void reset();
53  virtual void onUnpackerContextSet(LIDARSampleDataUnpacker::UnpackerContextType type, const void* data, size_t size);
54 
55  protected:
56  std::vector<_u8> _cached_scan_node_buf;
58  SlamtecLidarTimingDesc _cachedTimingDesc;
59  };
60 
61 }
62 
LIDARSampleDataUnpackerInner
Definition: dataunnpacker_internal.h:44
BEGIN_DATAUNPACKER_NS
#define BEGIN_DATAUNPACKER_NS()
Definition: dataupacker_namespace.h:4
type
sl_u32 type
Definition: sl_lidar_cmd.h:2
_u8
uint8_t _u8
Definition: rptypes.h:63
size
sl_u8 size
Definition: sl_lidar_protocol.h:4
unpacker::UnpackerHandler_HQNode::_cached_scan_node_buf
std::vector< _u8 > _cached_scan_node_buf
Definition: handler_hqnode.h:56
unpacker::UnpackerHandler_HQNode::_cached_scan_node_buf_pos
int _cached_scan_node_buf_pos
Definition: handler_hqnode.h:57
LIDARSampleDataUnpacker::UnpackerContextType
UnpackerContextType
Definition: dataunpacker.h:67
unpacker::UnpackerHandler_HQNode
Definition: handler_hqnode.h:45
unpacker::UnpackerHandler_HQNode::_cachedTimingDesc
SlamtecLidarTimingDesc _cachedTimingDesc
Definition: handler_hqnode.h:58
unpacker
Definition: handler_capsules.cpp:49
data
sl_u8 data[0]
Definition: sl_lidar_protocol.h:5
END_DATAUNPACKER_NS
#define END_DATAUNPACKER_NS()
Definition: dataupacker_namespace.h:5
IDataUnpackerHandler
Definition: dataunnpacker_internal.h:59


rplidar_ros
Author(s):
autogenerated on Fri Aug 2 2024 08:42:14