Apollo 10.0
自动驾驶开放平台
scan_msg.h
浏览该文件的文档.
1/*********************************************************************************************************************
2Copyright (c) 2020 RoboSense
3All rights reserved
4
5By downloading, copying, installing or using the software you agree to this license. If you do not agree to this
6license, do not download, install, copy or use the software.
7
8License Agreement
9For RoboSense LiDAR SDK Library
10(3-clause BSD License)
11
12Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
13following conditions are met:
14
151. Redistributions of source code must retain the above copyright notice, this list of conditions and the following
16disclaimer.
17
182. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following
19disclaimer in the documentation and/or other materials provided with the distribution.
20
213. Neither the names of the RoboSense, nor Suteng Innovation Technology, nor the names of other contributors may be used
22to endorse or promote products derived from this software without specific prior written permission.
23
24THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
25INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
26DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
27SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
28SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
29WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
30THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31*********************************************************************************************************************/
32
33#pragma once
34#include "modules/drivers/lidar/rslidar/common/common_header.h"
36
37namespace apollo {
38namespace drivers {
39namespace robosense {
40#ifdef _MSC_VER
41struct __declspec(align(16)) ScanMsg
42#elif __GNUC__
43struct __attribute__((aligned(16))) ScanMsg
44#endif
45{
46 double timestamp = 0.0;
47 uint32_t seq = 0;
48 std::string frame_id = "";
49 std::vector<PacketMsg> packets;
50};
51
52} // namespace robosense
53} // namespace drivers
54} // namespace apollo
std::vector< PacketMsg > packets
A vector which store a scan of packets (the size of the vector is not fix)
Definition scan_msg.h:49
uint32_t seq
Sequence number of message
std::string frame_id
Point cloud frame id
__attribute__((constructor)) void PoolInitialize()
class register implement
Definition arena_queue.h:37