Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
src
conversions
cloud_nodelet.cc
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2012 Austin Robot Technology, Jack O'Quin
3
* License: Modified BSD Software License Agreement
4
*
5
* $Id$
6
*/
7
15
#include <
ros/ros.h
>
16
#include <
pluginlib/class_list_macros.h
>
17
#include <
nodelet/nodelet.h
>
18
19
#include "
velodyne_pointcloud/convert.h
"
20
21
namespace
velodyne_pointcloud
22
{
23
class
CloudNodelet
:
public
nodelet::Nodelet
24
{
25
public
:
26
27
CloudNodelet
() {}
28
~CloudNodelet
() {}
29
30
private
:
31
32
virtual
void
onInit
();
33
boost::shared_ptr<Convert>
conv_
;
34
};
35
37
void
CloudNodelet::onInit
()
38
{
39
conv_
.reset(
new
Convert
(
getNodeHandle
(),
getPrivateNodeHandle
()));
40
}
41
42
}
// namespace velodyne_pointcloud
43
44
45
// Register this plugin with pluginlib. Names must match nodelets.xml.
46
//
47
// parameters: class type, base class type
48
PLUGINLIB_EXPORT_CLASS
(
velodyne_pointcloud::CloudNodelet
,
nodelet::Nodelet
)
PLUGINLIB_EXPORT_CLASS
PLUGINLIB_EXPORT_CLASS(velodyne_laserscan::LaserScanNodelet, nodelet::Nodelet)
velodyne_pointcloud
Definition:
calibration.h:40
velodyne_pointcloud::Convert
Definition:
convert.h:56
velodyne_pointcloud::CloudNodelet::onInit
virtual void onInit()
Nodelet initialization.
Definition:
cloud_nodelet.cc:37
nodelet::Nodelet::getPrivateNodeHandle
ros::NodeHandle & getPrivateNodeHandle() const
boost::shared_ptr
nodelet.h
nodelet::Nodelet
velodyne_pointcloud::CloudNodelet::conv_
boost::shared_ptr< Convert > conv_
Definition:
cloud_nodelet.cc:33
class_list_macros.h
velodyne_pointcloud::CloudNodelet::CloudNodelet
CloudNodelet()
Definition:
cloud_nodelet.cc:27
velodyne_pointcloud::CloudNodelet::~CloudNodelet
~CloudNodelet()
Definition:
cloud_nodelet.cc:28
nodelet::Nodelet::getNodeHandle
ros::NodeHandle & getNodeHandle() const
ros.h
velodyne_pointcloud::CloudNodelet
Definition:
cloud_nodelet.cc:23
convert.h
velodyne_pointcloud
Author(s): Jack O'Quin, Piyush Khandelwal, Jesse Vera, Sebastian Pütz
autogenerated on Thu Jul 4 2019 19:09:30