Pioneer 2TM, 3TM manual Server Information Packets, Multiply by DistConvFactor‡

Page 39

ActivMedia Robotics

SERVER INFORMATION PACKETS

Like its PSOS and P2OS predecessors, AROS automatically and repeatedly sends a packet of information over its HOST serial port to a connected client. The standard AROS SIP informs the client about a number of operating states and readings, using the order and data types described in the nearby Table.

Table 3. Standard Server Information Packet

NAME

VALUE

DESCRIPTION

HEADER

int

 

Exactly 0xFA, 0xFB

BYTE COUNT

byte

 

Number of data bytes + 2 (checksum), not including header or

 

 

 

byte-count bytes

STATUS/PACKET

0x3S =

 

Motors status

 

 

 

 

TYPE

2

 

Motors stopped

 

3

 

Robot moving

XPOS

int

 

Wheel-encoder integrated coordinates; platform-dependent units;

 

 

 

multiply by DistConvFactor

YPOS

int

 

to convert to millimeters.

THPOS

sint

 

Orientation in platform-dependent units—multiply by

 

 

 

AngleConvFactorfor degrees.

L VEL

sint

 

Wheel velocities in mm/sec (VelConvFactor= 1.0)

R VEL

sint

 

 

 

 

 

 

BATTERY

byte

 

Battery charge in tenths of volts (101 = 10.1 volts, for example)

STALL AND

int

 

Motor stall and bumper indicators. Bit 0 is the left wheel stall

BUMPERS

 

 

indicator, set to 1 if stalled. Bits 1-7 correspond to the first bumper

 

 

 

I/O digital input states (accessory dependent). Bit 8 is the right

 

 

 

wheel stall, and bits 9-15 correspond the second bumper I/O

 

 

 

states, also accessory and application dependent.

CONTROL

sint

 

Setpoint of the server’s angular position servo—multiply by

 

 

 

AngleConvFactorfor degrees

FLAGS

sint

 

Bit 0 motors status; bits 1-4 sonar array status; bits 5,6 M-STOP;

 

 

 

bits 7,8 ledge-sense IRs; bit 9 joystick button; bit 10 auto—

 

 

 

charger power-good.

COMPASS

byte

 

Electronic compass accessory heading in 2-degree units

SONAR COUNT

byte

 

Number of new sonar readings included in SIP

NUMBER

byte

 

If Sonar Count>0, is sonar disc number 0-31; reading follows

RANGE

int

 

Sonar range value; multiply by RangeConvFactor

REST OF THE SONAR READINGS

 

 

 

 

GRIP_STATE

byte

Gripper state byte.

ANPORT

byte

Selected analog port number 1-5

ANALOG

byte

User Analog input (0-255=0-5 VDC) reading on selected port

DIGIN

byte

Byte-encoded User I/O digital input

 

 

 

DIGOUT

byte

Byte-endcoded User I/O digital output

CHECKSUM

integer

Packet-integrity checksum

Client-side data-conversion factor. Consult the ARIA parameter file your robot. Explicitly, a signed integer.

AROS also supports several additional SIP types. These include an “alternative” SIP that currently is not supported by Saphira or ARIA.15 See following sections in this chapter for a description of the extended SIP types.

15Indeed, if enabled, the alternative SIP apparently will “break” the client software. Read carefully.

33

Image 39
Contents Pioneer H8-Series Operations Manual Page Important Safety Instructions Table of Contents Operating the Aria Demonstration Client Appendix C Optional Components and Attachments partial list IntroductionRobot Package Basic Components all shipmentsNewsgroups User-Supplied Components / System RequirementsAdditional Resources Support WebsiteSupport@activmedia.com SupportPioneer Reference Platform What Is Pioneer?Hitachi H8S-BASED Microcontroller Plus MOTOR-POWER BoardHttp//robots.activmedia.com Client SoftwarePioneer Legacy Supporting SoftwarePioneer 2 and PeopleBot Pioneer 1 and ATActivMedia Robotics Joydrive and Self Test Modes Server ModeMaintenance and Standalone Modes Modes of OperationPhysical Characteristics Specifications & ControlsMotor Stop Button Main ComponentsP3-DX User Control Panel User Control PanelSonar Arrays with Gain Adjustment Body, Nose, and Accessory PanelsMotors, Wheels, and Position Encoders Batteries and PowerRecharging Battery Indicators and Low Voltage ConditionsManual Operation Robot Power OFF Manual Operation Robot Power and Systems onDOCKING/CHARGING System Client-server connection options Radio Controls and AccessoriesComputer Control Panel Onboard PCPC Networking Operating the Onboard PCUPS and Genpowerd Safety Aros Watchdogs Preparative Assembly Install AriaQuick Start Drive Self-Test Install BatteriesClient-Server Communications Starting UP Client and ServerIpthru Demo Startup OptionsOperating the Aria Demonstration Client Successful ConnectionDisconnecting Quickstart TroubleshootingProper Connections SRIsim OFFJoydrive and Self-Tests Joydrive ModeEngaging SELF-TESTS CLIENT-SERVER Communication Packet Protocols ActivMedia Robotics Operating SystemPacket Checksum Packet ErrorsMultiply by DistConvFactor‡ Server Information PacketsBefore Client Connection Client CommandsP2OS CLIENT-SERVER Connection Closing the Connection-CLOSE Autoconfiguration SYNC2Opening the Servers-OPEN Keeping the Beat-PULSERotation Motion CommandsPlatform Dependent and Independent Variables ActivMedia Robots in MotionInternal coordinate system PID ControlsPolling Sequence and Rate Enable/Disabling SonarPosition Integration Sonar11-15 Reserved Stalls and EmergenciesPacket Processing Accessory Commands and PacketsCONFIGpac and Config Command Serial Port CommunicationsChanging Baud Rates and Autobauding HOST-to-AUX Serial Transfers Encoder PacketsGripper packets TCM2 SoundsHeading Correction Gyro Onboard PCUser I/O Input Output I/OIO packets Bumper and IR I/ODocking/Charging Servers Expansion I/ODOCKING/CHARGING System I/O Digital Port ControlsCharge State Overcharge ~Volts Charge current ID7 Monitoring the Recharge CycleActivMedia Robotics Operating System Simple Aros Updates Updating & Reconfiguring ArosWhere to GET Aros Software Aros Maintenance ModeStarting Aroscf Updating and Reconfiguring ArosConfiguring Aros Operating Parameters Interactive CommandsChanging Parameters PID Parameters Save Your WorkKeyword 0056 0057 0060 0034 Ticksmm and RevcountBumpers Stallval and StallcountUpdating and Reconfiguring Aros Batteries Maintenance & RepairTire Inflation Drive LubricationAlternative Battery Chargers Automated Docking/Charging SystemTightening the AT Drive Belt Removing the Nose Getting InsideFactory Repairs Opening the DeckH8S Microcontroller Power ConnectorAppendix a H8S Ports & ConnectionsUser I/O, Gripper, Docking/Charging Port Serial PortsExpansion I/O Bus OD7Bumper Ports Motors, Encoders, and IR SensorsUser Control Interface Joystick Port Pioneer 3 and 2-PLUS MOTOR-POWER Board Configuration for Current and Temperature SensingAppendix B Radio, Auxiliary, and User Power Connectors Controller Power and InterfaceGND IR Signal and PowerAppendix C Radio Modem SettingsSerial Ethernet Settings Console modeAppendix D Peer-to-Peer Networking WebpageAppendix E SpecificationsControls and Ports Warranty & Liabilities Columbia Drive Amherst, NH 603