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 
19 
20 namespace lslidar_c16_decoder {
21 
23  decoder.reset(new LslidarC16Decoder(
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
ros::NodeHandle & getPrivateNodeHandle() const
PLUGINLIB_EXPORT_CLASS(lslidar_c16_decoder::LslidarC16DecoderNodelet, nodelet::Nodelet)
ros::NodeHandle & getNodeHandle() const
#define ROS_ERROR(...)


lslidar_c16_decoder
Author(s): Yutong
autogenerated on Thu Aug 22 2019 03:51:41