Pioneer 2TM, 3TM manual Accessory Commands and Packets, Packet Processing

Page 49

ActivMedia Robotics

Normally enabled (default was disabled in P2OS), change E_STALL by sending the AROS command #56. With argument of zero, E_STALL gets disabled. An argument value of one re-enables E_STALL.

ACCESSORY COMMANDS AND PACKETS

Several types of alternative server information packets (SIPs) come with AROS to better support the ActivMedia Robotics community. On request from the client by a related AROS command, the AROS server packages and sends one or a continuous stream of information packets to the client over the HOST serial communication line. Extended packets get sent immediately after the standard SIP that AROS sends to your client every SIP milliseconds (typically 100).22

The standard SIP takes priority and gets sent as soon as the communication port is free and the cycle timer expires. So you may have to adjust the communications baud rate to accommodate all data packets in the allotted cycle time, or some packets may never get sent.

Packet Processing

Identical with the standard SIP, all AROS server information packets get encapsulated with a header (0xFA, 0xFB), byte count, packet type byte, and trailing checksum. It is up to the client to parse the packets, sorted by type for content. Please consult the respective client application programming manuals for details.

ARIA, for example, comes with a framework for packet parsing and has an internal parser for the PSOS/P2OS/AROS packet type 0x3S (S=0-2; aka “standard” SIP), as well as for some of the extended packets we describe in this section.

Table 8. CONFIGpac contents (AROS v1.5 and later)

LABEL

DATA

DESCRIPTION

HEADER

int

Common packet header = 0xfAFB

TYPE

byte

IDs ENCODERpac = 0x20

BYTE COUNT

byte

Number of following data bytes

ROBOT TYPE

str

Typically “Pioneer”

SUBTYPE

str

Identifies the ActivMedia robot model; e.g. “p3dx”,

SERIALNUM

str

Serial number for the robot.

4MOTS

byte

Antiquated (=1 if AT with P2OS)

ROTVELTOP

int

Maximum

rotational velocity; deg/sec

TRANSVELTOP

int

Maximum

translation speed; mm/sec

ROTACCTOP

int

Maximum

rotation (de)acceleration; deg/sec2

TRANSACCTOP

int

Maximum

translational (de)acceleration; mm/sec2

PWMMAX

int

Maximum

motor PWM (500=fully on).

NAME

str

Unique name given to your robot.

SIP

byte

Server information packet cycle time

HOSTBAUD

byte

Baud rate for client-server HOST serial: 0=9.6k, 1=19.2k,

 

 

2=38.4k,

3=56.8k, 4=115.2k.

AUXBAUD

byte

Baud rate for AUX serial port 1; see HostBaud

GRIPPER

int

0 if no

Gripper; else 1

FRONT SONAR

int

1 if robot has front sonar array enabled, else 0

REAR SONAR

byte

1 if robot has rear sonar enabled, else 0

LOWBATTERY

int

In 1/10

volts; alarm activated when battery charge falls

 

 

below this value.

REVCOUNT

int

Current

number of differential encoder ticks for a 360

 

 

degree revolution of the robot.

WATCHDOG

int

Ms time

before robot automatically stops if it has not

22You may have to adjust the HOST serial baud rate to accommodate the additional communications traffic.

43

Image 49
Contents Pioneer H8-Series Operations Manual Page Important Safety Instructions Table of Contents Operating the Aria Demonstration Client Appendix C Robot Package IntroductionBasic Components all shipments Optional Components and Attachments partial listAdditional Resources User-Supplied Components / System RequirementsSupport Website NewsgroupsSupport@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 Maintenance and Standalone Modes Server ModeModes of Operation Joydrive and Self Test ModesPhysical 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 and Systems on Manual Operation Robot Power OFFDOCKING/CHARGING System Client-server connection options Radio Controls and AccessoriesComputer Control Panel Onboard PCPC Networking Operating the Onboard PCUPS and Genpowerd Safety Aros Watchdogs Install Aria Preparative AssemblyQuick Start Client-Server Communications Install BatteriesStarting UP Client and Server Drive Self-TestIpthru Demo Startup OptionsOperating the Aria Demonstration Client Successful ConnectionQuickstart Troubleshooting DisconnectingProper 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 Opening the Servers-OPEN Autoconfiguration SYNC2Keeping the Beat-PULSE Closing the Connection-CLOSERotation Motion CommandsPlatform Dependent and Independent Variables ActivMedia Robots in MotionInternal coordinate system PID ControlsPosition Integration Enable/Disabling SonarSonar Polling Sequence and Rate11-15 Reserved Stalls and EmergenciesPacket Processing Accessory Commands and PacketsSerial Port Communications CONFIGpac and Config CommandChanging Baud Rates and Autobauding Encoder Packets HOST-to-AUX Serial TransfersGripper packets TCM2 SoundsHeading Correction Gyro Onboard PCUser I/O Input Output I/OIO packets Bumper and IR I/ODOCKING/CHARGING System I/O Expansion I/ODigital Port Controls Docking/Charging ServersCharge State Overcharge ~Volts Charge current ID7 Monitoring the Recharge CycleActivMedia Robotics Operating System Where to GET Aros Software Updating & Reconfiguring ArosAros Maintenance Mode Simple Aros UpdatesStarting Aroscf Updating and Reconfiguring ArosInteractive Commands Configuring Aros Operating ParametersChanging Parameters PID Parameters Save Your WorkKeyword 0056 0057 0060 0034 Ticksmm and RevcountBumpers Stallval and StallcountUpdating and Reconfiguring Aros Tire Inflation Maintenance & RepairDrive Lubrication BatteriesAutomated Docking/Charging System Alternative Battery ChargersTightening the AT Drive Belt Removing the Nose Getting InsideFactory Repairs Opening the DeckAppendix a Power ConnectorH8S Ports & Connections H8S MicrocontrollerUser I/O, Gripper, Docking/Charging Port Serial PortsExpansion I/O Bus OD7Motors, 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 Radio, Auxiliary, and User Power Connectors Controller Power and InterfaceGND IR Signal and PowerAppendix C Radio Modem SettingsConsole mode Serial Ethernet SettingsAppendix D Peer-to-Peer Networking WebpageAppendix E SpecificationsControls and Ports Warranty & Liabilities Columbia Drive Amherst, NH 603