rmp_serial.h
Go to the documentation of this file.
1 
37 #ifndef RMP_SERIAL_H
38 #define RMP_SERIAL_H
39 
40 #include "rmp_io.h"
41 
42 #include "serial/serial.h"
43 
44 namespace segwayrmp {
45 
49 class SerialRMPIO : public RMPIO {
50 public:
54  SerialRMPIO();
55  ~SerialRMPIO();
56 
60  void connect();
61 
65  void disconnect();
66 
74  int read(unsigned char* buffer, int size);
75 
83  int write(unsigned char* buffer, int size);
84 
91  void configure(std::string port, int baudrate);
92 
93 private:
94  bool configured;
95 
96  std::string port;
97  int baudrate;
98 
100 };
101 
102 }
103 
104 #endif
void configure(std::string port, int baudrate)
Definition: rmp_serial.cc:17
serial::Serial serial_port
Definition: rmp_serial.h:99
int read(unsigned char *buffer, int size)
Definition: rmp_serial.cc:49
int write(unsigned char *buffer, int size)
Definition: rmp_serial.cc:53


libsegwayrmp
Author(s): William Woodall
autogenerated on Mon Jun 10 2019 13:46:49