src
scanner_node.cpp
Go to the documentation of this file.
1
27
#include <
ros/ros.h
>
28
29
#include "
odva_ethernetip/io_scanner.h
"
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
}
ros.h
main
int main(int argc, char const *argv[])
Definition:
scanner_node.cpp:35
eip::IOScanner
eip::IOScanner::run
void run()
io_scanner.h
omron_os32c_driver
Author(s): Kareem Shehata
autogenerated on Wed Mar 2 2022 00:39:14