Pioneer 3TM, 2TM manual Client Commands, Before Client Connection

Page 40

ActivMedia Robotics Operating System

CLIENT COMMANDS

AROS has a structured command format for receiving and responding to directions from a client for control and operation of your ActivMedia robot or the simulator. Client commands are comprised of a one-byte command number optionally followed, if required by the command, by a one-byte description of the argument type and then the argument value.

Table 4. AROS/P2OS/PSOS client command packet protocol

COMPONENT

BYTES

VALUE

DESCRIPTION

 

 

 

 

HEADER

2

0xFA, 0xFB

Packet header; same for client and server

BYTE COUNT

1

N

Number of command/argument bytes plus

 

 

 

Checksum’s two bytes, but not including Byte Count

 

 

 

itself or the header bytes. Maximum of 249.

COMMAND

1

0 - 255

Client command number;

NUMBER

 

 

see Table 7.

ARGUMENT

1

0x3B or

Required data type of command argument:

TYPE

 

0x1B or

positive integer,

 

 

0x2B

negative or absolute integer,

 

 

 

or string (ARGSTR)

ARGUMENT

n

data

Command argument; always 2-byte integer or string

 

 

 

containing length prefix

CHECKSUM

2

computed

Packet integrity checksum

Table 5. AROS/P2OS/PSOS command set

COMMAND

#

ARGS

DESCRIPTION

AROS

P2OS

PSOS

 

 

 

Before Client Connection

 

 

 

SYNC0

0

none

Start connection. Send in sequence. AROS echoes

1.0

1.0

3.x

SYNC1

1

none

synchronization commands back to client, and

 

 

 

SYNC2

2

none

robot-specific autosynchronization after SYNC2.

 

 

 

 

 

 

After Established Connection

 

 

 

PULSE

0

none

Resets server watchdog

1.0

1.0

3.x

OPEN

1

none

Starts the AROS servers

1.0

1.0

3.x

CLOSE

2

none

Close servers and client connection

1.0

1.0

3.x

POLLING

3

string

Change sonar polling sequence (see text)

1.0

1.0

3.9

ENABLE

4

int

1=enable; 0=disable the motors

1.0

1.0

SETA

5

sint

Translational acceleration, if positive, or

1.0

1.0

 

 

 

 

deceleration, if negative; mm/sec/sec

 

 

SETV

6

int

Sets maximum translational velocity; mm/sec

1.0

1.0

4.8

SETO

7

none

Resets local position to 0,0,0 origin

1.0

1.0

3.x

MOVE

8

sint

Translate (+) forward or (-) back mm distance

1.0

1.0

ROTATE

9

sint

Rotate (+) counter- or (-) clockwise degrees/sec

1.0

1.0

SETRV

10

int

Sets maximum rotational velocity; degrees/sec

1.0

1.0

4.8

VEL

11

sint

Translate at mm/sec forward (+) or backward (-)

1.0

1.0

3.x

HEAD

12

sint

Turn to absolute heading; ±degrees (+ = ccw )

1.0

1.0

4.2

DHEAD

13

sint

Turn relative to current heading; (+) counter- or

1.0

1.0

3.x

 

 

 

(–) clockwise degrees

 

 

 

SAY

15

string

As many as 20 pairs of duration (20 ms

1.0

1.0

4.2

 

 

 

increments) /tone (half-cycle) pairs

 

 

 

CONFIG

18

none

Request configuration SIP

1.0

1.4

ENCODER

19

int

Request one (1), a continuous stream (>1), or stop

1.0

1.4

 

 

 

(0) encoder SIPs

 

 

 

RVEL

21

sint

Rotate at (+) counter- or (–) clockwise;

1.0

1.0

4.2

 

 

 

degrees/sec

 

 

 

DCHEAD

22

sint

Heading setpoint relative to last setpoint;

1.0

 

 

34

Image 40
Contents Pioneer H8-Series Operations Manual Page Important Safety Instructions Table of Contents Operating the Aria Demonstration Client Appendix C Introduction Robot PackageBasic Components all shipments Optional Components and Attachments partial listUser-Supplied Components / System Requirements Additional ResourcesSupport Website NewsgroupsSupport Support@activmedia.comWhat Is Pioneer? Pioneer Reference PlatformPlus MOTOR-POWER Board Hitachi H8S-BASED MicrocontrollerClient Software Http//robots.activmedia.comSupporting Software Pioneer LegacyPioneer 1 and AT Pioneer 2 and PeopleBotActivMedia Robotics Server Mode Maintenance and Standalone ModesModes of Operation Joydrive and Self Test ModesSpecifications & Controls Physical CharacteristicsMain Components Motor Stop ButtonUser Control Panel P3-DX User Control PanelBody, Nose, and Accessory Panels Sonar Arrays with Gain AdjustmentBatteries and Power Motors, Wheels, and Position EncodersBattery Indicators and Low Voltage Conditions RechargingManual Operation Robot Power and Systems on Manual Operation Robot Power OFFDOCKING/CHARGING System Radio Controls and Accessories Client-server connection optionsOnboard PC Computer Control PanelOperating the Onboard PC PC NetworkingUPS and Genpowerd Safety Aros Watchdogs Install Aria Preparative AssemblyQuick Start Install Batteries Client-Server CommunicationsStarting UP Client and Server Drive Self-TestDemo Startup Options IpthruSuccessful Connection Operating the Aria Demonstration ClientQuickstart Troubleshooting DisconnectingProper Connections OFF SRIsimJoydrive Mode Joydrive and Self-TestsEngaging SELF-TESTS ActivMedia Robotics Operating System CLIENT-SERVER Communication Packet ProtocolsPacket Errors Packet ChecksumServer Information Packets Multiply by DistConvFactor‡Client Commands Before Client ConnectionP2OS CLIENT-SERVER Connection Autoconfiguration SYNC2 Opening the Servers-OPENKeeping the Beat-PULSE Closing the Connection-CLOSEMotion Commands RotationActivMedia Robots in Motion Platform Dependent and Independent VariablesPID Controls Internal coordinate systemEnable/Disabling Sonar Position IntegrationSonar Polling Sequence and RateStalls and Emergencies 11-15 ReservedAccessory Commands and Packets Packet ProcessingSerial Port Communications CONFIGpac and Config CommandChanging Baud Rates and Autobauding Encoder Packets HOST-to-AUX Serial TransfersGripper packets Sounds TCM2Onboard PC Heading Correction GyroInput Output I/O User I/OBumper and IR I/O IO packetsExpansion I/O DOCKING/CHARGING System I/ODigital Port Controls Docking/Charging ServersMonitoring the Recharge Cycle Charge State Overcharge ~Volts Charge current ID7ActivMedia Robotics Operating System Updating & Reconfiguring Aros Where to GET Aros SoftwareAros Maintenance Mode Simple Aros UpdatesUpdating and Reconfiguring Aros Starting AroscfInteractive Commands Configuring Aros Operating ParametersChanging Parameters Save Your Work PID ParametersKeyword Ticksmm and Revcount 0056 0057 0060 0034Stallval and Stallcount BumpersUpdating and Reconfiguring Aros Maintenance & Repair Tire InflationDrive Lubrication BatteriesAutomated Docking/Charging System Alternative Battery ChargersTightening the AT Drive Belt Getting Inside Removing the NoseOpening the Deck Factory RepairsPower Connector Appendix aH8S Ports & Connections H8S MicrocontrollerSerial Ports User I/O, Gripper, Docking/Charging PortOD7 Expansion I/O BusMotors, Encoders, and IR Sensors Bumper PortsUser Control Interface Joystick Port Configuration for Current and Temperature Sensing Pioneer 3 and 2-PLUS MOTOR-POWER BoardAppendix B Controller Power and Interface Radio, Auxiliary, and User Power ConnectorsIR Signal and Power GNDRadio Modem Settings Appendix CConsole mode Serial Ethernet SettingsAppendix D Webpage Peer-to-Peer NetworkingSpecifications Appendix EControls and Ports Warranty & Liabilities Columbia Drive Amherst, NH 603