00001 #include "cv_camera/driver.h" 00002 00003 int main(int argc, char**argv) 00004 { 00005 ros::init(argc, argv, "cv_camera"); 00006 ros::NodeHandle private_node("~"); 00007 cv_camera::Driver driver(private_node, private_node); 00008 00009 try { 00010 driver.setup(); 00011 while(ros::ok()) 00012 { 00013 driver.proceed(); 00014 ros::spinOnce(); 00015 } 00016 } catch (cv_camera::DeviceError& e) { 00017 ROS_ERROR_STREAM("cv camera open failed: " << e.what()); 00018 return 1; 00019 } 00020 00021 return 0; 00022 }