Go to the documentation of this file.00001
00027 #include <ros/ros.h>
00028
00029 #include "odva_ethernetip/io_scanner.h"
00030
00031 using std::cout;
00032 using std::endl;
00033 using eip::IOScanner;
00034
00035 int main(int argc, char const *argv[])
00036 {
00037 if (argc != 2)
00038 {
00039 cout << "Usage: os32c_node [hostname]" << endl;
00040 return 1;
00041 }
00042 boost::asio::io_service io_service;
00043 try
00044 {
00045 IOScanner scanner(io_service, argv[1]);
00046 scanner.run();
00047 }
00048 catch (std::runtime_error ex)
00049 {
00050 cout << "Exception caught doing IO scan: " << ex.what() << endl;
00051 }
00052 return 0;
00053 }