Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
SYSTEMS AND METHODS FOR CONTROLLING A LEGGED ROBOT BASED ON RATE OF CHANGE OF ANGULAR MOMENTUM
Document Type and Number:
WIPO Patent Application WO/2005/098733
Kind Code:
A3
Abstract:
Systems and methods are presented that use the rate of change of a legged robot’s centroidal angular momentum (H G) in order to maintain or improve the robot’s balance. In one embodiment, a control system determines the current value of H G, compares this value to a threshold value, and determines an instruction to send to the robot. Executing the instruction causes the robot to remain stable or become more stable. Systems and methods are also presented that use a value derived from H G in order to maintain or improve the robot’s balance. In one embodiment, a control system determines the location of the Zero Rate of change of Angular Momentum (ZRAM) point (A), determines the distance between A and the location of the center of pressure of the resultant ground force, compares this value to a threshold value, and determines an instruction to send to the robot.

Inventors:
GOSWAMI AMBARISH (US)
KALLEM VINUTHA (US)
Application Number:
PCT/US2005/010887
Publication Date:
January 04, 2007
Filing Date:
March 31, 2005
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
HONDA MOTOR CO LTD (JP)
GOSWAMI AMBARISH (US)
KALLEM VINUTHA (US)
International Classes:
G06F19/00; B25J13/00; B62D57/032; G05B19/04; B25J9/00
Foreign References:
US5357433A1994-10-18
US20050001575A12005-01-06
Other References:
WONG T.C.F. ET AL.: "Stabilization of Biped Dynamic Walking Using Gyroscopic Couple", IEEE INTERNATIONAL JOINT SYMPOSIA, November 1996 (1996-11-01), pages 102 - 108, XP010205787
HARDT M. ET AL.: "Increasing Stability In Dynamic Gaits Using Numerical Optimization", IFAC WORLD CONGRESS, July 2002 (2002-07-01), pages 1636 - 1641, XP003006520
Attorney, Agent or Firm:
TRUESDALE, Sabra-Anne et al. (801 California Street Mountain View, CA, US)
Download PDF:
Claims:
WHAT IS CLAIMED IS: 1. A method for determining a stability measure of a legged robot, the method comprising calculating the rate of change of the robot's centroidal angular momentum ( HG ) in accordance with the equation:
H G= GP x R, wherein G represents a location of a center of mass of the robot, R represents a resultant ground reaction force acting upon the robot, P represents a location of a center of pressure of the resultant ground reaction force, GP represents a vector from G to P, and x represents a vector product operation. 2. The method of claim 1, further comprising determining the location of the center of mass of the robot (G) prior to calculating the rate of change of the robot's centroidal angular momentum ( HG ). 3. The method of claim 2, wherein the robot comprises a plurality of segments, and wherein determining the location of the center of mass of the robot (G) comprises determining a location of a segment. 4. The method of claim 2, wherein the' robot comprises a plurality of segments, and wherein determining the location of the center of mass of the robot (G) comprises determining a mass of a segment. 5. The method of claim 1 , further comprising determining the resultant ground reaction force acting upon the robot (R) prior to calculating the rate of change of the robot's centroidal angular momentum (H G). 6. The method of claim 5, wherein determining the resultant ground reaction force acting upon the robot (R) comprises using a force sensor. 7. A method for determining a stability measure of a legged robot, the robot comprising a plurality of segments, the method comprising calculating the rate of change of the robot's centroidal angular momentum (HG) in accordance with the equation: n H0 = ∑HGl
wherein HGl represents a rate of change of centroidal angular momentum of a segment i, and n represents a number of segments contained in the robot. 8. The method of claim 7, further comprising determining the rate of change of centroidal angular momentum of the segment i (H Gl) prior to calculating the rate of change of the robot's centroidal angular momentum (H0). 9. The method of claim 8, wherein determining the rate of change of centroidal angular momentum of the segment i ( HGl ) comprises calculating the rate of change of centroidal angular momentum of the segment / (HGl ) in accordance with the equation: HGl = OGi x (m&i) + /,α, wherein /, α, represents a linear acceleration of the segment i, O represents a location of an origin of a coordinate system, G, represents a location of a center of mass of the segment /, /, represents a moment of inertia of the segment /, a, represents an angular acceleration of the segment /, OGi represents a vector from O to G,, and x represents a vector product operation. 10. The method of claim 9, further comprising determining the angular acceleration of the segment / (a,) prior to calculating the rate of change of centroidal angular momentum of the segment / ( H0, ). 11. The method of claim 10, wherein determining the angular acceleration of the segment / (a,) comprises using an accelerometer. 12. The method of claim 10, wherein determining the angular acceleration of the segment / (a,) comprises using a position encoder. 13. A method for controlling a legged robot, the method comprising: determining a rate of change of the robot's centroidal angular momentum ( H0 ); determining whether the rate of change of the robot's centroidal angular momentum (H G) exceeds a threshold value; and determining an instruction to send to the robot. 14. The method of claim 13, further comprising determining the threshold value. 15. The method of claim 14, wherein determining the threshold value comprises determining the threshold value responsive to one of a group of factors, the group containing a friction between the robot and a ground, a torque limit of an actuator of the robot, a design parameter of the robot, and an inertial property of the robot. 16. The method of claim 14, wherein determining the threshold value comprises determining a rate of change of a human's centroidal angular momentum. 17. The method of claim 13, wherein the determined instruction causes the robot to enlarge a support polygon. 18. The method of claim 13, wherein the determined instruction causes the robot to enlarge a support polygon, and wherein the enlarged support polygon contains a Zero Rate of change of Angular Momentum point. 19. The method of claim 13, wherein the determined instruction causes the robot to change a location of a center of mass of the robot. 20. The method of claim 13, wherein the determined instruction causes the robot to change a resultant ground reaction force acting upon the robot. 21. A method for controlling a legged robot, the method comprising: determining a location of a Zero Rate of change of Angular Momentum point; determining a distance between the location of the Zero Rate of change of Angular Momentum point and a location of a center of pressure of a resultant ground force; and determining an instruction to send to the robot. 22. The method of claim 21, wherein determining the location of the Zero Rate of change of Angular Momentum point comprises projecting a center of mass of the robot along the resultant ground force.
Description:
Systems and Methods for Controlling a Legged Robot Based on Rate of Change of Angular Momentum

Inventors: Ambarish Goswami Vinutha Kallem

CROSS-REFERENCE TO RELATED APPLICATION [0001] This application claims priority from the following U.S. provisional patent application, which is hereby incorporated by reference: Serial No. 60/558,367, filed on March 31, 2004, entitled "Rate of Change of Angular Momentum and Balance Maintenance of Biped Robots."

BACKGROUND OF THE INVENTION 1. Field of the Invention [0002] The present invention relates to controlling a legged robot so that the robot does not fall. More particularly, the present invention relates to controlling the robot based on the rate of change of the robot's angular momentum. 2. Description of Background Art [0003] In order to engage in useful activities, a legged robot should be able to maintain its balance. The term "balance" generally refers to the preservation of overall rotational stability or equilibrium. If a robot's overall rotational equilibrium is lost, the robot can fall. [0004] Control systems have been developed that instruct robots to take certain actions in an attempt to maintain or improve the robots' balance. A control system is usually based on a "stability criterion," which is a physical quantity that represents a robot's rotational equilibrium (or lack thereof). The value of the stability criterion varies based on the robot's state, and there is usually a range of values that indicate stability. If a robot's stability criterion does not fall within this goal range, the control system instructs the robot to take certain actions. These actions are meant to change the robot's state such that the value of the stability criterion approaches (or reaches) the goal range. By continuously monitoring the stability criterion, the controller can cause the robot to maintain or improve its stability over time. [0005] One type of stability criterion is a point on the support surface (e.g., the ground) on which the robot is standing. One such point is the center of pressure (CoP). The CoP is the point of application of the resultant ground reaction force (GRP) underneath the robot's feet. Thus, the CoP exists as long as the robot is not airborne, since at least one of its feet is touching the ground at all times. The location of the CoP can be experimentally measured. In order for the robot to be stable, the CoP should be located within the robot's support polygon and, ideally, at the most central location within the polygon. [0006] In robotics literature, the CoP is sometimes referred to as the zero moment point (ZMP). This literature provides a means to analytically compute (rather than experimentally measure) the location of the CoP/ZMP. The location of the CoP/ZMP is not well-defined when the support surface is non-planar. Although the location of the CoP/ZMP can quantify the stability of a relatively stable robot, it cannot do so for an unstable robot. This is because, in certain cases, the same CoP/ZMP location can correspond to several different states of a robot, and these states can have varying effects on the robot's stability. [0007] Another such point is the foot-rotation indicator (FRI) point. The FRI point is related to the phenomenon of foot rotation and is applicable only during the single support phase of a biped. While, by definition, the CoP cannot leave the support polygon, the FRI point can. When the FRI point is located outside the support polygon, the distance between the FRI point and the support polygon is proportional to the amount of instability. The location of the FRI point is undefined when more than one foot is touching the ground. [0008] What is needed are a stability criterion that overcomes the disadvantages of the previous criteria and a control technique that uses the criterion to maintain or improve a robot's balance.

SUMMARY OF THE INVENTION [0009] Systems and methods are presented that use the rate of change of a legged robot's centroidal angular momentum (HG) in order to maintain or improve the robot's

balance. In one embodiment, a control system determines the current value of HG , compares this value to a threshold value, and determines an instruction to send to the robot. Executing the instruction causes the robot to remain stable or become more stable. [0010] In one embodiment, the current value of HG is determined based on the expression GP x R, where G represents the location of the center of mass of the robot, R represents the resultant ground reaction force (GRF) acting upon the robot, P represents the location of the center of pressure of the resultant GRF, GP represents the vector from G to P, and x represents the vector product operation. [0011] In another embodiment, the robot contains a plurality of segments, and the n current value of HG is determined based on the expression ∑ HGl , where HGl represents the

rate of change of centroidal angular momentum of segment /, and n represents the number of segments contained in the robot. [0012] Several different types of instructions can be sent to the robot. Generally, these instructions cause the robot to change its body position by activating one or more motors. These motors control, for example, the angles of joints between two adjoining segments. A robot can maintain or improve its balance using various strategies. In one embodiment, each strategy attempts to make HG equal zero in a different way. One strategy is to modify the robot's support polygon so that it encompasses the Zero Rate of change of Angular Momentum (ZRAM) point. Another strategy is to move G with respect to P so that R passes through G in its new location G'. Yet another strategy is to change the GRF direction by changing the translational acceleration of the centroid from a to a'. [0013] Systems and methods are also presented that use a value derived from HG in order to maintain or improve the robot's balance. In one embodiment, a control system determines the location of the ZRAM point (A), determines the distance betweenλ and P, compares this value to a threshold value, and determines an instruction to send to the robot. Executing the instruction causes the robot to remain stable or become more stable.

BRIEF DESCRIPTION OF THE DRAWINGS [0014] The invention is illustrated by way of example, and not by way of limitation, in the figures of the accompanying drawings in which like reference numerals refer to similar elements. [0015] FIG. IA illustrates a diagram of a robot that possesses rotational equilibrium, according to one embodiment of the invention. [0016] FIG. IB illustrates a diagram of a robot that does not possess rotational equilibrium, according to one embodiment of the invention. [0017] FIG. 2A illustrates a diagram of a robot that schematically depicts the location of the ZRAM point for a level ground geometry. [0018] FIG. 2B illustrates a diagram of a robot that schematically depicts the location of the ZRAM point for an inclined ground geometry. [0019] FIG. 2C illustrates a diagram of a robot that schematically depicts the location of the ZRAM point for a stairstep ground geometry. [0020] FIG. 2D illustrates a diagram of a robot that schematically depicts the location of the ZRAM point for an uneven ground geometry. [0021] FIG. 3 illustrates a diagram of a robot being acted upon by forces and moments caused by the ground and the environment, according to one embodiment of the invention. [0022] FIG. 4 illustrates a flowchart of a method for controlling a legged robot based on rate of change of angular momentum, according to one embodiment of the invention. [0023] FIG. 5 illustrates an aerial view of a support polygon and a ZRAM point, according to one embodiment of the invention. [0024] FIG. 6 illustrates a block diagram of an apparatus for controlling a legged robot based on rate of change of angular momentum, according to one embodiment of the invention. [0025] FIG. 7 illustrates a more detailed block diagram of the contents of the memory unit in FIG. 6.

DETAILED DESCRIPTION OF THE EMBODIMENTS [0026] In the following description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the invention. It will be apparent, however, to one skilled in the art that the invention can be practiced without these specific details. In other instances, structures and devices are shown in block diagram form in order to avoid obscuring the invention. [0027] Reference in the specification to "one embodiment" or "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment of the invention. The appearances of the phrase "in one embodiment" in various places in the specification are not necessarily all referring to the same embodiment. [0028] Some portions of the detailed descriptions that follow are presented in terms of algorithms and symbolic representations of operations on data bits within a computer memory. These algorithmic descriptions and representations are the means used by those skilled in the data processing arts to most effectively convey the substance of their work to others skilled in the art. An algorithm is here, and generally, conceived to be a self-consistent sequence of steps leading to a desired result. The steps are those requiring physical manipulations of physical quantities. Usually, though not necessarily, these quantities take the form of electrical or magnetic signals capable of being stored, transferred, combined, compared, and otherwise manipulated. It has proven convenient at times, principally for reasons of common usage, to refer to these signals as bits, values, elements, symbols, characters, terms, numbers, or the like. [0029] It should be borne in mind, however, that all of these and similar terms are to be associated with the appropriate physical quantities and are merely convenient labels applied to these quantities. Unless specifically stated otherwise, as apparent from the following discussion, it is appreciated that throughout the description, discussions utilizing terms such as "processing" or "computing" or "calculating" or "determining" or "displaying" or the like, refer to the action and processes of a computer system, or similar electronic computing device, that manipulates and transforms data represented as physical (electronic) quantities within the computer system's registers and memories into other data similarly represented as physical quantities within the computer system memories or registers or other such information storage, transmission, or display devices. [0030] The present invention also relates to an apparatus for performing the operations herein. This apparatus is specially constructed for the required purposes, or it comprises a general-purpose computer selectively activated or reconfigured by a computer program stored in the computer. Such a computer program is stored in a computer readable storage medium, such as, but not limited to, any type of disk including floppy disks, optical disks, CD-ROMs, and magnetic-optical disks, read-only memories (ROMs), random access memories (RAMs), EPROMs, EEPROMs, magnetic or optical cards, or any type of media suitable for storing electronic instructions, and each coupled to a computer system bus. [0031] The algorithms and displays presented herein are not inherently related to any particular computer or other apparatus. Various general-purpose systems are used with programs in accordance with the teachings herein, or more specialized apparatus are constructed to perform the required method steps. The required structure for a variety of these systems will appear from the description below. In addition, the present invention is not described with reference to any particular programming language. It will be appreciated that a variety of programming languages may be used to implement the teachings of the invention as described herein. 1. Rate of Change of Angular Momentum [0032] As discussed above, the term "balance" generally refers to the preservation of overall rotational equilibrium. One way to measure a body's rotation (such as a robot's rotation) is to determine its overall angular position over time. If the angular position changes over time (i.e., if the robot has an angular velocity), then the robot is rotating. While the angular position can be measured relative to any line, in one embodiment, it is measured relative to the gravity line passing through the robot's center of mass (CoM). [0033] When a body (such as a robot) has an overall angular speed, it is tipping over, which causes either spinning (such as in gymnastics, figure skating, or diving) or falling. A body with any non-zero angular speed or angular momentum can fall, even if the body's current angular speed or angular momentum is constant. What causes a fall is a change in angular speed or angular momentum. Hence, a rate of change of angular speed or angular momentum corresponds to a loss of rotational equilibrium. [0034] Newton's second law of motion states that a body's translational (linear) acceleration is determined by the sum of the forces acting upon the body. Similarly, the Newton-Euler equation states that a body's rotational acceleration is determined by the sum of the torques (also called "moments") acting upon the body. This sum is also known as the "resultant external torque" or "resultant external moment." If the resultant external moment on the body (measured relative to the body's CoM) equals zero, then overall rate of change of angular momentum equals zero, and overall rotational stability or equilibrium has been achieved. A moment can arise from any force, such as gravity, contact or interaction with an object (such as, e.g., the ground or an object that is being held), or an unexpected disturbance (such as, e.g., a slippery surface like a floor or an immovable object like a wall). The force can be either a "pure" rotational force or a force with a linear component. [0035] The resultant external moment on a body equals the rate of change of the body's angular momentum. If the resultant external moment is defined relative to the body's CoM (also known as its centroid), then the angular momentum is known as the centroidal angular momentum. If G denotes the body's centroid (CoM), and HG denotes the body's centroidal angular momentum, then HG denotes the rate of change of the body's centroidal angular momentum. Thus, if H0 equals zero, then overall rotational stability or equilibrium has been achieved. [0036] FIGs. IA and IB illustrate diagrams of robots, according to two embodiments of the invention. In each illustrated embodiment, the following conditions are present: 1) the feet of the robot are posed on the same horizontal plane; 2) the robot is interacting with its environment only through its feet (in other words, forces and moments are applied to the robot only at its feet); and 3) the vertical components of these moments do not contribute to rotational instability. These conditions cause the resultant external moment on the robot (measured relative to its CoM) to manifest itself as the resultant ground reaction force (denoted by vector R), which acts at the center of pressure (denoted by point P). Due to the unilaterality of the ground reaction force (GRF), P is always located within the convex hull of the foot support area. In the illustrated embodiments, point G denotes the location of the robot's centroid or center of mass, m denotes the mass of the robot, and vector g denotes the gravity acceleration vector. [0037] If moments are taken about the robot's CoM (G), then H0 - GP x R, (1) where GP denotes a vector from point G to point P and x denotes the vector product operation. Thus, Equation 1 provides a way to determine H0 given the values of G, P, and R when the previously-mentioned conditions are present and when moments are taken about G. Other equations that can be used to determine H0 will be discussed below. These equations can be useful when, for example, the previously-mentioned conditions are not present and/or moments are not taken about G. [0038] Recall that G denotes the robot's center of mass (CoM), also known as its centroid. One way to determine G is to "decompose" the robot into n segments. The mass of each segment, along with the location of its center of mass, can be used to determine G as follows. If m, represents the mass of segment i, and r, is a vector that represents the location of segment z's center of mass, then

G = %r^ > (2)

where G is a vector that represents location G. [0039] For each segment i, m, and r, can be determined as follows: mh which is one of the robot's design parameters, is provided by the robot's manufacturer, usually in the form of a computer-aided design (CAD) model, r, is based on the location of the segment's center of mass relative to the segment's coordinate system and the location of the segment relative to the global coordinate system. The robot's manufacturer provides the location of the segment's center of mass relative to the segment's coordinate system. The initial location of a segment relative to the global coordinate system is measured or determined based on locations of segments proximate to the segment. [0040] A robot made of segments can exist in many different positions based on the angles between adjoining segments. These angles can be determined, for example, by using a position encoder at the joint to measure the angle between each pair of adjoining segments. If the size of each segment is known, then the location of any segment can be determined based on joint angles and the location of one point of the robot body (for example, a point on the robot's foot or pelvis). The robot manufacturer provides the size of each segment. The location of the point is determined, for example, by physically measuring the robot relative to an inertial reference point O. O represents the origin of the coordinate system and can be selected at will. [0041] Recall that R denotes the resultant ground reaction force (GRF), and P denotes the center of pressure (CoP), or point of action, of the GRF. One way to determine the GRF is by using a force-plate, such as is available from Advanced Mechanical Technology, Inc. (AMTI) of Watertown, Massachusetts. The interaction between a legged robot and the ground is through the robot's foot (or feet). A force-plate usually has multiple force sensors embedded in it (e.g., one sensor at each corner of the plate). Each sensor is tri-axial, which means that it measures the forces acting between the foot and the ground in three axes: transverse (X), anteroposterior (Y), and vertical (Z). The sum of all the reactions from the ground (the GRF) is equivalent to the sum of the forces measured by the sensors. P can be determined based on the GRF, the origin (center) of the plate, and the moment caused by the GRF around the origin. The origin is provided in the plate's calibration data sheet, and the other values are provided by the plate itself. [0042] FIG. IA illustrates a diagram of a robot that possesses rotational equilibrium, according to one embodiment of the invention. Note that all forces acting on the robot, namely, vector R and vector g, pass through point G. Thus, their moments (measured relative to G) are equal to zero. Since the resultant external moment equals zero, HG equals zero, and overall rotational equilibrium is maintained. [0043] FIG. IB illustrates a diagram of a robot that does not possess rotational equilibrium, according to one embodiment of the invention. In the illustrated embodiment, vector R, which represents the GRF, does not pass through point G. Thus, its moment (measured relative to G) is non-zero. Since the only other force acting on the robot (namely, gravity) does pass through G (by definition), and thus has a zero moment, the resultant external moment is non-zero. Thus, H0 is non-zero, and overall rotational equilibrium has

not been achieved. Specifically, H0 equals GP x R. (In FIG. IA, H0 also equaled GP x R, but since GP and R were antiparallel, GP x R equaled zero.) In FIG. IB, the non-zero value of GP x R indicates that the robot has a net clockwise moment around G. Thus, the robot will have a tendency to tip over forwards. [0044] Note that GP x R = O implies that GP is parallel to R. GP can be made parallel to R in various ways for a particular robot, as will be discussed below. Consider an imaginary shift of the line of action of/? (the GRF) in order to geometrically satisfy GP x R = O. If the GRF were shifted laterally to act along a different line of action (specifically, one that passed through G), GP and R would be antiparallel, so GP x R would equal zero. Thus, H0 would equal zero, and the robot would be rotationally stable. [0045] This is depicted in FIG. IB, where A is the point of intersection of the ground and the shifted (imaginary) GRF. In other words, A is the location of the (imaginary) center of pressure of a GRF that has been laterally shifted so that its line of action passes through G and, as a result, HG equals zero. Since shifting the GRF to intersect the ground at A results in

H0 equaling zero, A is referred to as the Zero Rate of change of Angular Momentum (ZRAM) point. [0046] The amount of lateral shift of the GRF is equal to PA (the distance from P to A), since P represents the intersection of the ground and the actual GRF, and A represents the intersection of the ground and the shifted GRF. When PA equals zero (i.e., when A is located in the same place as P), then the actual GRF's line of action already passes through G, and the robot is in rotational equilibrium. When PA is non-zero, then the actual GRF's line of action does not pass through G, and the robot is rotationally unstable. [0047] The location of the ZRAM point can be determined by projecting the robot's CoM along the GRF. The actual position of the ZRAM point depends on the geometry of the ground. FIGs. 2A-2D schematically depict the location of the ZRAM point for four different situations. FIG. 2A illustrates a diagram of a robot that schematically depicts the location of the ZRAM point for a level ground geometry. FIG. 2B illustrates a diagram of a robot that schematically depicts the location of the ZRAM point for an inclined ground geometry. FIG. 2C illustrates a diagram of a robot that schematically depicts the location of the ZRAM point for a stairstep ground geometry. FIG. 2D illustrates a diagram of a robot that schematically depicts the location of the ZRAM point for an uneven ground geometry. As before, G denotes the robot's center of mass, R denotes the ground resultant force (GRF), P denotes the center of pressure of the GRF, and A denotes the ZRAM point. Note that shifting the GRF line of action causes the ground to be intercepted at a different point, and this point might not lie within the convex hull of the foot support area. [0048] Recall that H0 - GP x R when the feet of the robot are posed on the same horizontal plane, the robot is subjected to moments only at its feet, the vertical components of these moments do not contribute to rotational instability, and moments are taken about G. Other equations can also be used to determine H0.

[0049] H0 , the rate of change of centroidal angular momentum of a robot, equals the sum of the rates of change of centroidal angular momentum of each segment of the robot. In

other words, for a robot made of n segments, H0 = ∑HOl . Since the rate of change of

centroidal angular momentum of an object (such as a segment of a robot) is equal to the sum of the moments acting upon the body, H01 = ∑ (moments acting on segment /). If the moments are grouped according to their components, then we have the following expression: HGl = ∑ (moments acting on segment i) = ∑ (moments from forces' rotational components + moments from forces' linear components)

∑ (moments from forces' rotational components) + ∑ (moments from forces' linear components). [0050] If a linear force component F is applied to a segment at a point (whose position is defined by the vector r), then the moment arising from the force is equal to the vector product of r and F (i.e., r x F). If F is not known, it can be determined according to Newton's second law of motion: F- ma, where m is the mass of the segment, and a is the linear acceleration of the segment. If the segment is rotating, then the linear acceleration a is equal to the product of a (the angular acceleration) and / (the length of the moment arm). If the segment is treated as a particle existing at its center of mass (G), and O represents the origin of the coordinate system, then r is equal to the vector OG. Thus, a moment arising from a linear force component equals r x F= r x (ma) = OG x (ma) = OG x (mla) [0051] If a torque is applied to a segment then, regardless of its location, the moment arising from the torque is equal to the product of / and a, where / is the moment of inertia at G, and a is the angular acceleration at G. Thus, a moment arising from a rotational force component equals Ia. [0052] Using these equations, we now have HGl = OG1 x (m,/,α,) + I,a,. (3) The robot's design parameters determine the values of m,, I1, G1, and /,, and these values are provided by the manufacturer of the robot. «, can be determined by using an accelerometer placed at the center of mass. Alternatively, α, can be determined by using position encoders at joints. Since a position encoder can be used to measure a joint angle position, taking these measurements over time and taking the first derivative and the second derivative yields the joint angle velocity and joint angle acceleration, respectively. O represents the origin of the coordinate system and can be selected at will. [0053] The expression OG1 x (w,/,α,) + /,α, uses measurements of a robot's state (such as its design parameters) to determine the value of HGl . Alternatively, HGl can be determined based on forces and moments affecting the robot. FIG. 3 illustrates a diagram of a robot being acted upon by forces and moments caused by the ground and the environment, according to one embodiment of the invention. An arbitrary inertial (earth-fixed) coordinate frame is shown situated at O. The feet are posed on two different planar surfaces and are subjected to individual force/moment pairs from each surface: RiIMi (left foot) and RrIMr (right foot). Vectors M/ and Mr are normal to the respective support surfaces, which are oriented in a general way in the three-dimensional space. Consequently, each vector and Mr has one non-zero component along its respective surface normal. Pi and Pr are the points of application of vectors R/ and Rr, respectively. The robot interacts with the environment through its hands, which are similarly subjected to individual force/moment pairs: QiI σι (left hand) and Qr/σr (right hand). Due to a hand's grasping capability, vectors σ/ and σr are not constrained to be normal to any surface. [0054] Additionally, the robot is assumed to be engaged in realistic activities and subjected to any number of expected or unexpected interaction force/moment pairs QJσ, from the environment. Without loss of generality, it can be assumed that there arey forces Q1 and k moments σ, acting at arbitrarily different points on the robot body. S, is the point of application of vector Q1. Moments are free vectors, and their application points are irrelevant for system dynamics. G denotes the robot's center of mass (CoM), and C denotes the ground projection of the center of mass (GCoM). In the illustrated embodiment, the locations of the center of pressure (CoP) and the foot-rotation indicator (FRI) point are not well-defined. [0055] The equation for translational dynamic equilibrium can be written as:

X, +Xr + >",a, (4)

which can be reduced to R + mg + Q - ma (5)

where R = Rl +Rr,m = ∑^ι=χ m, is the total mass of the robot (located at the center of mass,

CoM) which has n segments, Q = ∑J_^ Q1 is the resultant of all the external non-ground

forces, and a is the acceleration of the CoM. [0056] Recall that the resultant external moment on a body (measured relative to its CoM) equals the rate of change of the body's centroidal angular momentum. If the point G denotes the location of the robot's CoM, then any force acting on the robot that passes through G has a moment (measured relative to G) that equals zero. Equation 4 can be solved for the magnitude and direction of if but not the location of its line of action. Thus, from Equation 4 alone, it cannot be determined whether R passes through G. In order to determine that, the moment equation should be solved. [0057] The moment equation should be formulated either at the robot's CoM (G) or at any inertial reference point. Taking moments about an arbitrary inertial point O, we have

M1 + Mr + OP1 X R1 + 0Pr x Rr + ∑σ, + ∑OS, x Q, + ∑OG, x m,g = ∑HO =

∑#G, + ∑0G, x m,a, (6) i=l ι=l where HGι is the rate of change of the centroidal angular momentum of the ilh segment. [0058] Equation 6 can be reduced to j M + OP1 x Rt +OPr XRr +σ + ∑OS^ Q. +OG xmg i=l = HG + 0G x ma (7)

where M = M1 +Mr, σ = ∑^σ,, m = ∑"mlm, , and H0 = ∑HOι +∑GG, x m,α, . Thus, Equation 7 provides a way to determine HG given the values ofM, O, P1, Rt, Pr, Rr, σ, m, S1, Q1, G, and a. (g is the force of gravity, which is always 9.8m/s2 on Earth.) [0059] If the robot's body is equipped with pressure-sensitive "skin," then σ, S1, and Q1 can be determined directly. Alternatively, they can be determined indirectly by measuring spikes in joint torque and determining the difference between expected torque values and actual torque values, m, G, and a can be determined based on the robot's design parameters, as described above in conjunction with Equation 3. O represents the origin of the coordinate system and can be selected at will. The remaining variables are M, Pi, Ri, Pr, Rr. If the robot is located on a force-plate, the plate can determine these values. Alternatively, these values can be determined using force sensors or pressure sensors placed under the robot's feet. [0060] If moments are taken about the CoM (in other words, if O is replaced with G), Equation 7 simplifies to

M + GPl χR, +GPr x Rr +σ+ YjGS, x Q, = HG (8) (=1 In this situation, the terms OG x mg and OG x ma from Equation 7 equal zero and thus are not present in Equation 8. Thus, Equation 8 provides a way to determine H0 given the values ofM, G, P/, Ri, Pn Rr, σ, m, S1, and Q1 when moments are taken about the CoM (G). [0061] Sometimes, σ= 0, Q1 = 0, the feet are posed on the same horizontal plane, and M has a non-zero vertical component that does not contribute to rotational instability. Under these conditions, R = Ri + Rr is the resultant ground reaction force (GRF) passing through P, and Equation 7 reduces to OPxR + OG x mg = H0 = H0 +OG x ma (9) Thus, Equation 9 provides a way to determine HG given the values of O, P, R, G, m, and a when the previously-mentioned conditions are present. [0062] If the moments are taken about G, then Equation 9 simplifies to GP x R = H c (1) where GP denotes a vector from point G to point P and x denotes the vector product operation. Thus, Equation 1 provides a way to determine HG given the values of G, P, and if when the previously-mentioned conditions are present and when moments are taken about G. 2. Overview of Technique for Controlling a Legged Robot Based on Rate of Change of Angular Momentum [0063] In one embodiment, a robot control system uses HG as a balance maintenance criterion where balance is viewed as strongly related to rotational equilibrium. The value of HG is determined, and the control system maintains (or improves) the robot's balance by instructing the robot, based on this value, to perform a particular action. [0064] FIG. 4 illustrates a flowchart of a method for controlling a legged robot based on rate of change of angular momentum, according to one embodiment of the invention. In the first step of method 400, the current stability (or instability) of the robot is determined 410. In one embodiment (shown), determining 410 the current stability (or instability) of the robot comprises determining the current value of H0. This value can be determined by using any one of Equations 1, 3, 6, 7, 8, or 9 as discussed above. [0065] After the current stability (or instability) of the robot has been determined 410, this value is used to determine 420 how stable (or unstable) the robot is. In one embodiment, a robot is "stable" (i.e., it possesses a more favorable state of balance) if its current value of HG equals zero. In this embodiment, the absolute value of HG reflects how stable the robot is, where a smaller absolute value reflects a more stable robot, and a larger absolute value reflects a less stable robot. [0066] A control system determines 430, based on how stable (or unstable) the robot is, an instruction to send to the robot. In one embodiment, this determination is based on the absolute value of H0. When the robot executes the instruction, the robot will remain stable or become more stable. In one embodiment, executing the instruction causes the absolute value of HG to decrease. [0067] In one embodiment, the absolute value of H0 is compared to a threshold value, which denotes a range of "stable" operation. A control system can use any one of several threshold values. Which value is best suited to a particular situation depends on many factors, such as the friction between a foot and the ground, the torque limits of robot's actuators, the robot's design parameters, and the robot's inertial properties. [0068] In one embodiment, human motion data is used to determine a stability range for HG . For a given task, such as walking, human subjects perform the task, biomechanical data is collected, and the values of HG are determined. The range of H0 values obtained from a group of human subjects exhibiting normal gait is then used as the "stable" range. Some of the values may need to be scaled if the robot and the human subjects have different physical dimensions. [0069] In order to determine the values of HG , additional data is needed about the subjects, such as their geometry and inertial properties. This data can be measured or estimated. Several publications contain this type of data. These publications include "Anthropometry of Body Action" by W.T. Dempster, Annals of the New York Academy of Sciences, vol. 63, pp. 559-585 (1956), and "The Mass and Inertia Characteristics of the Main Segments of the Human Body" by V. Zatsiorsky and V. Seluyanov, Biomechanics VIII-B, vol. 8, pp. 1152-1159 (1983). [0070] Several different types of instructions can be sent to the robot. Generally, these instructions cause the robot to change its body position by activating one or more motors. These motors control, for example, the angles of joints between two adjoining segments. The instruction can specify, for example, a desired joint angle position and the velocity and acceleration that should be used to achieve it. A robot can also perform complex movements, such as taking a step, sitting down, and grabbing a support. These complex movements are achieved by sending instructions to multiple motors. [0071] A robot can maintain or improve its balance using various strategies. In one embodiment, each strategy attempts to make HG equal zero in a different way. One strategy is to modify the robot's support polygon so that it encompasses the ZRAM point (A). Another strategy is to move G with respect to P so that R passes through G in its new location G'. Yet another strategy is to change the GRF direction by changing the translational acceleration of the centroid from a to a'. [0072] Enlarge support polygon - If a robot is unstable, its ZRAM point (A) is located outside its support polygon. FIG. 5 illustrates an aerial view of a support polygon and a ZRAM point, according to one embodiment of the invention. The current support polygon is defined by the points /, J, K, L, and M. Note that A is located outside this polygon. Thus, the robot is currently unstable. Also, note that R (the GRF) does not pass through G. [0073] The distance d between A and the nearest point of the support polygon is proportional to the instability of the robot. In other words, as d increases, the robot's instability increases. In the illustrated embodiment, the point of the support polygon nearest to A lies on the edge JK. In order for the support polygon to encompass A, edge JK should be shifted outward by an amount ofd to a new position ofJ1K'. One way to shift this edge is to move a foot (e.g., take a step) at a distance d. [0074] Notice that GJ = GJ+d(kχe), (10) JK where e = , and A is a unit vector perpendicular to the plane of the support polygon (if JK the polygon is planar). If the support polygon is not planar, then k is a unit vector normal to the plane containing JK and J1K. d can be expressed as:

[0075] Move G -If Equation 9 is generalized to include interaction forces (σ and Q), it can be rewritten as:

GP xR + σ+ ∑GS,xQ,=HG (12) (=1 If a robot is unstable, R (the GRF) does not pass through G. Suppose that G moves to a new

position G' so that HG equals zero. In other words,

G'PxR + σ + ∑G'S.xQ, = HG = 0. (13) 1=1 Based on Equations 12 and 13, GP is set equal to GG' + G'P and GS, is set equal to GG' + CS, to obtain: GG' x(R + Q)= H0. (14) Equation 14 is of the standard form A x B = C, where A = GG', B = (R + Q), and C=H0. Thus, Equation 14 can be solved forA (here, GC). [0076] Change GRF direction - IfR is set equal to ma-mg- Q, Equation 12 can be rewritten as: j GPx(ma~mg-Q)+σ+∑GS,χQ1=H0 (15) ι=l Suppose that H0 = 0 is obtained by changing ma to ma'. Equation 15 can be rewritten as:

GPx(ma'-mg-Q)+σ + GSlxQ,=0 (16)

Based on Equations 15 and 16, the following is obtained: GP x ma' = GP x ma- H0. (17) Equation 17 is of the standard form A x B = C, where A = GP, B = ma', and C= GP x ma - H0. Thus, Equation 17 can be solved for ma'. [0077] A control system can use any one of several control laws when determining an instruction to send to the robot in order to maintain or improve its stability. These control laws can vary in their nature and/or sophistication. In one embodiment, a proportional integral (PI) control law on H0 is used. In this embodiment, the control system determines a particular joint torque in order to cause the value of H0 to approach (or reach) a goal range. The control system then generates an instruction; this instruction causes the robot to take an action that will result in the particular joint torque desired.

3. Overview of Technique for Controlling a Legged Robot Based on Value Derived from Rate of Change of Angular Momentum [0078] In another embodiment, rather than using H0 as a balance maintenance

criterion, a robot control system uses a value derived from HG . For example, the control system could use A (the ZRAM point) or PA (the distance between P, the center of pressure of the actual GRF, and A) as a balance maintenance criterion. The value of the derived criterion is determined, and the control system maintains or improves the robot's balance by instructing the robot, based on this value, to perform a particular action. [0079] In one embodiment (not shown), determining the current stability (or instability) of the robot comprises determining the location of the ZRAM point. After the current stability (or instability) of the robot has been determined, this value is used to determine how stable (or unstable) the robot is. In one embodiment, a robot is "stable" (i.e., it possesses a more favorable state of balance) if its current value ofPA equals zero. In this embodiment, the absolute value ofPA reflects how stable the robot is, where a smaller absolute value reflects a more stable robot, and a larger absolute value reflects a less stable robot. [0080] Recall that PA represents the amount of lateral shift of the GRF that is necessary in order to make H0 equal zero. The larger the absolute value ofPA, the larger the amount

of moment on the robot's CoM, and the larger the value of H0. Conversely, as A gets closer to P, the amount of unbalanced moment at the CoM is reduced, and finally becomes zero as A (the ZRAM point) coincides with P. [0081] A control system determines, based on how stable (or unstable) the robot is, an instruction to send to the robot. In one embodiment, this determination is based on the absolute value of PA. When the robot executes the instruction, the robot will become more stable. In one embodiment, executing the instruction causes the absolute value ofPA to decrease. [0082] In one embodiment, the absolute value ofPA is compared to a threshold value, which denotes a range of "stable" operation.

4. Apparatus for Controlling a Legged Robot Based on Rate of Change of Angular Momentum [0083] FIG. 6 illustrates a block diagram of an apparatus for controlling a legged robot based on rate of change of angular momentum, according to one embodiment of the invention. Apparatus 600 preferably includes a processor 610, a main memory 620, a data storage device 630, and an input/output controller 680, all of which are communicatively coupled to a system bus 640. Apparatus 600 can be, for example, a general-purpose computer. [0084] Processor 610 processes data signals and comprises various computing architectures including a complex instruction set computer (CISC) architecture, a reduced instruction set computer (RISC) architecture, or an architecture implementing a combination of instruction sets. Although only a single processor is shown in FIG. 6, multiple processors may be included. [0085] Main memory 620 stores instructions and/or data that are executed by processor 610. The instructions and/or data comprise code for performing any and/or all of the techniques described herein. Main memory 620 is preferably a dynamic random access memory (DRAM) device, a static random access memory (SRAM) device, or some other memory device known in the art. [0086] Data storage device 630 stores data and instructions for processor 610 and comprises one or more devices including a hard disk drive, a floppy disk drive, a CD-ROM device, a DVD-ROM device, a DVD-RAM device, a DVD-RW device, a flash memory device, or some other mass storage device known in the art. [0087] Network controller 680 links apparatus 600 to other devices so that apparatus 600 can communicate with these devices. [0088] System bus 640 represents a shared bus for communicating information and data throughout apparatus 600. System bus 640 represents one or more buses including an industry standard architecture (ISA) bus, a peripheral component interconnect (PCI) bus, a universal serial bus (USB), or some other bus known in the art to provide similar functionality. [0089] Additional components that may be coupled to apparatus 600 through system bus 640 include a display device 650, a keyboard 660, and a cursor control device 670. Display device 650 represents any device equipped to display electronic images and data to a local user or maintainer. Display device 650 is a cathode ray tube (CRT), a liquid crystal display (LCD), or any other similarly equipped display device, screen, or monitor. Keyboard 660 represents an alphanumeric input device coupled to apparatus 600 to communicate information and command selections to processor 610. Cursor control device 670 represents a user input device equipped to communicate positional data as well as command selections to processor 610. Cursor control device 670 includes a mouse, a trackball, a stylus, a pen, cursor direction keys, or other mechanisms to cause movement of a cursor. [0090] It should be apparent to one skilled in the art that apparatus 600 includes more or fewer components than those shown in FIG. 6 without departing from the spirit and scope of the present invention. For example, apparatus 600 may include additional memory, such as, for example, a first or second level cache or one or more application specific integrated circuits (ASICs). As noted above, apparatus 600 may be comprised solely of ASICs. In addition, components may be coupled to apparatus 600 including, for example, image scanning devices, digital still or video cameras, or other devices that may or may not be equipped to capture and/or download electronic data to/from apparatus 600. [0091] FIG. 7 illustrates a more detailed block diagram of the contents of the memory unit in FIG. 6. Generally, memory unit 620 comprises several code modules for controlling a legged robot based on rate of change of angular momentum. Specifically, the code modules in memory unit 620 include main program module 700, value determination module 710, stability determination module 720, and instruction determination module 730. [0092] All code modules 710, 720, 730 are communicatively coupled to main program module 700. Main program module 700 centrally controls the operation and process flow of apparatus 700, transmitting instructions and data to as well as receiving data from each code module 710, 720, 730. [0093] Value determination module 710 performs step 310 of method 300. Stability determination module 720 performs step 320 of method 300. Instruction determination module 730 performs step 330 of method 300. [0094] Main program module 700 instructs value determination module 710 to perform step 310 of method 300. Main program module 700 instructs stability determination module 720 to perform step 320 of method 300. Main program module 700 instructs instruction determination module 730 to perform step 330 of method 300.

5. Additional Embodiments [0095] Although the invention has been described in considerable detail with reference to certain embodiments thereof, other embodiments are possible as will be understood to those skilled in the art. For example, another embodiment is described in "Rate of Change of Angular Momentum and Balance Maintenance of Biped Robots" by A. Goswami and V. Kallem, Proceedings of the 2004 IEEE International Conference on Robotics and Automation (ICRA), New Orleans, Louisiana, April 2004, pp. 3785-3790, which is hereby incorporated by reference.