Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
src
cloud_nodelet.cc
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2012 Austin Robot Technology, Jack O'Quin
3
* Copyright (C) 2016 Robosense, Tony Zhang
4
* License: Modified BSD Software License Agreement
5
*
6
7
Copyright (C) 2010-2013 Austin Robot Technology, and others
8
All rights reserved.
9
10
11
Modified BSD License:
12
--------------------
13
14
Redistribution and use in source and binary forms, with or without
15
modification, are permitted provided that the following conditions
16
are met:
17
18
* Redistributions of source code must retain the above copyright
19
notice, this list of conditions and the following disclaimer.
20
21
* Redistributions in binary form must reproduce the above
22
copyright notice, this list of conditions and the following
23
disclaimer in the documentation and/or other materials provided
24
with the distribution.
25
26
* Neither the names of the University of Texas at Austin, nor
27
Austin Robot Technology, nor the names of other contributors may
28
be used to endorse or promote products derived from this
29
software without specific prior written permission.
30
31
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
32
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
33
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
34
FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
35
COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
36
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
37
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
38
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
39
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
40
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
41
ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
42
POSSIBILITY OF SUCH DAMAGE.
43
*/
44
52
#include <
ros/ros.h
>
53
#include <
pluginlib/class_list_macros.h
>
54
#include <
nodelet/nodelet.h
>
55
56
#include "
convert.h
"
57
58
namespace
rslidar_pointcloud
59
{
60
class
CloudNodelet
:
public
nodelet::Nodelet
61
{
62
public
:
63
CloudNodelet
()
64
{
65
}
66
~CloudNodelet
()
67
{
68
}
69
70
private
:
71
virtual
void
onInit
();
72
boost::shared_ptr<Convert>
conv_
;
73
};
74
76
void
CloudNodelet::onInit
()
77
{
78
conv_
.reset(
new
Convert
(
getNodeHandle
(),
getPrivateNodeHandle
()));
79
}
80
81
}
// namespace velodyne_pointcloud
82
83
// Register this plugin with pluginlib. Names must match nodelets.xml.
84
//
85
// parameters: class type, base class type
86
PLUGINLIB_EXPORT_CLASS
(
rslidar_pointcloud::CloudNodelet
,
nodelet::Nodelet
)
rslidar_pointcloud::CloudNodelet::conv_
boost::shared_ptr< Convert > conv_
Definition:
cloud_nodelet.cc:72
rslidar_pointcloud::CloudNodelet::~CloudNodelet
~CloudNodelet()
Definition:
cloud_nodelet.cc:66
rslidar_pointcloud::CloudNodelet
Definition:
cloud_nodelet.cc:60
rslidar_pointcloud
Definition:
cloud_nodelet.cc:58
PLUGINLIB_EXPORT_CLASS
PLUGINLIB_EXPORT_CLASS(BAGReader, nodelet::Nodelet)
rslidar_pointcloud::CloudNodelet::CloudNodelet
CloudNodelet()
Definition:
cloud_nodelet.cc:63
nodelet::Nodelet::getPrivateNodeHandle
ros::NodeHandle & getPrivateNodeHandle() const
boost::shared_ptr
rslidar_pointcloud::Convert
Definition:
convert.h:63
nodelet.h
nodelet::Nodelet
class_list_macros.h
nodelet::Nodelet::getNodeHandle
ros::NodeHandle & getNodeHandle() const
ros.h
rslidar_pointcloud::CloudNodelet::onInit
virtual void onInit()
Nodelet initialization.
Definition:
cloud_nodelet.cc:76
convert.h
rslidar_pointcloud
Author(s): Tony Zhang
, Tony Zhang, George Wang, Piyush Khandelwal, Jesse Vera
autogenerated on Mon Jun 10 2019 14:41:10