Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
src
conversions
transform_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/transform.h
"
20
21
namespace
velodyne_pointcloud
22
{
23
class
TransformNodelet
:
public
nodelet::Nodelet
24
{
25
public
:
26
27
TransformNodelet
() {}
28
~TransformNodelet
() {}
29
30
private
:
31
32
virtual
void
onInit
();
33
boost::shared_ptr<Transform>
tf_
;
34
};
35
37
void
TransformNodelet::onInit
()
38
{
39
tf_
.reset(
new
Transform
(
getNodeHandle
(),
getPrivateNodeHandle
(),
getName
()));
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::TransformNodelet
,
nodelet::Nodelet
)
PLUGINLIB_EXPORT_CLASS
PLUGINLIB_EXPORT_CLASS(velodyne_laserscan::LaserScanNodelet, nodelet::Nodelet)
velodyne_pointcloud::TransformNodelet
Definition:
transform_nodelet.cc:23
velodyne_pointcloud
Definition:
calibration.h:40
velodyne_pointcloud::Transform
Definition:
transform.h:61
nodelet::Nodelet::getName
const std::string & getName() const
velodyne_pointcloud::TransformNodelet::TransformNodelet
TransformNodelet()
Definition:
transform_nodelet.cc:27
nodelet::Nodelet::getPrivateNodeHandle
ros::NodeHandle & getPrivateNodeHandle() const
boost::shared_ptr
nodelet.h
nodelet::Nodelet
class_list_macros.h
transform.h
nodelet::Nodelet::getNodeHandle
ros::NodeHandle & getNodeHandle() const
ros.h
velodyne_pointcloud::TransformNodelet::~TransformNodelet
~TransformNodelet()
Definition:
transform_nodelet.cc:28
velodyne_pointcloud::TransformNodelet::onInit
virtual void onInit()
Nodelet initialization.
Definition:
transform_nodelet.cc:37
velodyne_pointcloud::TransformNodelet::tf_
boost::shared_ptr< Transform > tf_
Definition:
transform_nodelet.cc:33
velodyne_pointcloud
Author(s): Jack O'Quin, Piyush Khandelwal, Jesse Vera, Sebastian Pütz
autogenerated on Sun Sep 6 2020 03:25:30