The present disclosure relates to dynamic obstacle avoidance in a robotic system.
Robots typically include a series of linkages that are interconnected via motor-driven robotic joints. Each robotic joint represents one or more independent control variables or degrees of freedom. End-effectors such as robotic hands, grippers, and the like are the particular end linkages which act on an object in the performance of a commanded work task, for instance the grasping and moving of an object. Complex programming and motion control logic is used in a variety of ways to achieve the required levels of robotic mobility, dexterity, and work task-related functionality. End-effectors typically approach and depart from a specified goal position according to a defined path or trajectory. Such paths are pre-planned using a variety of techniques. However, conventional end-effector path planning techniques may be less than optimally robust when encountering dynamic obstacles in the work environment.
A robotic controller is described herein that is suitable for controlling an end-effector in the presence of dynamic obstacles. Unlike existing approaches, the controller uses the Gilbert-Johnson-Keerthi (GJK) algorithm to compute a contour function and thereby allow the controller to deal with dynamic obstacles having an arbitrary shape, i.e., not predefined. The present methodology also uses harmonic potentials to modulate a motion plan for the end-effector, thereby steering the end-effector around such dynamic obstacles in the robot's work environment.
Specifically, the controller considers the velocity of the dynamic obstacle as an input and computes a distance between arbitrary geometric shapes representing the obstacles. This approach utilizes the GJK algorithm to compute the distance. Thus, a contour function is defined by the controller for avoiding encountered dynamic obstacles, as opposed to using predefined contour functions and defined/non-arbitrary obstacle shapes. This approach also allows the controller to use the capabilities of point cloud shapes, and for a given control point to be represented as a volume with a defined shape. In this manner, the concept of harmonic potentials is extended to situations in which the dynamic obstacles are presented as a collection of points, for instance from a 3D point cloud camera that outputs point clouds or Light Detection and Ranging (LIDAR) scans of the obstacles. Additionally, the present design contemplates automatic adjustment of a modulation function so that obstacle velocities are considered, thereby allowing the controller to better avoid the dynamic obstacles.
The above and other features and advantages of the present disclosure are readily apparent from the following detailed description when taken in connection with the accompanying drawings.
With reference to the drawings, wherein like reference numbers refer to the same or similar components throughout the several views, a robotic system 10 is shown schematically in
The robot 12 includes an end-effector 14 such as a gripper or a multi-fingered hand disposed at a distal end of a robot arm 16. Motion of the robot 12, particularly of the end-effector 14 and the robot arm 16, is automatically controlled via a robotic controller 50 having a dynamical system module (DSM) 52, a harmonic potential modulator (HPM) 53, and an impedance control module (ICM) 54, the specific programmed functions of which are described in detail below. A camera 15 such as a 3D point cloud camera, a LIDAR sensor array, or the like collects a set of 3D point cloud information describing the location and approximate geometry of the dynamic obstacles 30 and relays this information to the controller 50 as point cloud data (arrow 19) as part of the method 100.
The robot 12 is programmed in software and equipped in hardware to perform one or more automated tasks with multiple control degrees of freedom, such as grasping and moving an object 25 with a changing position and velocity, and to perform other interactive tasks or control other integrated system components, for instance clamping, relays, task lighting, and the like. In the embodiment shown in
The controller 50 of
In particular, the controller 50 is intended to improve upon existing approaches toward avoidance of obstacles, e.g., the example moving/dynamic obstacles 30 shown in
The controller 50 of
Additionally, the controller 50 of
The controller 50 may be structurally embodied as a computer device or multiple such devices programmed to plan and generate robotic movements of the robot arm 16 and the end-effector 14. The control system 50 may include one or more processors (P) and memory (M), including sufficient amounts of tangible, non-transitory memory. Memory types may include optical or magnetic read only memory (ROM), random access memory (RAM), erasable electrically-programmable read only memory (EEPROM), and the like. The control system 50 may also include a high-speed clock, analog-to-digital (A/D) circuitry, digital-to-analog (D/A) circuitry, and any required input/output (I/O) circuitry and devices, as well as signal conditioning and buffer electronics. Individual control algorithms resident in the controller 50 or readily accessible thereby, such as instructions embodying the method 100 of
A dynamic movement primitive (DMP), as is well known in the art of robotic control, can be used to generate a particular robotic movement trajectory x(t) with a given velocity v(t). The equations of motion for a DMP are motivated by the dynamics of a damped spring attached to a goal position g and perturbed by a non-linear acceleration:
{dot over (v)}=K(g−x)−Dv+(g−x0)f(s)
{dot over (x)}=v
where x0 is the start point of a given movement, K is the spring constant, D is the damping constant, and f is a parameterized non-linear function.
In general, the controller 50 shown schematically in
Referring briefly to
Referring again to
(d,{right arrow over (n)})=GJK(Scontrol,Sobstacle)
In the above equation Scontrol is the predefined or known shape of the end-effector 14 and/or arm 16 of
At step 106 the controller 50 defines a contour function, Γk(ξk), using the result of step 104. The contour function is ultimately stated as Γ(d)=(m(d−η)+1)ρ. The contour function is represented as CF in step 106 of
From this, the controller 50 of
The velocity of the end-effector 14 is then modulated via the DSM 52 using the dynamical system, with f(t,ξ) being the velocity output from the dynamical system function of the DSM 52, i.e., Vd* as shown in
Harmonic potentials are used by the controller 50 at step 110 to modify the control velocity Vd* derived in the vicinity of the dynamic obstacles 30 via the DSM 52. In conventional approaches, this modification is performed for a single obstacle 30 by representing the modulation as a matrix and considering the factorized form:
M(ξ)=E(ξ)D(ξ)E(ξ)−1
{dot over (ξ)}=M(ξ)f(t,ξ)
where D is a diagonal matrix of eigenvalues of the following form:
and E is a set of basis vectors of the form:
For the above equations, ξ represents a state variable of the distance dimension d, Γ is a scalar function that equals 1 at the contour of a shape and increases monotonically with increasing distance from the shape,
denotes the gradient of Γ(ξ) along the ith dimension, and f(t,ξ), once again, is the velocity output from the DSM 52, i.e., Vd*. This velocity expression may be replaced by another control velocity to apply harmonic potential avoidance to other forms of control.
The above approach is then modified by the controller 50 to consider velocities of multiple dynamic obstacles 30. For multiple dynamic obstacles 30, the modulation matrix (M) noted above is evaluated via the controller 50 in the frame of reference of each dynamic obstacle 30 of
Here, the weights ωk are defined by evaluating the contour function Γk(ξk) for each dynamic obstacle 30:
This allows the controller 50 of
To make proper use of the method 100 of
The contour function in this instance increases monotonically as a function of ξ and defines the contour of the circle when Γ(ξ)=1.
For more complex shapes, however, the contour function Γk(ξk) leverages the GJK algorithm, as noted above in reference to step 104 of
(d,{right arrow over (n)})=GJK(Scontrol,Sobstacle)
This equation arises from the standard application of the GJK algorithm, as known in the art. The inputs are the shape representations that define the control volume and the particular dynamic obstacle 30 in question. The outputs d and {right arrow over (n)} represent the respective closest distance and the direction vector between the two point clouds describing two obstacles 30. These outputs can be directly entered into the contour function and its gradient at step 106:
Γ(d)=(m(d−η)+1)ρ ∇Γ(d)=ρm((m(d−η)+1)ρ−1){right arrow over (n)}
The contour function should not encounter distance values of less than η. At Γ(d)=1, the harmonic avoidance acts to prevent the contour function from decreasing any further. It is possible that discrete time steps may cause the control volume to penetrate this boundary, but the potential field is still viable while Γ(d)>0. At this stage the control volume is guided outward until it reaches the obstacle surface, so the contour function should never reach zero or negative values.
A benefit of the present approach is that it extends to all forms of convex shapes. The GJK algorithm applied at steps 104 and 106 requires only that a support function be defined for the type of shape that is used. The term “support function” in this case refers to the function which defines the farthest point along a given direction. For a sphere, it is simply the radius projected onto the given direction. For a point cloud, it is the furthest point along that direction. As long as these functions are provided, the present approach can extend to any shape. If a concave shape is given, usage of the support function will ensure that only the convex hull is considered.
While the best modes for carrying out the present disclosure have been described in detail, those familiar with the art to which this disclosure relates will recognize various alternative designs and embodiments within the scope of the appended claims.