convert.h
Go to the documentation of this file.
1 /* -*- mode: C++ -*- */
2 /*
3  * Copyright (C) 2009, 2010 Austin Robot Technology, Jack O'Quin
4  * Copyright (C) 2011 Jesse Vera
5  * Copyright (C) 2012 Austin Robot Technology, Jack O'Quin
6  * Copyright (C) 2017 Robosense, Tony Zhang
7  * License: Modified BSD Software License Agreement
8  *
9 
10  Copyright (C) 2010-2013 Austin Robot Technology, and others
11  All rights reserved.
12 
13 
14 Modified BSD License:
15 --------------------
16 
17  Redistribution and use in source and binary forms, with or without
18  modification, are permitted provided that the following conditions
19  are met:
20 
21  * Redistributions of source code must retain the above copyright
22  notice, this list of conditions and the following disclaimer.
23 
24  * Redistributions in binary form must reproduce the above
25  copyright notice, this list of conditions and the following
26  disclaimer in the documentation and/or other materials provided
27  with the distribution.
28 
29  * Neither the names of the University of Texas at Austin, nor
30  Austin Robot Technology, nor the names of other contributors may
31  be used to endorse or promote products derived from this
32  software without specific prior written permission.
33 
34  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
35  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
36  LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
37  FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
38  COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
39  INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
40  BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
41  LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
42  CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
43  LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
44  ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
45 POSSIBILITY OF SUCH DAMAGE.
46  */
47 
53 #ifndef _CONVERT_H_
54 #define _CONVERT_H_
55 
56 #include <sensor_msgs/PointCloud2.h>
57 #include <dynamic_reconfigure/server.h>
58 #include <rslidar_pointcloud/CloudNodeConfig.h>
59 #include "rawdata.h"
60 
61 namespace rslidar_pointcloud
62 {
63 class Convert
64 {
65 public:
66  Convert(ros::NodeHandle node, ros::NodeHandle private_nh);
67 
69  {
70  }
71 
72 private:
73  void callback(rslidar_pointcloud::CloudNodeConfig& config, uint32_t level);
74 
75  void processScan(const rslidar_msgs::rslidarScan::ConstPtr& scanMsg);
76 
79 
83 };
84 
85 } // namespace rslidar_pointcloud
86 #endif
void processScan(const rslidar_msgs::rslidarScan::ConstPtr &scanMsg)
Callback for raw scan messages.
Definition: convert.cc:85
Interfaces for interpreting raw packets from the Robosense 3D LIDAR.
void callback(rslidar_pointcloud::CloudNodeConfig &config, uint32_t level)
Definition: convert.cc:78
ros::Subscriber rslidar_scan_
Definition: convert.h:81
boost::shared_ptr< dynamic_reconfigure::Server< rslidar_pointcloud::CloudNodeConfig > > srv_
Pointer to dynamic reconfigure service srv_.
Definition: convert.h:78
Convert(ros::NodeHandle node, ros::NodeHandle private_nh)
Constructor.
Definition: convert.cc:60
boost::shared_ptr< rslidar_rawdata::RawData > data_
Definition: convert.h:80
ros::Publisher output_
Definition: convert.h:82


rslidar_pointcloud
Author(s): Tony Zhang , Tony Zhang, George Wang, Piyush Khandelwal, Jesse Vera
autogenerated on Mon Jun 10 2019 14:41:10