RobotLib  1
A set of software wrappers for Rovio, Roomba and NXT robots written in C#.
 All Classes Namespaces Functions Variables Enumerations Properties Pages
Classes | Public Member Functions | Public Attributes | List of all members
NXT.Robot Class Reference

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.
 

Detailed Description

The main robot class.

Constructor & Destructor Documentation

NXT.Robot.Robot ( )

The constructor.

Member Function Documentation

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.

Parameters
port_nameserial 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.

Member Data Documentation

API.API NXT.Robot.API

API commands.

DeviceInfo NXT.Robot.DeviceInfo

Device info.

InPort NXT.Robot.InPort1

Input ports.

OutPort NXT.Robot.OutPortA

Output ports.


The documentation for this class was generated from the following file: