The main class for communication with Roomba through a serial interface.
More...
|
void | Connect (string port_name) |
| Connect to the robot.
|
|
void | Disconnect () |
| Disconnect from the robot.
|
|
void | AutoConnect () |
| Automatically scan all existing serial ports and connect to the first visible robot.
|
|
void | Send (byte[] command) |
| Send a byte array corresponding to a desired command.
|
|
void | Receive (ref byte[] data, int offset, int count) |
| Receive data, with timeout functionality. The call to this method has to be preceded by an appropriate request (see the Send function).
|
|
The main class for communication with Roomba through a serial interface.
- Todo:
- Introduce helper classes for Roomba state, odometry, motors, etc. Implement iCreate specific methods.
void Roomba.Robot.AutoConnect |
( |
| ) |
|
Automatically scan all existing serial ports and connect to the first visible robot.
It is slower than directly connecting to a specific port.
void Roomba.Robot.Connect |
( |
string |
port_name | ) |
|
Connect to the robot.
- Parameters
-
port_name | serial port name |
void Roomba.Robot.Disconnect |
( |
| ) |
|
Disconnect from the robot.
void Roomba.Robot.Receive |
( |
ref byte[] |
data, |
|
|
int |
offset, |
|
|
int |
count |
|
) |
| |
Receive data, with timeout functionality. The call to this method has to be preceded by an appropriate request (see the Send function).
- Parameters
-
void Roomba.Robot.Send |
( |
byte[] |
command | ) |
|
Send a byte array corresponding to a desired command.
- Parameters
-
The documentation for this class was generated from the following file:
- C:/Users/Greg/Documents/GitHub/RoboLib/src/Roomba.cs