serial_node.cpp
Go to the documentation of this file.
1 
34 #include <boost/asio.hpp>
35 #include <boost/bind.hpp>
36 #include <boost/thread.hpp>
37 
38 #include <ros/ros.h>
39 
41 
42 
43 int main(int argc, char* argv[])
44 {
45  ros::init(argc, argv, "rosserial_server_serial_node");
46 
47  std::string port;
48  int baud;
49  ros::param::param<std::string>("~port", port, "/dev/ttyACM0");
50  ros::param::param<int>("~baud", baud, 57600);
51 
52  boost::asio::io_service io_service;
53  rosserial_server::SerialSession serial_session(io_service, port, baud);
54  io_service.run();
55  return 0;
56 }
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
int main(int argc, char *argv[])
Definition: serial_node.cpp:43
Single, reconnecting class for a serial rosserial session.
baud


rosserial_server
Author(s): Mike Purvis
autogenerated on Fri Jun 7 2019 22:02:58