The present disclosure relates generally to the field of industrial robot motion planning and, more particularly, to a method and system for motion planning for robots with a redundant degree of freedom, including the presence of dynamic obstacles, where the motion planning is formulated as a quadratic programming optimization calculation having a multi-component objective function and a collision avoidance constraint function, and where weighting factors on the terms of the objective function are changeable for each control cycle calculation based on obstacle proximity conditions at the time.
The use of industrial robots to perform a wide range of manufacturing, assembly and material movement operations is well known. In some applications, the robot being employed has more degrees of freedom (DOF) than the task being performed. This is the case when a conventional six-DOF robot is used for a five-DOF task, such as where the rotational (“spin”) position of the tool about its local axis is not important and can take on any value. Seven-DOF robots have also been designed to intentionally have more degrees of freedom than the required task (e.g., spray painting), where the extra degree of freedom improves the near-reach flexibility of the robot—such as enabling the robot arms to fold and fit in a narrow space between a vehicle body and a wall of a spray paint booth.
Techniques have been developed in the art for motion planning of robots with a redundant degree of freedom. One known technique involves defining a plane within which the robot elbow joint must remain. This extra constraint reduces the effective degrees of freedom of the robot by one, and enables motion planning to be computed analytically using inverse kinematics (IK) calculations. However, this technique artificially limits the flexibility of the robot, and requires an extra programming step for the operators to define the elbow joint plane.
Another known technique for motion planning of robots with a redundant degree of freedom exploits the redundant degree of freedom in the null space of the Jacobian matrix, then uses an optimization computation to compute robot motion. This technique has several drawbacks—including the lack of any constraints on the optimization computation, the optimization computation being limited to a single objective function variable at a time, and the technique being applicable only for robot teaching mode. The teaching mode limitation in turn introduces additional drawbacks—including the inability to handle line tracking applications (such as vehicle bodies moving on a conveyor), and the inability to perform dynamic obstacle avoidance calculations in the motion planning.
In many robot workspace environments, obstacles are present and may sometimes be in the path of the robot's motion. The obstacles may be permanent objects such as building structures and fixtures, which can easily be avoided by the robot with pre-planned motions due to the static nature of the object. The obstacles may also be dynamic objects which move into or through the robot workspace at random. Dynamic objects must be accounted for in real-time calculations by the motion planning system, where the robot must maneuver to avoid the objects while performing an operation. Collisions between any part of the robot and any obstacle must absolutely be avoided, and simply stopping the robot in the presence of dynamic obstacles is not a satisfactory solution.
In light of the circumstances described above, there is a need for an improved dynamic motion planning technique for redundant robots which permits full flexibility of the robot, includes obstacle avoidance in the robot motion when dynamic objects exist in the workspace, and completes the motion planning computations rapidly enough to be performed during each robot control cycle.
In accordance with the teachings of the present disclosure, a method and system for motion planning for robots with a redundant degree of freedom is described and illustrated. The technique computes a collision avoidance motion plan for a robot with a redundant degree of freedom, without artificially constraining the extra degree of freedom. The motion planning is formulated as a quadratic programming optimization calculation having a multi-component objective function and a collision avoidance constraint function. The formulation is efficient enough to compute the motion plan in real time at every robot control cycle. The collision avoidance constraint ensures clearance of all parts of the robot from both static and dynamic obstacles. Objective function terms include minimizing path deviation, joint velocity regularization and robot configuration or pose regularization. Weighting factors on the terms of the objective function are changeable for each control cycle calculation based on obstacle proximity conditions at the time.
Additional features of the presently disclosed systems and methods will become apparent from the following description and appended claims, taken in conjunction with the accompanying drawings.
The following discussion of the embodiments of the disclosure directed to dynamic motion planning and control for redundant robots is merely exemplary in nature, and is in no way intended to limit the disclosed devices and techniques or their applications or uses.
It is well known to use industrial robots for a variety of manufacturing, assembly and material movement operations. In some applications, the robot has more degrees of freedom of motion than the number of degrees of freedom of the task being performed. This is the case, for example, when a seven-axis robot is used for a spray painting application in which the spray nozzle position and pose are fully defined by six degrees of freedom.
Furthermore, in many robot workspace environments, obstacles may be present and may at times be in the path of the robot's motion. That is, without adaptive motion planning, some part of the robot may collide with some part of an obstacle when the robot moves from its current position to a destination position. The obstacles may be static structures such as fixtures and tables, or the obstacles may be dynamic (moving) objects such as people, forklifts and other machines. When dynamic objects may be present, the robot's motion must be planned in real time for each control cycle.
Techniques have been developed in the art for computing motions for robots having a redundant degree of freedom. However, these techniques exhibit a variety of shortcomings—including limiting the flexibility of the robot by requiring an artificial constraint to be defined, lack of sufficient control of the solution due to limitations in the optimization objective function and constraints, the capability to be used only in teaching mode and not in real time motion planning, and the resultant inability to handle dynamic obstacle avoidance or line tracking applications.
The dynamic motion planning system of the present disclosure overcomes the shortcomings of prior art systems by formulating the motion planning as a quadratic programming optimization calculation having a multi-component objective function and a collision avoidance constraint function. This technique results in a joint motion plan which seeks to minimize deviation from the planned path, balance joint velocities, and avoid mid-path robot configuration/pose changes—all while meeting a dynamic object collision avoidance constraint. The optimization computation is efficient enough to be performed in real time during robot motion, and the computation is further formulated such that weighting factors on the terms of the objective function are changeable for each control cycle calculation based on obstacle proximity conditions at the time.
The input target (destination) location may be a moving target—such as a vehicle body moving along a conveyor. In this type of “line tracking” application, the target location may be defined as a linear function of time based on conveyor velocity, or may even be computed for each control cycle for applications where the conveyor speed may vary. In any case, the target location for the robot tool is the location where the tool needs to be, at the time in the future when the robot arm is projected to arrive.
The dynamic motion optimization module 120 also receives obstacle data input from a perception module 130. The perception module 130 includes one or more cameras or sensors configured to provide data about obstacles which may exist in the robot workspace. The obstacle data typically includes a minimum robot-obstacle distance, and may also include other data about the position (including spatial shape) and velocity of any obstacles.
The dynamic motion optimization module 120 performs an optimization computation which minimizes tracking deviation from the planned robot motion udes, and also optimizes robot motion characteristics, while including robot mechanical limitations and a collision avoidance safety function as constraints. This optimization computation results in a commanded robot motion qcmd. The commanded robot motion qcmd is the robot motion in joint space which will take the robot tool to the target location while avoiding any obstacles in the robot workspace. The optimization computation is discussed in detail below. A feedback loop 140 provides the commanded robot motion qcmd from the dynamic motion optimization module 120 back to the planner module 110. The planner module 110 and the dynamic motion optimization module 120 repeat the calculations described above at each robot control cycle.
The dynamic motion optimization module 120 also provides the commanded robot motion qcmd to a robot controller, which provides robot control commands to a robot (not shown), and receives actual robot joint positions qact on a feedback loop, as known in the art. The robot controller updates the robot control commands at each control cycle based on the actual robot joint positions qact and the commanded robot motion qcmd. This is discussed further below.
Box 150 shows how the robot redundancy discussed previously affects the system of
Box 160 shows the fundamental formulation of the optimization computation used in the dynamic motion optimization module 120. The optimization computation includes an objective function 170 which seeks to minimize a combination of several properties of the commanded robot motion. The objective function 170 is discussed in detail below. The optimization computation also includes at least one inequality constraint 180 which addresses structural/mechanical limitations of the robot. The inequality constraint 180 as shown ensures that robot joint velocities {dot over (q)} remain below predefined maximum joint velocities {dot over (q)}max which are predetermined based on robot mechanical limitations. In some embodiments, one or more other inequality constraints (not shown on
A collision avoidance safety constraint 190 is also included in the optimization computations shown in the box 160. The safety constraint 190 is one embodiment of collision avoidance inequality constraint which ensures that the robot does not collide with any obstacles which are present in the robot workspace. The safety constraint 190 employs a model which defines a safety function h(X) based on robot-obstacle minimum distance or a combination of robot-obstacle minimum distance and robot-obstacle relative velocity, where the value of the safety function h(X) is equal to the robot-obstacle minimum distance when the robot and obstacle are moving away from each other, and the value of the safety function h(X) is equal to the minimum distance minus a relative velocity term when the robot and obstacle are moving toward each other. The inequality safety constraint 190 is then defined as {dot over (h)}(X)≥−γh(X), as shown on
A complete discussion of the safety constraint 190 and its use in a collision avoidance optimization-based motion planning system was disclosed in U.S. patent application Ser. No. 17/455,676, titled DYNAMIC MOTION PLANNING SYSTEM, filed -19 Nov. 2021 and commonly assigned with the present application, and hereby incorporated by reference in its entirety. Any other suitable type of collision avoidance safety constraint may be employed in the optimization computation of the box 160, including the use of a safety function which is based on robot-obstacle minimum distance only.
Returning to the objective function 170 on
The joint velocity regularization term 174, computed as λ1∥{dot over (q)}∥2, represents the overall magnitude of the robot joint velocity vector including all joints in the robot, where λ1 is a weighting factor (which is changeable, as discussed later). In general, it is desirable for the rotations of the robot joints to be as small and balanced as possible while moving the tool center point to the target location. The joint velocity regularization term 174 in the objective function 170 seeks to provide this behavior by minimizing the norm of the joint velocity vector.
The pose regularization term 176, computed in one embodiment as λ2∥qref−q|2, represents the deviation of the robot pose (joint position vector) q from a reference pose (reference position vector) qref, where λ2 is another weighting factor (which is changeable, as discussed later). As a robot moves from a start location to a target (destination) location, it is desirable for the robot to maintain a consistent pose (overall configuration of joint and arm positions), where each joint angle increments a small amount from one time step (control cycle) to the next. That is, it is undesirable for one or more of the joints to suddenly “flip” to an inverted or opposite position from one step to the next. The pose regularization term 176 in the objective function 170 seeks to provide the desired behavior by minimizing the norm of the difference between the joint position vector and the reference position vector. Other formulations of a pose regularization term are discussed later.
A beneficial feature of the optimization computations shown in the box 160 of
A step function curve 230 illustrates a first technique which can be used for adaptively adjusting the weighting factors λ1 and λ2 in the objective function 170 based on minimum robot-obstacle distance. When the minimum robot-obstacle distance is low (at the left of the graph 200, meaning that evasive collision avoidance maneuvering is likely), λ1 is set to a high value (such as 1.0). The corresponding λ2 is set to a low value (such as 0.0). This combination of weighting factor values in the objective function 170 causes the optimization computation to converge to a solution which emphasizes velocity regularization while minimizing tracking deviation, and considers pose regularization only slightly if at all.
When the minimum robot-obstacle distance is high—that is, the minimum distance exceeds a threshold such as 0.5 meters (at the right of the graph 200, meaning that evasive collision avoidance maneuvering is not likely), λ1 is set to a low value (such as 0.0). The corresponding λ2 is set to a high value (such as 1.0). This combination of weighting factor values in the objective function 170 causes the optimization computation to converge to a solution which emphasizes pose regularization while minimizing tracking deviation, and considers velocity regularization only slightly if at all. When no obstacle is detected by the perception system 130, this is treated the same as a high minimum robot-obstacle distance (λ1 is set to a low value; λ2 is set to a high value). The transition from a high λ1 to a low λ1 in the step function curve 230 need not be a vertical line; it could be a line with a negative slope, for example.
A continuous curve 240 illustrates a second technique which can be used for adaptively adjusting the weighting factors λ1 and λ2 in the objective function 170 based on minimum robot-obstacle distance. The continuous curve 240 also sets λ1 to a high value when minimum robot-obstacle distance is low, and sets λ1 to a low value when minimum robot-obstacle distance is high. However, unlike the step function curve 230, the continuous curve 240 provides a smooth transition from high to low values of λ1. The continuous curve 240 could be modeled as an algebraic function (such as a cubic or quintic), or as a trigonometric function (such as a cosine), for example. In some embodiments, after the continuous curve 240 or the step function curve 230 is used to determine the value of λ1, the value of λ2 may be determined by an equation in which the sum of λ1 and λ2 is equal to a constant—such that λ1 is higher when λ2 is lower, and vice versa.
Again, in the graph 200, the mid-graph or threshold distance could be some value other than 0.5 meters, and the maximum and minimum values of the weighting factors λ1 and λ2 need not be 1.0 and 0.0, respectively. For example, the lowest weighting factor value could be slightly greater than zero (such as 0.1), so that all terms in the objective function 170 are always considered. Also, the maximum weighting factor value could be higher or lower than 1.0, which would affect the balance between the path tracking deviation term 172 and the velocity and pose regularization terms 174 and 176. The exact adaptation model which is used (of the two shown on the graph 200, or others that can be envisioned), along with the values of λ1 and λ2 and the threshold minimum distance, can be selected to provide the best results in a particular application. In any case, the optimization computation formulation shown in the box 160, with the objective function 170 featuring adaptive weighting at each computation cycle, provides powerful capability for real time collision avoidance motion planning of robots with a redundant degree of freedom.
In the objective function 170, the pose regularization term 176 (λ2∥qref−q|) seeks to provide the desired robot behavior by minimizing the norm of the difference between the joint position vector q and the reference position vector qref. This requires that the reference position vector qref be provided for each step of the robot motion from the start point to the target point.
In a second technique 350 (bottom half of
In the objective function 170, the pose regularization term 176 (λ2∥qref−q∥) discussed above seeks to provide the desired robot behavior by minimizing the norm of the difference between the joint position vector q and the reference position vector qref. Following is a discussion of another technique which may be used for pose regularization in the objective function 170 of the optimization computations.
In simple terms, the purpose of the pose regularization term in the objective function is to maintain a consistent overall pose of the robot as it moves the tool from the start point to the target point. The “consistent overall pose” may be described as joint positions and arm positions moving smoothly within a range, avoiding any joint positions and/or arm positions suddenly making a large jump or change from one time step to the next. One simple example of a sudden configuration or pose change, commonly encountered in robot motion planning, is where the wrist joint (at the end of the outer arm) “flips” to an inverted position from one time step to the next in order to put the tool in a desired orientation.
In
In
As mentioned above, the purpose of the pose regularization term in the objective function is to maintain a consistent overall pose of the robot as it moves the tool from the start point to the target point. In terms of
Consistency of pose may also be achieved by initially computing a destination configuration (the robot pose or configuration when the tool center point is at the target location), and separately evaluating individual joint angles for joints which are prone to significant pose change during the robot task (e.g., wrist joint “flip”, or extra inner arm joint “up” vs. “down”). Rather than formulating the pose regularization term in the objective function as discussed earlier (λ2∥qref−q∥2), a cost function can be used in a pose regularization term which penalizes any solution with a significant pose change from the destination configuration. One approach to building such a cost function would be to detect a change in sign of the position of any of the joints which are prone to significant pose change. As discussed above with respect to
Yet another type of pose regularization term may be constructed using a cost function which evaluates individual joint positions relative to their position at a destination configuration, but uses the amount of angular change rather than a change of sign. A cost function pose regularization term of this type is shown in Equation (1) below.
M·(∥θd,wrist−θwrist∥+∥+∥θd,ext-inn−θext-inn) (1)
where θd,wrist is the wrist joint angle at the destination configuration, θwrist is the wrist joint angle at the configuration currently being evaluated by the optimization solver, and similarly for the extra inner arm joint, and where M is a number which can be tailored to achieved the desired results, and may be changeable at each control cycle calculation. In other words, Equation (1) will take on a larger value for configurations which have large joint position differences from the destination configuration. When Equation (1) is used as the pose regularization term (instead of λ2∥qref−q∥2) in the objective function, the optimization computation will tend to move away from configurations or poses which are significantly different from the destination pose.
Both of the pose regularization formulations discussed above have been shown to provide good results in detailed mathematical simulations of real-time robot motion planning in the presence of obstacles in the workspace. Results are shown in later figures and discussed further below.
At box 506, robot motion optimization computations are performed based on the planned robot motion and the obstacle data. The output of the robot motion optimization computations is the commanded robot motion qcmd discussed above with respect to
At box 508, a robot controller provides the commanded robot motion to a robot. The robot controller may perform computations or transformations in order to provide suitable robot joint motion commands to the robot. At box 510, the robot actually moves based on the joint motion commands from the controller. The robot and controller operate as a closed loop feedback control system, where the actual robot state qact (joint positions and velocities) is fed back to the controller for computation of updated joint commands. The robot and controller operate on a control cycle having a designated time period (i.e., a certain number of milliseconds).
In the box 506, the motion optimization problem can be formulated as:
Such that;
∥{dot over (q)}∥≤{dot over (q)}max (3)
{dot over (h)}(X)≥−γh(X) (4)
where Equation (2) is the optimization objective function 170 to be minimized (discussed earlier with respect to
The pose regularization term (λ2∥qref−q|2) shown in Equation (2) may be replaced by the cost function pose regularization term of the type shown in Equation (1) and discussed earlier.
For the obstacle avoidance constraint (Equation (4)), the goal is to keep the safety function h(X)≥0, as discussed above with respect to
The optimization computations using Equations (2)-(4) are performed at each robot control cycle. Upon convergence, the optimization computations yield the commanded robot motion qcmd which represents the robot motion having the minimum combination of objective function terms (tracking deviation, velocity regularization, and pose regularization) while satisfying the inequality constraints. The weighting factor coefficients on the regularization terms of the objective function (λ1 and λ2 or M) may be adjusted for each optimization computation (each control cycle) based on workspace obstacle conditions, as discussed earlier.
In
The separate computer 600 communicates with a robot system 602, including a robot controller 650 and a robot 660. Specifically, the commanded robot motion qcma is provided from the dynamic motion optimization module 120 to the controller 650. The controller 650 controls the motion of the robot 660 in a real-time control system operating on a defined control cycle (a certain number of milliseconds), with actual robot state qact (joint positions and velocities) provided back to the controller 650 on a feedback loop 670. In the system of
The system of
The dynamic motion planning techniques of
In addition to the tool center point, a robot elbow joint point 830 is shown on
In a second scenario, a fixed spherical obstacle 850 is placed in the workspace 800 in a location obstructing the elbow reference trace 840. A buffer zone 860 defines a safe distance margin around the obstacle 850, such that all parts of the robot should remain outside of the buffer zone 860. The second scenario simulation was run with the obstacle 850, using the same tool center start point 810 and target point 812. The dynamic path planning techniques of the present disclosure were used to compute an obstacle avoidance robot motion plan. Because of the tracking deviation term in the objective function, the tool center point follows essentially exactly the same TCP trace 820 when the obstacle 850 is in the workspace as when no obstacle is present. However, with the obstacle 850 present, the elbow joint point 830 follows a much different path—shown as an actual elbow trace 870. The elbow trace 870 causes the elbow joint point 830 and the inner robot arm to remain outside of the buffer zone 860, while the robot still moves the tool center point along the desired path. These simulation results confirm the behavior that is expected from the dynamic motion planning computations described above—satisfying the collision avoidance safety constraint, while converging to a solution with virtually no tool center point path deviation.
A robot 900 operates in a workspace having a fixed overhead obstruction 910—illustrated as a ceiling which angles downward to a lower height at the right side of the workspace. The robot 900 is required to perform a task which involves moving a tool from a start point to a target (destination) point. The robot 900 is illustrated in the start point configuration in
A robot 1000 and a robot 1010 operate in the workspace, where each of the robots 1000 and 1010 is required to perform a task at the same time. The robot 1000 is required to perform a task which involves moving a tool from a start point 1002 to a target (destination) point (not shown). The tool center point for the robot 1000 follows a trace 1004 from the start point to the destination point. The robot 1010 is required to perform a task which involves moving a tool from a start point 1012 to a target (destination) point (not shown). The tool center point for the robot 1010 follows a trace 1014 from the start point to the destination point. The tool center point traces 1004 and 1014 are shown in their entirety in
It is noteworthy that the techniques of the present disclosure avoid a robot-robot collision without causing a deviation in the tool center point paths of either the robot 1000 or the robot 1010. This is made possible by the redundant degree of freedom of the robots along with the motion optimization computations discussed above—with the weighted objective function which can seek a solution which minimizes tool path deviation while also meeting the collision avoidance constraint.
Other simulations of a two-robot workspace (similar to
The results shown in
In addition, the commanded motion computation time for each control cycle (the time to provide an output from the dynamic motion optimization module 120) was measured to have an average of less than one millisecond (ms) for the disclosed techniques. Using a typical robot control cycle of 8 ms, the techniques of the present disclosure perform motion planning computations more than fast enough, while providing far superior collision avoidance and motion smoothness results compared to prior art motion computation methods.
Throughout the preceding discussion, various computers and controllers are described and implied. It is to be understood that the software applications and modules of these computer and controllers are executed on one or more electronic computing devices having a processor and a memory module. In particular, this includes a processor in each of the robot controller 650 and the optional separate computer 600 of
While a number of exemplary aspects and embodiments of the methods and systems for dynamic motion planning and control for redundant robots have been discussed above, those of skill in the art will recognize modifications, permutations, additions and sub-combinations thereof. It is therefore intended that the following appended claims and claims hereafter introduced are interpreted to include all such modifications, permutations, additions and sub-combinations as are within their true spirit and scope.
Number | Name | Date | Kind |
---|---|---|---|
9327401 | Xiao et al. | May 2016 | B2 |
20190255712 | Takeuchi | Aug 2019 | A1 |
20230117928 | Bellicoso | Apr 2023 | A1 |
Number | Date | Country |
---|---|---|
2699392 | Oct 2015 | EP |
Entry |
---|
Ferraguti, Federica, et al. “Safety barrier functions and multi-camera tracking for human-robot shared environment.” Robotics and Autonomous Systems 124 (2019): 103388. |
Ferraguti, Federica, et al. “A Control Barrier Function Approach for Maximizing Performance While Fulfilling to ISO/TS 15066 Regulations,” in IEEE Robotics and Automation Letters, vol. 5, No. 4, pp. 5921-5928, Oct. 2020. |
Number | Date | Country | |
---|---|---|---|
20230302645 A1 | Sep 2023 | US |