RobotLib
1
A set of software wrappers for Rovio, Roomba and NXT robots written in C#.
|
The main robot class. More...
Classes | |
class | CommunicationException |
Communication exceptions with NXT. More... | |
Public Member Functions | |
Robot () | |
The constructor. | |
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, out byte[] response) |
Generic send command. | |
void | Send (byte[] command) |
Send command without expecting the response. | |
Public Attributes | |
API.API | API |
API commands. | |
DeviceInfo | DeviceInfo |
Device info. | |
InPort | InPort1 |
Input ports. | |
OutPort | OutPortA |
Output ports. | |
The main robot class.
NXT.Robot.Robot | ( | ) |
The constructor.
void NXT.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 NXT.Robot.Connect | ( | string | port_name | ) |
Connect to the robot.
port_name | serial port name |
void NXT.Robot.Disconnect | ( | ) |
Disconnect from the robot.
void NXT.Robot.Send | ( | byte[] | command, |
out byte[] | response | ||
) |
Generic send command.
void NXT.Robot.Send | ( | byte[] | command | ) |
Send command without expecting the response.
DeviceInfo NXT.Robot.DeviceInfo |
Device info.
InPort NXT.Robot.InPort1 |
Input ports.
OutPort NXT.Robot.OutPortA |
Output ports.