serial_node.cpp
Go to the documentation of this file.
00001 
00034 #include <boost/asio.hpp>
00035 #include <boost/bind.hpp>
00036 #include <boost/thread.hpp>
00037 
00038 #include <ros/ros.h>
00039 
00040 #include "rosserial_server/serial_session.h"
00041 
00042 
00043 int main(int argc, char* argv[])
00044 {
00045   ros::init(argc, argv, "rosserial_server_serial_node");
00046 
00047   std::string port;
00048   int baud;
00049   ros::param::param<std::string>("~port", port, "/dev/ttyACM0");
00050   ros::param::param<int>("~baud", baud, 57600);
00051 
00052   boost::asio::io_service io_service;
00053   rosserial_server::SerialSession serial_session(io_service, port, baud);
00054   io_service.run();
00055   return 0;
00056 }


rosserial_server
Author(s): Mike Purvis
autogenerated on Sat Oct 7 2017 03:08:51