ring_sequence.h
Go to the documentation of this file.
1 // Copyright (C) 2010, 2019 Austin Robot Technology, Jack O'Quin, Joshua Whitley
2 // All rights reserved.
3 //
4 // Software License Agreement (BSD License 2.0)
5 //
6 // Redistribution and use in source and binary forms, with or without
7 // modification, are permitted provided that the following conditions
8 // are met:
9 //
10 // * Redistributions of source code must retain the above copyright
11 // notice, this list of conditions and the following disclaimer.
12 // * Redistributions in binary form must reproduce the above
13 // copyright notice, this list of conditions and the following
14 // disclaimer in the documentation and/or other materials provided
15 // with the distribution.
16 // * Neither the name of {copyright_holder} nor the names of its
17 // contributors may be used to endorse or promote products derived
18 // from this software without specific prior written permission.
19 //
20 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21 // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22 // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
23 // FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
24 // COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
25 // INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
26 // BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
27 // LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
28 // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
30 // ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
31 // POSSIBILITY OF SUCH DAMAGE.
32 
40 #ifndef VELODYNE_DRIVER_RING_SEQUENCE_H
41 #define VELODYNE_DRIVER_RING_SEQUENCE_H
42 
43 namespace velodyne
44 {
45 
46 // number of lasers
47 const int N_LASERS = 64;
48 
49 // ring sequence for device laser numbers
51  {
52  6, 7, 10, 11, 0, 1, 4, 5,
53  8, 9, 14, 15, 18, 19, 22, 23,
54  12, 13, 16, 17, 20, 21, 26, 27,
55  30, 31, 2, 3, 24, 25, 28, 29,
56  38, 39, 42, 43, 32, 33, 36, 37,
57  40, 41, 46, 47, 50, 51, 54, 55,
58  44, 45, 48, 49, 52, 53, 58, 59,
59  62, 63, 34, 35, 56, 57, 60, 61
60  };
61 
62 // convert laser number to ring sequence (inverse of LASER_SEQUENCE)
63 const int LASER_RING[N_LASERS] =
64  {
65  4, 5, 26, 27, 6, 7, 0, 1,
66  8, 9, 2, 3, 16, 17, 10, 11,
67  18, 19, 12, 13, 20, 21, 14, 15,
68  28, 29, 22, 23, 30, 31, 24, 25,
69  36, 37, 58, 59, 38, 39, 32, 33,
70  40, 41, 34, 35, 48, 49, 42, 43,
71  50, 51, 44, 45, 52, 53, 46, 47,
72  60, 61, 54, 55, 62, 63, 56, 57
73  };
74 
75 } // namespace velodyne
76 
77 #endif // VELODYNE_DRIVER_RING_SEQUENCE_H
velodyne::LASER_RING
const int LASER_RING[N_LASERS]
Definition: ring_sequence.h:63
velodyne::N_LASERS
const int N_LASERS
Definition: ring_sequence.h:47
velodyne::LASER_SEQUENCE
const int LASER_SEQUENCE[N_LASERS]
Definition: ring_sequence.h:50
velodyne
Definition: ring_sequence.h:43


velodyne_driver
Author(s): Jack O'Quin, Patrick Beeson, Michael Quinlan, Yaxin Liu
autogenerated on Fri Aug 2 2024 08:46:21