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