38 #include <boost/thread.hpp> 41 #include <gtest/gtest_prod.h> 45 MotorSerial(
const std::string& port =
"/dev/ttyUSB0",
46 uint32_t baud_rate = 9600,
double loopRate = 100);
MotorSerial & operator=(const MotorSerial &)
shared_queue< MotorMessage > input
FRIEND_TEST(MotorSerialTests, serialClosedOnInterupt)
int transmitCommand(MotorMessage command)
ros::Rate serial_loop_rate
int transmitCommands(const std::vector< MotorMessage > &commands)
ROSLIB_DECL std::string command(const std::string &cmd)
MotorSerial(const std::string &port="/dev/ttyUSB0", uint32_t baud_rate=9600, double loopRate=100)
boost::thread serial_thread
MotorMessage getInputCommand()
shared_queue< MotorMessage > output
MotorMessage receiveCommand()
void appendOutput(MotorMessage command)