Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
src
lslidar_n301_decoder_node.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 <
ros/ros.h
>
19
20
#include <
lslidar_n301_decoder/lslidar_n301_decoder.h
>
21
22
int
main
(
int
argc,
char
** argv) {
23
ros::init
(argc, argv,
"lslidar_n301_decoder_node"
);
24
ros::NodeHandle
nh;
25
ros::NodeHandle
pnh(
"~"
);
26
27
lslidar_n301_decoder::LslidarN301DecoderPtr
decoder(
28
new
lslidar_n301_decoder::LslidarN301Decoder
(nh, pnh));
29
30
if
(!decoder->initialize()) {
31
ROS_INFO
(
"Cannot initialize the decoder..."
);
32
return
-1;
33
}
34
35
ros::spin
();
36
37
return
0;
38
}
ros::NodeHandle
lslidar_n301_decoder::LslidarN301Decoder
Definition:
lslidar_n301_decoder.h:125
main
int main(int argc, char **argv)
Definition:
lslidar_n301_decoder_node.cpp:22
ros::init
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
lslidar_n301_decoder.h
ros::spin
ROSCPP_DECL void spin(Spinner &spinner)
boost::shared_ptr
ROS_INFO
#define ROS_INFO(...)
ros.h
lslidar_n301_decoder
Author(s): Nick Shu
autogenerated on Thu Sep 26 2019 03:58:31