src
barcode_reader_node.cpp
Go to the documentation of this file.
1
32
#include <string>
33
34
#include "
nodelet/loader.h
"
35
#include "
ros/ros.h
"
36
37
int
main
(
int
argc,
char
**argv)
38
{
39
ros::init
(argc, argv,
"barcode_reader_node"
);
40
41
nodelet::Loader
nodelet
;
42
nodelet::M_string
remap
(
ros::names::getRemappings
());
43
nodelet::V_string
nargv;
44
std::string nodelet_name =
ros::this_node::getName
();
45
nodelet
.load(nodelet_name,
"zbar_ros/barcode_reader_nodelet"
,
remap
, nargv);
46
ros::spin
();
47
48
return
0;
49
}
nodelet::V_string
std::vector< std::string > V_string
nodelet::M_string
std::map< std::string, std::string > M_string
loader.h
ros::init
ROSCPP_DECL void init(const M_string &remappings, const std::string &name, uint32_t options=0)
ros.h
nodelet::Loader
ros::names::getRemappings
const ROSCPP_DECL M_string & getRemappings()
remap
ROSCPP_DECL std::string remap(const std::string &name)
ros::this_node::getName
const ROSCPP_DECL std::string & getName()
nodelet
main
int main(int argc, char **argv)
Definition:
barcode_reader_node.cpp:37
ros::spin
ROSCPP_DECL void spin()
zbar_ros
Author(s): Paul Bovbel
autogenerated on Sat Jul 2 2022 02:50:32