Pioneer 2TM, 3TM manual Autoconfiguration SYNC2, Opening the Servers-OPEN, Keeping the Beat-PULSE

Page 43

ActivMedia Robotics

Autoconfiguration (SYNC2)

AROS automatically sends robot configuration information back to the client following the last synchronization packet (SYNC2). The configuration values are three NULL- terminated strings that comprise the robot’s FLASH-stored name, class, and subclass. You may uniquely name your ActivMedia robot with the FLASH configuration tool we provide. The class and subclass are constants normally set at the factory and not changed thereafter. (See next chapter for details.)

The class string typically is Pioneer. The subclass depends on your robot model; P2D8 or P2AT8, for example. Clients may use these identifying strings to self-configure their own operating parameters. ARIA, for instance, loads and uses the robot’s related parameters file found in the special Aria/params directory.

Opening the Servers—OPEN

Once you’ve established a connection with AROS, your client should send the OPEN command #1 (no argument; 0xFA, 0xFB, 0x03, 0x01, 0x00, 0x01) to the server, which causes the ActivMedia robot controller to perform a few housekeeping functions, start its various servers, such as for the sonar and motor controllers, listen for client commands, and begin transmitting server information to the client.

Note that once connected, your robot's motors are disabled, regardless of their state when last connected. To enable the motors after starting a connection, you must either do it manually (press the black MOTORS/TEST button) or have your client send an ENABLE client command #4 with an integer argument of 1 (0xFA, 0xFB, 0x06, 0x04, 0x3B, 0x01, 0x00, 0x05, 0x3B).

Keeping the Beat—PULSE

A safety watchdog expects that, once connected, your robot’s controller receives at least one communication packet from the client every watchdog seconds (default is two). Otherwise, it assumes the client-server connection is broken and stops the robot.

Some clients—ARIA-based ones, for instance—use the good practice of sending a PULSE command #0 (no argument; 0xFA, 0xFB, 0x03, 0x00, 0x00, 0x00) just after opening the AROS servers. And if your client application will be otherwise distracted for some time, periodically issue the PULSE command to let your robot server know that your client is indeed alive and well. It has no other effect.

If the robot shuts down due to lack of communication with the client, it will revive upon receipt of a client command and automatically accelerate to the last-specified speed and heading setpoints.

Closing the Connection—CLOSE

To close the client-server connection, which automatically disables the motors and other server functions like sonar, simply issue the client CLOSE command #2 (no argument; 0xFA, 0xFB, 0x03, 0x02, 0x00, 0x02).

Once connected, send the ENABLE command

or press the white MOTORS button on the User Control Panel

to enable your robot’s motors.

37

Image 43
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 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 Drive Self-Test Install BatteriesClient-Server Communications Starting UP Client and ServerIpthru 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 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 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 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 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 Batteries Maintenance & RepairTire Inflation Drive LubricationAutomated Docking/Charging System Alternative Battery ChargersTightening 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 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