scanner_node.cpp
Go to the documentation of this file.
1 
27 #include <ros/ros.h>
28 
30 
31 using std::cout;
32 using std::endl;
33 using eip::IOScanner;
34 
35 int main(int argc, char const* argv[])
36 {
37  if (argc != 2)
38  {
39  cout << "Usage: os32c_node [hostname]" << endl;
40  return 1;
41  }
42  boost::asio::io_service io_service;
43  try
44  {
45  IOScanner scanner(io_service, argv[1]);
46  scanner.run();
47  }
48  catch (std::runtime_error ex)
49  {
50  cout << "Exception caught doing IO scan: " << ex.what() << endl;
51  }
52  return 0;
53 }
int main(int argc, char const *argv[])


omron_os32c_driver
Author(s): Kareem Shehata
autogenerated on Fri Nov 27 2020 03:06:12