# US 2021/0078173 A1 · System and method of controlling obstacle avoidance of robot, robot and storage medium

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0078173 A1
- Document ID: US20210078173A1
- Status: Published application
- Kind: A1
- Application number: 16/084,231
- Filed: 2017-06-30
- Published: 2021-03-18
- Earliest claimed: 2017-03-27
- Assignees: Ping An Technology (Shenzhen) Co., Ltd.
- Applicants: Ping An Technology (Shenzhen) Co., Ltd.
- Inventors: Taotao ZHOU; Bao ZHOU; Jing XIAO
- Web page: https://patentgrep.com/patent/US20210078173A1

## CPC

- G05D 1/242: Means based on the reflection of waves generated by the vehicle (using passive navigation aids external to the vehicle G05D1/244; using signals provided by artificial sources external to the vehicle G05D1/247)
- B25J 9/163: {learning, adaptive, model based, rule based expert control}
- B25J 9/1666: {Avoiding collision or forbidden zones}
- G05D 1/0238: {using obstacle or wall sensors (G05D1/0246 and G05D1/0289 take precedence; lidar systems designed for anti-collision purposes G01S17/93)}
- G06T 17/00: Three-dimensional [3D] modelling for computer graphics
- G06T 2210/12: Bounding box
- G05D: SYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
- B25J: MANIPULATORS; CHAMBERS PROVIDED WITH MANIPULATION DEVICES ({manipulators specially adapted for use in surgery A61B34/70; manipulators used in cleaning hollow articles B08B9/04}; manipulators associated with rolling mills B21B39/20; manipulators associated with forging machines B21J13/10; {manipulators associated with picking-up and placing mechanisms B23P19/007}; means for holding wheels or parts thereof B60B30/00; {vehicles with ground-engaging propulsion means, e.g. walking members B62D57/02, B62D57/032; devices for picking-up and depositing articles or materials between conveyors B65G47/90, B65G47/91; manipulators with gripping or holding means for transferring packages B65H67/065}; cranes B66C; {manipulators used in the protection or supervision of pipe-line installations F17D5/00; walking equipment adapted for nuclear steam-generators F22B37/006}; manipulators specially adapted for, or associated with, nuclear reactors G21C; {apparatus used for handling wafers during manufacture or treatment of semiconductor H10P72/50})
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

A system and method of controlling obstacle avoidance of a robot. The method includes acquiring current positioning data of the robot, and determining whether an obstacle, spaced from a current position at a distance shorter than a preset distance, exists in a path from the current position to a target position or not according to the current positioning data and position data of all obstacles in a predetermined moving region; if the obstacle exists, calculating the shortest distance between the robot and the obstacle according to the acquired positioning data, a predetermined 3D model of the robot and a predetermined 3D model of the obstacle; calculating a due movement direction of the current robot according to the acquired positioning data, the calculated shortest distance and the 3D model of the obstacle, and controlling a movement posture of the robot according to the calculated movement direction to avoid the obstacles.

## Claims

### Claim 1

A system of controlling obstacle avoidance of a robot, comprising:
a determination module for acquiring a current positioning data of the robot in real time or regularly, and determining whether an obstacle spaced from a current position at a distance shorter than a preset distance, exists in a path from the current position to a target position or not according to the current positioning data and position data of all obstacles in a predetermined moving region;
a calculation module for calculating a shortest distance between the robot and the obstacle according to the current positioning data, a predetermined 3D model of the robot and a predetermined 3D model of the obstacle, if the obstacle is spaced from the current position at the distance shorter than the preset distance;
a control module for calculating a due movement direction of the robot according to the current positioning data, the shortest distance and the 3D model of the obstacle, and controlling a movement posture of the robot according to the due movement direction to avoid the obstacle.

### Claim 2 (depends on 1)

The system of controlling obstacle avoidance of the robot of claim 1, wherein the calculation module is further configured to:
preprocess the predetermined 3D model of the robot and the predetermined 3D model of the obstacle, and for each joint of the robot, determine a minimum convex polyhedron surrounding each joint by using a predetermined algorithm to convert a robot non-convex model into a convex model; carries out a sector equal division on the predetermined 3D model of the obstacle, and then carries out convex decomposition on single sectors subjected to the sector equal division; and
calculate the shortest distance between the robot and the obstacle by using a predetermined distance calculation rule according to the current positioning data, a preprocessed 3D model data of the robot and a preprocessed 3D model data of the obstacle.

### Claim 3 (depends on 2)

The system of controlling obstacle avoidance of the robot of claim 2, wherein the calculation module is configured to:
build a spherical bounding box of the 3D module of the obstacle to be subjected to sector equal division, and find out the sphere center of the spherical bounding box;
set an initial sector equal division plane passing through the sphere center, and rotates the plane for multiple times around the sphere center according to a preset rotating angle to equally divide the spherical bounding box into a plurality of sector portions, wherein the plurality of sector portions of the spherical bounding box serve as a plurality of model portions of the 3D model of the obstacle.

### Claim 4 (depends on 2)

The system of controlling obstacle avoidance of the robot of claim 2, wherein the predetermined distance calculation rule comprises:
selecting all the model portions obtained by the sector equal division of the 3D model of the obstacle according to the current positioning data of the robot and a predetermined selection algorithm to select a model portion to be subjected to distance calculation;
calculating the shortest distance between the robot and the selected model portion using a predetermined distance calculation algorithm according to the current positioning data and the selected model portion, wherein the shortest distance is the shortest distance between the robot and the obstacle;
and wherein the predetermined selection algorithm comprises:
by respectively taking the plurality of model portions of the 3D model of the obstacle as n nodes of the obstacle, and building a hash table, in the hash table key-values respectively correspond to deflection angles of an initial sector equal division plane to carry out model node management;
numbering all the model portions, and according to the numbers, building a deflection angle mapping relation of a sector model portion number i, wherein a hash function representing the deflection angle mapping relation is defined as
Hash(i)=i*(360°/n)
where Hash(i) represents a deflection angle between the sector model portion number i and the positive x axis of an obstacle coordinate system, wherein n is a total number of model positions;
building a kinematical equation of the robot, and calculating positions and postures of all the joints of the robot according to the kinematical equation, wherein the kinematical equation is:
Ti=A0A1A2 . . . Ai−1Ai
where Ak (k=1, 2, . . . , i) is a homogeneous transformation matrix among joint coordinate systems of the robot, A0 represents the current position matrix of the robot, and Ti represents the position and the posture of the ith joint relative to a robot coordinate system;
calculating coordinates Qi (x, y, z) of all the joints under the robot coordinate system during movement of the robot according to Ti, and calculating a transformation matrix Tr for transforming the robot coordinate system to the obstacle coordinate system, wherein coordinates Qi (xt, yt, zt) of each robot joint under the obstacle coordinate system are:
Qi(xt, yt, zt)=TrQi(x, y, z)
the deflection angle α of the each joint under the obstacle coordinate system is obtained through the following formula
tan

(
α
)
=
y
t
x
t
,
and corresponding numbered model portions are calculated according to the deflection angle α and the hash function Hash(i), and the model portions to be subjected to the distance calculation are selected on the basis of the correspondingly numbered model portions.

### Claim 5 (depends on 1)

The system of controlling obstacle avoidance of the robot of claim 1, wherein the control module is configured for:
projecting the 3D models of the robot and the obstacle into a same coordinate system plane;
calculating an area of an effective blocking region of a projection of the 3D model of the obstacle relative to the current position of the robot and the target position according to a predetermined projection analysis rule and coordinates of all points on the outer contour of a projection region obtained by projecting the 3D model of the obstacle to the coordinate system plane;
determining a first preset type of obstacle avoidance parameter according to the shortest distance and an area of the effective blocking region, determining a second preset type of obstacle avoidance parameter according to a distance between the target position and the current position of the robot, and determining the current due movement direction of the robot according to the first preset type of obstacle avoidance parameter and the second preset type of obstacle avoidance parameter.

### Claim 6 (depends on 5)

The system of controlling obstacle avoidance of the robot of claim 5, wherein the predetermined projection analysis rule is as follows:
setting a position point P1 on the coordinate system plane to represent the current position of the robot, wherein a position point P2 is the target position, a projection region P3 is a projection of the 3D model of the obstacle in the coordinate system plane, and P1 and P2 are connected in the coordinate system plane to obtain a straight line J;
if the straight line J and the projection region P3 do not have an intersection or only have one intersection, determining that no effective blocking region exists;
if the straight line J and the projection region P3 have more than one intersection, partitioning the projection into two portions by the straight line J; finding any point Ps in the projection region P3, making a perpendicular line of the straight line J in a manner of passing through Ps, and setting an intersection between the perpendicular line and the straight line J as PJ, thus obtaining a vector {right arrow over (PJPS)}; calculating an included angle θ between the vector d of the shortest distance and the vector {right arrow over (PJPS)}; if the included angle θ is an acute angle, determining that the region where the point Ps is located is the effective blocking region, or if the included angle θ is not an acute angle, determining that the region where the point Ps is located is not the effective blocking region.

### Claim 7 (depends on 5)

The system of controlling obstacle avoidance of the robot of claim 5, wherein the first preset type of obstacle avoidance parameter is a virtual repulsive force, and the second preset type of obstacle avoidance parameter is a virtual attractive force; and the control module is configured for:
calculating the virtual repulsive force acting on the robot by using a first calculation rule according to the calculated shortest distance and the area of the effective blocking region;
calculating the virtual attractive force acting on the robot by using a second calculation rule according to the distance between the current position and the target point position;
calculating a resultant force direction of the virtual attractive force and the virtual repulsive force, which serves as the current due movement direction of the robot.

### Claim 8 (depends on 7)

The system of controlling obstacle avoidance of the robot of claim 7, wherein the first calculation rule is as follows:
setting the vector of the shortest distance between the robot and the obstacle as {right arrow over (d)}, setting the area of the effective blocking region as S, and setting the virtual repulsive force from the obstacle to the robot as {right arrow over (F)}r, wherein
F
r
=
f

(
d
,
s
)
=
{
0
d
>
d
0
k
r
d
+
b
r
d
≤
d
0
,
s
≤
s
0
k
r
d
*
s
s
0
+
b
r
d
≤
d
0
,
s
>
s
0
}
where {right arrow over (d)} is the vector of the shortest distance between the robot and the obstacle, S is the area of the effective blocking region, {right arrow over (F)}r is the virtual repulsive force from the obstacle to the robot, kr and br represent preset virtual repulsive force coefficients, s0 represents a preset area threshold value of the effective blocking region, and d0 represents a preset distance threshold value; and the direction of {right arrow over (F)}r is the same as that of the shortest distance.

### Claim 9 (depends on 7)

The system of controlling obstacle avoidance of the robot of claim 7, wherein the second calculation rule is as follows:
Ft=kt*dt
where {right arrow over (F)}t is the virtual attractive force from the target position to the robot, kt represents a preset attractive force coefficient, dt represents a distance between the target position and the current position of the robot, and the direction of the {right arrow over (F)}t is towards the target position.

### Claim 10

A method of obstacle avoidance of a robot, comprising:
A1, acquiring a current positioning data of the robot in real time or regularly, and determining whether an obstacle spaced from a current position at a distance shorter than a preset distance, exists in a path from the current position to a target position or not according to the current positioning data and position data of all obstacles in a predetermined moving region;
A2, if the obstacle spaced from the current position at the distance shorter than the preset distance, calculating a shortest distance between the robot and the obstacle according to the current positioning data, a predetermined 3D model of the robot and a predetermined 3D model of the obstacle;
A3, calculating a due movement direction of the current robot according to the current positioning data, the calculated shortest distance and the 3D model of the obstacle, and controlling a movement posture of the robot according to the due movement direction to avoid the obstacles.

### Claim 11 (depends on 10)

The method of obstacle avoidance of the robot of claim 10, wherein the step A2 comprises:
preprocessing the predetermined 3D model of the robot and the predetermined 3D model of the obstacle, and for each joint of the robot, determining a minimum convex polyhedron surrounding each joint by directly using a predetermined algorithm to convert the robot non-convex model into a convex model;
carrying out a sector equal division on the predetermined 3D model of the obstacle, and then carrying out a convex decomposition on single sectors subjected to the sector equal division;
calculating the shortest distance between the robot and the obstacle by using a predetermined distance calculation rule according to the current positioning data, a preprocessed 3D model data of the robot and a preprocessed 3D model data of the obstacle.

### Claim 12 (depends on 11)

The method of obstacle avoidance of the robot of claim 11, wherein the step A2 further comprises:
building a spherical bounding box of the 3D model of the obstacle to be subjected to the sector equal division, and finding out the sphere center of the spherical bounding box;
setting an initial sector equal division plane passing through the sphere center, and rotating the plane for multiple times around the sphere center according to a preset rotating angle to equally divide the spherical bounding box into a plurality of sector portions, wherein the plurality of sector portions of the spherical bounding box serve as a plurality of model portions of the 3D model of the obstacle.

### Claim 13 (depends on 11)

The method of obstacle avoidance of the robot of claim 11, wherein the predetermined distance calculation rule comprises:
selecting all the model portions obtained by the sector equal division of the 3D model of the obstacle according to the current positioning data of the robot and a predetermined selection algorithm to select a model portion to be subjected to distance calculation;
calculating the shortest distance between the robot and the selected model portion by using a predetermined distance calculation algorithm according to the current positioning data and the selected model portion, wherein the shortest distance is the shortest distance between the robot and the obstacle;
and wherein the predetermined selection algorithm comprises:
by respectively taking the plurality of model portions obtained by the sector equal division of the 3D model of the obstacle as a plurality of nodes of the obstacle, and building a hash table, in the hash table key-values respectively correspond to deflection angles of an initial sector equal division plane to carry out model node management;
numbering all the model portions, and according to the numbers, building a deflection angle mapping relation of a sector model portion number i, wherein a hash function representing the deflection angle mapping relation is defined as
Hash(i)=i*(360°/n)
where Hash(i) represents a deflection angle between the sector model portion number i and the positive x axis of an obstacle coordinate system, wherein n is a total number of model positions;
building a kinematical equation of the robot, and calculating positions and postures of all the joints of the robot according to the kinematical equation, wherein the kinematical equation is:
Ti=A0A1A2 . . . Ai−1Ai
where Ak (k=1, 2, . . . , i) is a homogeneous transformation matrix among joint coordinate systems of the robot, A0 represents the current position matrix of the robot, and Ti represents the position and the posture of the ith joint relative to a robot coordinate system;
calculating coordinates Qi (x, y, z) of all the joints under the robot coordinate system during moving of the robot according to Ti, and calculating a transformation matrix Tr for transforming the robot coordinate system to the obstacle coordinate system, wherein coordinates Qi (xt, yt, zt) of each robot joint under the obstacle coordinate system are:
Qi(xt, yt, zt)=TrQi(x, y, z)
the deflection angle α of each joint under the obstacle coordinate system is obtained through the following formula
tan

(
α
)
=
y
t
x
t
,
and corresponding numbered model portions are calculated according to the deflection angle α and the hash function Hash(i), and the model portions to be subjected to the distance calculation are selected on the basis of the correspondingly numbered model portions.

### Claim 14 (depends on 10)

The method of obstacle avoidance of the robot of claim 10, wherein the step A3 comprises:
projecting the 3D models of the robot and the obstacle into a same coordinate system plane;
calculating an area of an effective blocking region of a projection of the 3D model of the obstacle relative to the current position of the robot and the target position according to a predetermined projection analysis rule and coordinates of all points on the outer contour of a projection region obtained by projecting the 3D model of the obstacle to the coordinate system plane;
determining a first preset type of obstacle avoidance parameter according to the shortest distance and an area of the effective blocking region, determining a second preset type of obstacle avoidance parameter according to a distance between the target position and the current position of the robot, and determining the current due movement direction of the robot according to the first preset type of obstacle avoidance parameter and the second preset type of obstacle avoidance parameter.

### Claim 15 (depends on 14)

The method of obstacle avoidance of the robot of claim 14, wherein the predetermined projection analysis rule is as follows:
setting a position point P1 on the coordinate system plane to represent the current position of the robot, wherein a position point P2 is the target position, a projection region P3 is a projection of the 3D model of the obstacle in the coordinate system plane, and P1 and P2 are connected in the coordinate system plane to obtain a straight line J;
if the straight line J and the projection region P3 do not have an intersection or only have one intersection, determining that no effective blocking region exists;
if the straight line J and the projection region P3 have more than one intersection, partitioning the projection into two portions by the straight line J; finding any point Ps in the projection region P3, making a perpendicular line of the straight line J in a manner of passing through Ps, and setting an intersection between the perpendicular line and the straight line J as PJ, thus obtaining a vector {right arrow over (PJPS)}; calculating an included angle θ between the vector {right arrow over (d)} of the shortest distance and the vector {right arrow over (PJPS)}; if the included angle θ is an acute angle, determining that the region where the point Ps is located is the effective blocking region, or if the included angle θ is not an acute angle, determining that the region where the point Ps is located is not the effective blocking region.

### Claim 16 (depends on 14)

The method of obstacle avoidance of the robot of claim 14, wherein the first preset type of obstacle avoidance parameter is a virtual repulsive force, and the second preset type of obstacle avoidance parameter is a virtual attractive force; and the step A3 further comprises:
calculating the virtual repulsive force acting on the robot by using a first calculation rule according to the calculated shortest distance and the area of the effective blocking region;
calculating the virtual attractive force acting on the robot by using a second calculation rule according to the distance between the current position and the target point position;
calculating a resultant force direction of the virtual attractive force and the virtual repulsive force, which serves as the current due movement direction of the robot.

### Claim 17 (depends on 16)

The method of obstacle avoidance of the robot of claim 16, wherein the first calculation rule is as follows:
setting the vector of the shortest distance between the robot and the obstacle as {right arrow over (d)}, setting the area of the effective blocking region as S, and setting the virtual repulsive force from the obstacle to the robot as {right arrow over (F)}r, wherein
F
r
=
f

(
d
,
s
)
=
{
0
d
>
d
0
k
r
d
+
b
r
d
≤
d
0
,
s
≤
s
0
k
r
d
*
s
s
0
+
b
r
d
≤
d
0
,
s
>
s
0
}
where {right arrow over (d)} is the vector of the shortest distance between the robot and the obstacle, S is the area of the effective blocking region, {right arrow over (F)}r is the virtual repulsive force from the obstacle to the robot, kr and br represents preset virtual repulsive force coefficients, s0 represents a preset area threshold value of the effective blocking region, and d0 represents a preset distance threshold value; and the direction of {right arrow over (F)}r is the same as that of the shortest distance.

### Claim 18 (depends on 16)

The method of obstacle avoidance of the robot of claim 16, wherein the second calculation rule is as follows:
Ft=kt*dt
where {right arrow over (F)}t is the virtual attractive force from the target position to the robot, kt represents a preset attractive force coefficient, dt represents a distance between the target position and the current position of the robot, and the direction of {right arrow over (F)}t is towards the target position.

### Claim 19

A robot, comprising a processor and a memory, wherein the memory stores a system of controlling obstacle avoidance of the robot, and the system of controlling obstacle avoidance of the robot may be executed by the processor to implement following steps:
A1, acquiring a current positioning data of the robot in real time or regularly, and determining whether an obstacle spaced from a current position at a distance shorter than a preset distance, exists in a path from the current position to a target position or not according to the current positioning data and position data of all obstacles in a predetermined moving region;
A2, if the obstacle, spaced from the current position at the distance shorter than the preset distance, calculating a shortest distance between the robot and the obstacle according to the current positioning data, a predetermined 3D model of the robot and a predetermined 3D model of the obstacle;
A3, calculating a due movement direction of the current robot according to the current positioning data, the calculated shortest distance and the 3D model of the obstacle, and controlling a movement posture of the robot according to the due movement direction to avoid the obstacles.

### Claim 20

(canceled)
