# US 2021/0046647 A1 · Position control method for servo, computer readable storage medium, and robot

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

- Number: US 2021/0046647 A1
- Document ID: US20210046647A1
- Status: Published application
- Kind: A1
- Application number: 16/713,012
- Filed: 2019-12-13
- Published: 2021-02-18
- Earliest claimed: 2019-08-15
- Assignees: Ubtech Robotics Corp Ltd
- Applicants: Ubtech Robotics Corp Ltd
- Inventors: Lifu Zhang; Wenhua Fan; Hanyu Sun; Youjun Xiong; Jianxin Pang
- Web page: https://patentgrep.com/patent/US20210046647A1

## CPC

- B25J 9/163: {learning, adaptive, model based, rule based expert control}
- B25J 9/1664: {characterised by motion, path, trajectory planning}
- H02P 23/0027: {using different modes of control depending on a parameter, e.g. the speed}
- H02P 23/0077: {Characterised by the use of a particular software algorithm}
- H02P 29/00: Arrangements for regulating or controlling electric motors, appropriate for both AC and DC motors (arrangements for starting electric motors H02P1/00; arrangements for stopping or slowing electric motors H02P3/00; control of motors that can be connected to two or more different electric power supplies H02P4/00; regulating or controlling the speed or torque of two or more electric motors H02P5/00; vector control H02P21/00)
- G05B 2219/41011: Adapt gain as function of followup error, model can be used
- G05B 2219/42018: Pid learning controller, gains adapted as function of previous error
- 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})
- H02P: CONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
- G05B: CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS (systems for controlling or regulating non-electric variables G05D; systems for regulating electric or magnetic variables G05F; control devices or systems insofar as characterised by mechanical features only G05G)

## Abstract

A position control method for a servo, includes: receiving, from a control terminal, a motion control command that comprises a motion planning parameter about position of an output shaft of the servo; acquiring speed information or time information indicated by the motion planning parameter, and determining a constant parameter control duration according to the speed information or time information; determining a control parameter corresponding to a constant parameter control stage according to the constant parameter control duration and a preset constant parameter; performing a transient adjustment to the servo when the constant parameter control stage ends, and changing the control parameter to an adaptive operation parameter when the transient adjustment ends; and controlling a rotation angle of the output shaft of the servo to perform a position control of the servo, based on duration values and control parameters corresponding to each of a plurality of control stages.

## Claims

### Claim 1

A computer-implemented position control method fora servo, comprising executing on a processor steps of:
receiving, from a control terminal, a motion control command that comprises a motion planning parameter about position of an output shaft of the servo;
acquiring speed information or time information indicated by the motion planning parameter, and determining a constant parameter control duration according to the speed information or time information;
determining a control parameter corresponding to a constant parameter control stage according to the constant parameter control duration and a preset constant parameter, the constant parameter control stage being a first stage in execution of the motion control command;
performing a transient adjustment to the servo when the constant parameter control stage ends, and changing the control parameter to an adaptive operation parameter when the transient adjustment ends; and
controlling a rotation angle of the output shall of the servo by a control algorithm to perform a position control of the servo, based on duration values and control parameters corresponding to each of a plurality of control stages;
wherein the control stages comprise the constant parameter control stage, a transition stage, and an adaptive parameter control stage, and the transition stage and the adaptive parameter control stage are a second stage and a third stage in the execution of the motion control command.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the step of performing a transient adjustment to the servo when the constant parameter control stage ends, and changing the control parameter to an adaptive operation parameter when the transient adjustment ends, comprises:
determining a transition duration of the transition stage when the constant parameter control stage ends;
calculating, within the transition duration, the control parameter corresponding to the transition stage according to a collected real-time parameter compensation value and the control parameter of the constant parameter control stage; and
performing the transient adjustment to the servo, based on the control parameter calculated in real time.

### Claim 3 (depends on 2)

The method according to claim 2, wherein the step of determining a transition duration of the transition stage when the constant parameter control stage ends, comprises:
acquiring a maximum control error value during the position control of the servo and motor current values collected at each time point;
calculating a transition duration value T2 of the transition stage according to a preset formula based on the maximum control error value and the motor current values, and determining the transition duration of the transition stage according to the transition duration value and a time point when the constant parameter control stage ends, wherein the preset formula is as follows: T2=T+k1·Max(abs(e(n)))+k2#(Σ0nI(n))/T1, where T represents a preset minimum transition duration value, Tl represents a duration value corresponding to the constant parameter control stage, Max(abs(e(n))) represents the maximum control error value, I(n) represents the nth one of the motor current values detected during the position control of the servo and n is an integer greater than zero, and K1 and k2 are preset coefficients greater than zero.

### Claim 4 (depends on 2)

The method according to claim 2, wherein the step of calculating, within the transition duration, the control parameter corresponding to the transition stage according to a collected real-time parameter compensation value and the control parameter of the constant parameter control stage, comprises:
acquiring real-time control error values during the position control of the servo according to a first preset formula, the first preset formula is as follows:
{
k
pa
=
t
*
k
3
*
e

(
n
)
2

/

T
2
k
ia
=
t
*
k
4
*
e

(
n
)
2

/

T
2
k
da
=
t
*
k
5
*
e

(
n
)
2

/

T
2
,
where K3, k4, and k5 represent preset coefficients greater than zero, T2 represents the transition duration, and t represents the real-time operating duration in the transition stage; and
calculating the control parameter corresponding to the transition stage according to a second preset formula, based on the real-time control error values and the control parameter of the constant parameter control stage, the second preset formula is as follows:
K[kp, ki, kd]=K0[kp0, ki0, kd0]+KA[kpa, kia, kda]*t/T2′t∈[0, T2], where K0[kp0, ki0, kd0] represents the control parameter corresponding to the constant parameter control stage, and KA[kpa, kia, kda] represents the real-time parameter compensation value.

### Claim 5 (depends on 1)

The method according to claim 1, wherein the step of performing a transient adjustment to the servo when the constant parameter control stage ends, and changing the control parameter to an adaptive operation parameter when the transient adjustment ends, comprises:
performing a transient adjustment to the servo when the constant parameter control stage ends, and acquiring real-time control error values during the position control of the servo when the transient adjustment ends; and
calculating the adaptive operation parameter corresponding to the adaptive parameter control stage according to the collected real-time control error values and the control parameter of the constant parameter control stage.

### Claim 6 (depends on 5)

The method according to claim 5, wherein the step of calculating the adaptive operation parameter corresponding to the adaptive parameter control stage according to the collected real-time control error values and the control parameter of the constant parameter control stage, comprises:
acquiring, at any time point, a real-time parameter compensation value corresponding to the real-time control error value e(n) according to a third preset formula, the third preset formula is as follows:
{
k
pa
=
k
3
*
e

(
n
)
2
k
ia
=
k
4
*
e

(
n
)
2
k
da
=
k
5
*
e

(
n
)
2
,
where k3, k4, and k5 represent preset coefficients greater than zero; and
calculating the adaptive operation parameter corresponding to the adaptive parameter control stage according to a fourth preset formula based on the real-time control error values and the control parameter of the constant parameter control stage, the fourth preset formula is as follows: K′[kp, ki, kd]=K0[kp0, ki0, kd0]+H′A[kpa, kia, kda], K0[kp0, ki0, kd0] represents the control parameter of the constant parameter control stage, and K′A[kpa, kia, kda] represents the real-time parameter compensation values.

### Claim 7 (depends on 1)

The method according to claim 1, wherein the step of receiving a motion control command from a control terminal, the motion control command comprising a motion planning parameter about position of an output shaft of the servo, comprises:
acquiring target position information about rotation of the output shaft in the motion control command, and detecting real-time position information of the output shaft of the servo;
reading the speed information in the motion control command, and calculating the constant parameter control duration of the constant parameter control stage according to the target position information, the real-time position information of the output shaft of the servo, and the speed information; or
reading the time information about rotation of the output shaft of the servo in the motion control command, and determining the time information as the constant parameter control duration of the constant parameter control stage.

### Claim 8

A robot comprising:
a servo;
one or more processors;
a storage; and
one or more computer programs stored in the storage and configured to be executed by the one or more processors, and the one or more computer programs being configured to execute a method, the method comprising steps of:
receiving, from a control terminal, a motion control command that comprises a motion planning parameter about position of an output shaft of the servo;
acquiring speed information or time information indicated by the motion planning parameter, and determining a constant parameter control duration according to the speed information or time information;
determining a control parameter corresponding to a constant parameter control stage according to the constant parameter control duration and a preset constant parameter, the constant parameter control stage being a first stage in execution of the motion control command;
performing a transient adjustment to the servo when the constant parameter control stage ends, and changing the control parameter to an adaptive operation parameter when the transient adjustment ends; and
controlling a rotation angle of the output shaft of the servo by a control algorithm to perform a position control of the servo, based on duration values and control parameters corresponding to each of a plurality of control stages;
wherein the control stages comprise the constant parameter control stage, a transition stage, and an adaptive parameter control stage, and the transition stage and the adaptive parameter control stage are a second stage and a third stage in the execution of the motion control command.

### Claim 9

A computer readable storage medium having stored therein instructions, which when executed by a robot, cause the robot to:
receive, from a control terminal, a motion control command that comprises a motion planning parameter about position of an output shaft of the servo;
acquire speed information or time information indicated by the motion planning parameter, and determine a constant parameter control duration according to the speed information or time information;
determine a control parameter corresponding to a constant parameter control stage according to the constant parameter control duration and a preset constant parameter, the constant parameter control stage being a first stage in execution of the motion control command;
perform a transient adjustment to the servo when the constant parameter control stage ends, and change the control parameter to an adaptive operation parameter when the transient adjustment ends; and
control a rotation angle of the output shaft of the servo by a control algorithm to perform a position control of the servo, based on duration values and control parameters corresponding to each of a plurality of control stages;
wherein the control stages comprise the constant parameter control stage, a transition stage, and an adaptive parameter control stage, and the transition stage and the adaptive parameter control stage are a second stage and a third stage in the execution of the motion control command.
