00001 00032 #include <ros/ros.h> 00033 #include <nodelet/loader.h> 00034 00035 int main(int argc, char **argv){ 00036 ros::init(argc, argv, "barcode_reader_node"); 00037 00038 nodelet::Loader nodelet; 00039 nodelet::M_string remap(ros::names::getRemappings()); 00040 nodelet::V_string nargv; 00041 std::string nodelet_name = ros::this_node::getName(); 00042 nodelet.load(nodelet_name, "zbar_ros/barcode_reader_nodelet", remap, nargv); 00043 ros::spin(); 00044 00045 return 0; 00046 00047 }