Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
src
lslidar_c16_decoder_nodelet.cpp
Go to the documentation of this file.
1
/*
2
* This file is part of lslidar_n301 driver.
3
*
4
* The driver is free software: you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License as published by
6
* the Free Software Foundation, either version 3 of the License, or
7
* (at your option) any later version.
8
*
9
* The driver is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
13
*
14
* You should have received a copy of the GNU General Public License
15
* along with the driver. If not, see <http://www.gnu.org/licenses/>.
16
*/
17
18
#include <
lslidar_c16_decoder/lslidar_c16_decoder_nodelet.h
>
19
20
namespace
lslidar_c16_decoder
{
21
22
void
LslidarC16DecoderNodelet::onInit
() {
23
decoder
.reset(
new
LslidarC16Decoder
(
24
getNodeHandle
(),
getPrivateNodeHandle
()));
25
if
(!
decoder
->initialize()) {
26
ROS_ERROR
(
"Cannot initialize the lslidar puck decoder..."
);
27
return
;
28
}
29
return
;
30
}
31
32
}
// end namespace lslidar_c16_decoder
33
34
// Register this plugin with pluginlib. Names must match nodelet_lslidar.xml.
35
// parameters are: class type, base class type
36
PLUGINLIB_EXPORT_CLASS
(
lslidar_c16_decoder::LslidarC16DecoderNodelet
,
nodelet::Nodelet
);
lslidar_c16_decoder::LslidarC16DecoderNodelet::decoder
LslidarC16DecoderPtr decoder
Definition:
lslidar_c16_decoder_nodelet.h:37
lslidar_c16_decoder::LslidarC16DecoderNodelet::onInit
virtual void onInit()
Definition:
lslidar_c16_decoder_nodelet.cpp:22
nodelet::Nodelet::getPrivateNodeHandle
ros::NodeHandle & getPrivateNodeHandle() const
lslidar_c16_decoder
Definition:
lslidar_c16_decoder.h:44
nodelet::Nodelet
PLUGINLIB_EXPORT_CLASS
PLUGINLIB_EXPORT_CLASS(lslidar_c16_decoder::LslidarC16DecoderNodelet, nodelet::Nodelet)
nodelet::Nodelet::getNodeHandle
ros::NodeHandle & getNodeHandle() const
lslidar_c16_decoder::LslidarC16Decoder
Definition:
lslidar_c16_decoder.h:126
lslidar_c16_decoder_nodelet.h
lslidar_c16_decoder::LslidarC16DecoderNodelet
Definition:
lslidar_c16_decoder_nodelet.h:28
ROS_ERROR
#define ROS_ERROR(...)
lslidar_c16_decoder
Author(s): Yutong
autogenerated on Thu Aug 22 2019 03:51:41