00001 #include <ros/ros.h> 00002 #include <nodelet/loader.h> 00003 00004 int main(int argc, char** argv) 00005 { 00006 ros::init(argc, argv, "openni_driver"); 00007 00008 nodelet::Loader manager(true); // Bring up manager ROS API 00009 nodelet::M_string remappings; 00010 nodelet::V_string my_argv; 00011 00012 // Driver nodelet 00013 manager.load(ros::this_node::getName(), "openni_camera/driver", remappings, my_argv); 00014 00015 // Manager service calls are on global callback queue 00016 ros::spin(); 00017 }