Pioneer 2TM, 3TM manual HOST-to-AUX Serial Transfers, Encoder Packets, Gripper packets

Page 51

ActivMedia Robotics

For auto-baud, the HOST serial port automatically reverts to its FLASH default baud rate if, after being reset by the HOSTBAUD client command, it does not receive a subsequent and valid client-command packet within 500 milliseconds.

HOST-to-AUX Serial Transfers

Use the client-side TTY2 command #42 with a string argument to have that string sent out the AUX1 port to the attached serial device, such as a robotic camera. Similarly, use the TTY3 command #66 to send a string argument to the AUX2 port.

AROS also maintains two circular buffers for incoming serial data from the AUX1 and AUX2 ports. On request, AROS sends successive portions of the buffers to your client via the HOST port in the respective SERAUXpac (type = 176; 0xB0) and SERAUX2pac (type = 184; 0xB8) SIPs. Use the GETAUX command 43 for AUX1 or GETAUX2 command number 67 for AUX2. Use the integer argument value of zero to flush the contents of the respective buffer. Use an argument value of up to 253 bytes to have AROS wait to collect the requested number of incoming AUX-port serial bytes and them send them in the respective SERAUXpac or SERAUX2pac SIP.

ENCODER PACKETS

Issue the ENCODER command #19 with an argument of one for a single, or with an argument value of two or more for a continuous stream of ENCODERpac (type 144; 0x90) SIPs. Discontinue the packets with the ENCODER command #19 with an argument of zero.

Table 9. ENCODERpac SIP contents

Header

integer

Exactly 0xFA, 0xFB

Byte Count

byte

Number of data bytes + 2 (checksum)

Left Encoder

integer

Least significant, most significant portion of the

 

integer

current accumulated encoder counts from the left wheel

Right Encoder

integer

Least significant, most significant portion of the

 

integer

current accumulated encoder counts from the left wheel

Checksum

integer

Checksum for packet integrity

Gripper packets

AROS controls the Gripper accessory for the Pioneer and Performance PeopleBot robots. The client sends commands to the Gripper servers and gets Gripper status information from the standard SIP. Please consult the respective manuals for details.

Table 10. GRIPPERpac packet contents

HEADER

int

Exactly 0xFA, 0xFB

BYTE COUNT

byte

Number of data bytes + 2 (checksum)

TYPE

byte

Packet type = 0xE0

HASGRIPPER

byte

Gripper type: 0=none; 1=User; 2=PeopleBot

GRIP_STATE

byte

See nearby Table

GRASP_TIME

byte

MS time controls grasping pressure

CHECKSUM

integer

Computed checksum

AROS supports a GRIPPERpac (type=224; 0xE0) packet type and related GRIPREQUEST P2OS command #37 to retrieve setup and status information from the servers.

Normally disabled, your client program may request one or a continuous stream (command argument > one) of Gripper packets. Send GRIPREQUEST with the argument value zero to stop continuous packets.

45

Image 51
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