Pioneer 2TM, 3TM manual Position Integration, Enable/Disabling Sonar, Polling Sequence and Rate

Page 47

ActivMedia Robotics

Consequently, we typically use a minimum value for Ki in the range of 0 to 10 for lightly to heavily loaded robots respectively.

Position Integration

ActivMedia robots, including Pioneer 2s and 3s, track their position and orientation based on dead-reckoning from wheel motion derived from encoder readings. The robot maintains its internal coordinate position in platform-dependent units, as reported in the standard SIP (Xpos, Ypos, and Thpos).

Be aware that with the simulator as well as with real robots, registration between external and internal coordinates deteriorates rapidly with movement, due to gearbox play, wheel imbalance and slippage, and many other real-world factors. You can rely on the dead-reckoning ability of the robot for just a short range—on the order of several meters and one or two revolutions, depending on the surface. Carpets tend to be worse than hard floors.

Also, moving either too fast or too slow tends to exacerbate the absolute position errors. Accordingly, consider the robot’s dead-reckoning capability as a means of tying together sensor readings taken over a short period of time, not as a method of keeping the robot on course with respect to a global map.

The orientation commands HEAD and DHEAD turn the robot with respect to its internal dead-reckoned angle. On start-up, the robot is at the origin (0,0), pointing toward the positive X-axis at 0 degrees. Absolute angles vary between 0 and 359.

You may reset the internal coordinates to 0,0,0 with the SETO command #7.

SONAR

When connected with and opened by the client, AROS automatically begins firing your robot’s sonar, one disc each simultaneously for each array, as initially sequenced and enabled in your robot’s FLASH parameters. The sonar servers also begin sending the sonar-ranging results to the client via the standard SIP.

Enable/Disabling Sonar

Use the SONAR client command #28 to enable or disable all or individual sonar arrays. Set ("1") bit zero of the SONAR argument to enable or reset it ("0") to disable the sonar pinging. Set argument bits two through four to an individual array number one through four to enable or disable only that array. Array zero, the form of the P2OS command, affects all the arrays at once.

For example, an argument value of one enables all the sonar arrays, whereas an argument value of six silences array number three. Monitor the status of the sonar arrays in the FLAGS integer of the standard SIP.

Polling Sequence and Rate

Each array’s sonar fire at a rate and in the sequence defined in your robot’s FLASH parameters. (Consult the next chapter on how to change the FLASH settings.) Use the sonar POLLING command #3 to have your client change the firing sequence, and the SONAR_CYCLE command #48 to change the rate. The changes persist until you reset the controller or restart the client-server connection.

The POLLING command string argument consists of a sequence of sonar numbers one through 32. Sonar numbers one through eight get added to the polling sequence for

41

Image 47
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 ConditionsDOCKING/CHARGING System Manual Operation Robot Power OFFManual Operation Robot Power and Systems on Client-server connection options Radio Controls and AccessoriesComputer Control Panel Onboard PCPC Networking Operating the Onboard PCUPS and Genpowerd Safety Aros Watchdogs Quick Start Preparative AssemblyInstall Aria Drive Self-Test Install BatteriesClient-Server Communications Starting UP Client and ServerIpthru Demo Startup OptionsOperating the Aria Demonstration Client Successful ConnectionProper Connections DisconnectingQuickstart Troubleshooting 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 PacketsChanging Baud Rates and Autobauding CONFIGpac and Config CommandSerial Port Communications Gripper packets HOST-to-AUX Serial TransfersEncoder 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 ArosChanging Parameters Configuring Aros Operating ParametersInteractive Commands PID Parameters Save Your WorkKeyword 0056 0057 0060 0034 Ticksmm and RevcountBumpers Stallval and StallcountUpdating and Reconfiguring Aros Batteries Maintenance & RepairTire Inflation Drive LubricationTightening the AT Drive Belt Alternative Battery ChargersAutomated Docking/Charging System 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 OD7User Control Interface Bumper PortsMotors, Encoders, and IR Sensors Joystick Port Appendix B Pioneer 3 and 2-PLUS MOTOR-POWER BoardConfiguration for Current and Temperature Sensing Radio, Auxiliary, and User Power Connectors Controller Power and InterfaceGND IR Signal and PowerAppendix C Radio Modem SettingsAppendix D Serial Ethernet SettingsConsole mode Peer-to-Peer Networking WebpageAppendix E SpecificationsControls and Ports Warranty & Liabilities Columbia Drive Amherst, NH 603