42 int main(
int argc,
char **argv)
44 ros::init(argc, argv,
"optris_imager_node");
49 std::string xmlConfig =
"";
54 if(stat(xmlConfig.c_str(), &s) != 0)
56 std::cerr <<
"usage: rosrun <package> <node> _xmlConfig:=<xmlConfig>" << std::endl;
57 std::cerr <<
" verify that <xmlConfig> exists" << std::endl;
64 evo::IRDeviceParams params;
65 if(!evo::IRDeviceParamsReader::readXML(xmlConfig.c_str(), params))
69 evo::IRDevice* dev = evo::IRDevice::IRCreateDevice(params);
72 std::cout <<
"Error: UVC device with serial " << params.serial <<
" could not be found" << std::endl;
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
bool getParam(const std::string &key, std::string &s) const
int main(int argc, char **argv)