1 #ifndef KINEMATICS_RV2AJ_DRIVER_SERIAL_HPP 2 #define KINEMATICS_RV2AJ_DRIVER_SERIAL_HPP 60 void open(
const std::string& dev);
81 std::string
read(
char delim);
90 void write(
const std::string& msg);
101 #endif // KINEMATICS_RV2AJ_DRIVER_SERIAL_HPP Serial()=default
Constructor.
OO wrapper around POSIX serial devices.
Definition: Serial.hpp:13
void write(const std::string &msg)
Writes message to open serial device.
bool opened() const
Returns whether serial device is open.
virtual ~Serial()
Destructor.
std::string read(char delim)
Reads message from open serial device up to (including) delimiter.
void close()
Closes active serial device.
Serial & operator=(const Serial &s)=delete
Copy assignment operator, deleted.
void open(const std::string &dev)
Open specified serial device.