Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
A METHOD AND APPARATUS FOR PERFORMING CONTROL OF A MOVEMENT OF A ROBOT ARM
Document Type and Number:
WIPO Patent Application WO/2019/008075
Kind Code:
A1
Abstract:
A method for computing joint torques applied by actuators (2) to perform a control of a movement of a robot arm having several degrees of freedom, DoF, the method comprising the steps of providing (S1) by a trajectory generator trajectory vectors, x, specifying a desired trajectory of the robot arm for each degree of freedom, DoF; mapping (S2) the trajectory vectors, x, to corresponding latent representation vectors, a, which capture inherent properties of the robot arm using basis functions, A, with trained parameters; multiplying (S3) the latent representation vectors, a, with trained core tensors, G, to compute the joint torques, t, for each degree of freedom, DoF.

Inventors:
BAIER STEPHAN (DE)
TRESP VOLKER (DE)
Application Number:
PCT/EP2018/068183
Publication Date:
January 10, 2019
Filing Date:
July 05, 2018
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
SIEMENS AG (DE)
International Classes:
B25J9/16
Foreign References:
US20160221189A12016-08-04
Other References:
ZHOU CHENG ET AL: "Motion planning for redundant free-floating space robot with local optimization of reaction torque and joint torque simultaneously", 2016 IEEE INTERNATIONAL CONFERENCE ON ROBOTICS AND BIOMIMETICS (ROBIO), IEEE, 3 December 2016 (2016-12-03), pages 344 - 349, XP033071466, DOI: 10.1109/ROBIO.2016.7866346
Download PDF:
Claims:
Patent claims

1. A method for computing joint torques applied by actuators to perform a control of a movement of a robot arm having sev- eral degrees of freedom, DoF,

the method comprising the steps of:

(a) providing (SI) by a trajectory generator trajectory vectors, x, specifying a desired trajectory compris- ing a position, velocity and acceleration of the robot arm for each degree of freedom, DoF;

(b) mapping (S2) the trajectory vectors, x, to corresponding latent representation vectors, a, which cap- ture inherent properties of the robot arm using basis functions, A, with trained parameters;

(c) multiplying (S3) the latent representation vectors, a, with trained core tensors, G, to compute the joint torques, t, for each degree of freedom, DoF.

2. The method according to claim 1 wherein each joint torque, t, is calculated as the sum over the weighted outer product of the latent representation vectors, a.

3. The method according to claim 1 wherein each joint torque, t, is calculated as the weighted inner product of the latent representation vectors, a. 4. The method according to any of the preceding claims 1 to 3 wherein the basis functions, A, comprise continuous basis functions .

5. The method according to claim 4 wherein the basis func- tions, A, comprise

Gaussian basis functions,

linear basis functions and/or

polynomial basis functions.

6. The method according to any of the preceding claims 1 to 5 wherein the trajectory vectors, x, comprise

a joint position vector, xi,

a joint velocity vector, x2, and/or

a joint acceleration vector, x3.

7. The method according to any of the preceding claims 1 to 6 wherein the basis functions, A, and the core tensors, G, are trained on a data set comprising joint torques, t, and corresponding trajectories.

8. The method according to claim 7 wherein the data set is collected during movement of the robot arm.

9. The method according to claim 7 wherein the basis functions, A, are trained using a maximum likelihood approach.

10. The method according to any of the preceding claims 1 to 9 wherein the computed joint torques, t, are applied to joints of the robot arm by actuators to perform a feedforward or a feedback control of the movement of the robot arm.

11. A controller for performing a control of a movement of robot arm having several degrees of freedom, DoF,

said controler (1) comprising:

(a) a trajectory generator (1A) which is configured to provide trajectory vectors, x, specifying a desired trajectory of the robot arm for each degree of free dom, DoF; a computation unit (IB) adapted to map the generated trajectory vectors, x, to corresponding latent representation vectors, a, which capture inherent properties of the robot arm using basis functions, A, with trained parameters and further configured to multiply the latent representation vectors, a, with trained core tensors, G, to compute the joint torques, t, for each degree of freedom, DoF.

12. The controller according to claim 11 wherein the control- ler (1) is connected to actuators (2) controlled by the controller (1) and configured to apply the computed joint torques, t, to joints of said robot arm to control its movement.

13. A robotic system comprising at least one robot arm having joints to which joint torques, t, are applied by actuators

(2) controlled by a controller (1) according to claim 11 or 12.

14. The robotic system according to claim 13 wherein the con- troller (1) is adapted to perform a feedforward or a feedback control of the movement of the robot arm of said robotic system.

Description:
Description

A method and apparatus for performing control of a movement of a robot arm

The invention relates to a method and apparatus for computing joint torques applied by actuators to perform a control of a movement of a robot arm having several degrees of freedom. A robot arm which may be used in a production facility can comprise several joints providing several degrees of freedom for the movement of the robot arm. Within model-based robot control, an inverse dynamics model can be used to compute the necessary joint torques of actuators of the robot arm for the execution of a desired movement of the respective robot arm. A feedforward control command can be calculated using a rigid-body formulation using vectors of joint positions, joint velocities, and joint accelerations. However, in practice, many nonlinearities such as friction or actuator forces can have an impact on the movement of the robot arm. Consequently, nonlinear regression techniques show a superior performance in inferring required joint torques for feedforward robot control of a robot arm. The movement of a robot arm is specified as positions, velocities and accelerations for all degrees of freedom of the robot arm. The goal is to estimate a function from the desired movement of the robot arm to the required joint torques. Parameters of the function can be estimated offline using collected trajectories of the robot arm.

Accordingly, it is an object of the present invention to provide a method and apparatus for performing an accurate control of a movement of a robot arm where the movement of the robot arm is controlled precisely and which shows good per- formance even in case of nonlinearities of forces having an impact on the movement of the robot arm. This object is achieved according to a first aspect of the present invention by a method for computing joint torques applied by actuators to perform a control of a movement of a robot arm having several degrees of freedom comprising the features of claim 1.

The invention provides according to the first aspect a method for computing joint torques applied by actuators to perform a control of a movement of a robot arm having several degrees of freedom,

wherein the method comprises the steps of:

providing by a trajectory generator trajectory vectors specifying a desired trajectory comprising a position, velocity and acceleration of the robot arm for each degree of freedom, mapping the trajectory vectors to corresponding latent representation vectors which capture inherent properties of the robot arm using basis functions with trained parameters and multiplying the latent representation vectors with trained core tensors to compute the joint torques for each degree of freedom.

In a possible embodiment of the method according to the first aspect of the present invention, trajectory vectors specifying a monitored current trajectory of the robot arm are also fedback and compared with the trajectory vectors specifying a desired trajectory of the robot arm to calculate tracking errors and to provide a feedback control of the robot arm based on the calculated tracking errors. In a further possible embodiment of the method according to the first aspect of the present invention, each joint torque is calculated as the sum over the weighted outer product of the latent representation vectors. In a further possible alternative embodiment each joint torque is calculated as the weighted inner product of the latent representation vectors. In a still further possible embodiment of the method according to the first aspect of the present invention, the basis functions comprise continuous basis functions. In a possible embodiment of the method according to the first aspect of the present invention, the basis functions comprise Gaussian basis functions.

In a further possible embodiment of the method according to the first aspect of the present invention, the basis functions comprise linear basis functions.

In a still further possible embodiment of the method according to the first aspect of the present invention, the basis functions comprise polynomial basis functions.

In a further possible embodiment of the method according to the first aspect of the present invention, the trajectory vectors comprise a joint position vector of joint positions, a joint velocity vector of joint velocities and/or

a joint acceleration vector of joint accelerations.

In a possible embodiment of the method according to the first aspect of the present invention, the basis functions and the core tensors are trained on a data set comprising joint torques and corresponding trajectories.

In a still further possible embodiment, the data set is collected during movement of the robot arm.

In a still further possible embodiment of the method according to the first aspect of the present invention, the basis functions are trained using a maximum likelihood approach. In a still further possible embodiment of the method according to the first aspect of the present invention, the computed joint torques are applied to joints of the robot arm by actuators to perform a feedforward or a feedback control of the movement of the robot arm.

The invention further provides according to a second aspect a controller for performing a control of a movement of a robot arm having several degrees of freedom comprising the features of claim 11.

The invention provides according to the second aspect a con- troller for performing a control of a movement of a robot arm having several degrees of freedom,

said control apparatus comprising:

a trajectory generator which is configured to provide trajectory vectors specifying a desired trajectory comprising a po- sition, velocity and acceleration of the robot arm for each degree of freedom; and

a computation unit adapted to map the generated trajectory vectors to corresponding latent representation vectors which capture inherent properties of the robot arm using basis functions with trained parameters and further configured to multiply the latent representation vectors with trained core tensors to compute the joint torques for each degree of freedom. In a possible embodiment of the controller according to the second aspect of the present invention, the controller is connected to actuators controlled by the controller and configured to apply the computed joint torques to joints of said robot arm to control its movement.

The invention further provides according to a third aspect a robotic system comprising the features of claim 13.

The invention provides according to the third aspect a robot- ic system comprising at least one robot arm having joints to which joint torques are applied by actuators controlled by a controller according to the second aspect of the present invention . In a possible embodiment of the robotic system according to the third aspect of the present invention, the controller is adapted to perform a feedforward control of the movement of the robot arm of said robotic system.

In a further alternative embodiment of the robotic system ac cording to the second aspect of the present invention, the controller is adapted to perform a feedback control of the movement of the robot arm of said robotic system.

In the following, possible embodiments of the different aspects of the present invention are described in more detail with reference to the enclosed figures.

Fig. 1 shows a flowchart of a possible exemplary embodiment of a method for computing joint torques according to the first aspect of the present invention;

Fig. 2 shows a block diagram of a possible exemplary embodiment of a controller for performing a control of a movement of a robot arm according to the second aspect of the present invention;

Fig. 3 shows a schematic diagram for illustrating the operation of the method and apparatus according to the present invention.

As can be seen in the flowchart of Fig. 1, the method accord ing to the first aspect of the present invention for computing joint torques applied by actuators to perform a control of a movement of a robot arm having several degrees of freedom can comprise several main steps.

In a first step SI, trajectory vectors x can be provided by a trajectory generator wherein the trajectory vectors x specify a desired trajectory of the robot arm for each degree of freedom. The desired trajectory comprises a position, velocity and acceleration of the robot arm for each degree of freedom, DoF. In a second step S2, the provided trajectory vectors x are mapped to corresponding latent representation vectors a which capture inherent properties of the robot arm using basis functions A with trained parameters. In a further step S3, the latent representation vectors a are multiplied with trained core tensors G to compute joint torques t for each degree of freedom, DoF.

These main steps SI, S2, S3 are also illustrated schematical- ly in Fig. 3. The trajectory vectors x can comprise in a possible exemplary embodiment three different vectors xl, x2, x3.

The first vector xl is a joint position vector indicating the joint positions of all joints of the robot arm to be controlled. The joint position vector xl includes a number of joint positions p corresponding to the degree of freedom DoF of the robot arm. The joint position vector xl includes the positions P of all joints of the robot arm to be controlled.

The trajectory vectors further comprise a second vector x2 which is a joint velocity vector including all velocities of the joints of the robot arm to be controlled. The third trajectory vector x3 is a joint acceleration vector including all joint accelerations of the joints of the ro

bot arm to be controlled.

The trajectory vectors xl, x2, x3 specify a desired trajecto- ry of the robot arm for each degree of freedom. The trajectory vectors xl, x2, x3 are generated in a preferred embodiment by a trajectory generator in step SI. The provided trajectory vectors xl, x2, x3 are mapped in the second step S2 automatically to corresponding latent representation vectors a, which capture inherent properties of the robot arm using basis functions Al, A2, A3 with trained pa- rameters . These basis functions A can comprise in possible embodiments Gaussian basis functions, linear basis functions and/or polynomial basis functions. Basis functions A are continuous basis functions which are trained on a data set comprising joint torques t and corresponding trajectories of the robot arm. This data set can be collected during movement of the robot arm. In a possible embodiment, the basis functions A can be trained using a maximum likelihood approach.

In step S3, the latent representation vectors a are multi- plied with trained core tensors G to compute the joint torques t for each degree of freedom DoF as also illustrated in Fig. 3. The number of trained core tensors G corresponds to the number of degrees of freedom DoF of the robot arm to be controlled. The result is a torque sensor T comprising the joint torques tl, t2 to t D0 F for each robot arm joint. The computed joint torques t of the torque vector T are applied to joints of the robot arm by actuators such as step motors to perform a feedforward or a feedback control of the movement of the robot arm.

In a possible embodiment, each joint torque t is calculated in step S3 as the sum over the weighted outer product of the latent representation vectors a. In an alternative embodiment, each joint torque t is calculated in step S3 as the weighted inner product of the latent representation vectors a .

In a possible embodiment, the trajectory vectors m specifying a monitored current trajectory of the robot arm are fedback and compared with the trajectory vectors specifying a desired trajectory of the robot arm to calculate tracking errors e and to provide a feedback control of the robot arm based on the calculated tracking errors e. In this embodiment, the current trajectory of the robot arm is monitored by using sensors attached to the robot arm or deployed in the vicinity of the robot arm. From the sensor data, a trajectory vector specifying a current trajectory of the robot arm is calculat- ed and fedback for comparison with the trajectory vector x generated by the trajectory generator which specifies a desired trajectory of the robot arm. By comparing the monitored trajectory vectors with the generated desired trajectory vectors, tracking errors e can be calculated to provide a feed- back control to the robot arm based on the calculated tracking errors e. Accordingly, the method according to the first aspect of the present invention can be used for a feedforward control or for a feedback control of the robot arm. Fig. 2 shows a block diagram of a possible exemplary embodiment of a controller for performing a control of a movement of a robot arm having several degrees of freedom DoF according to the second aspect of the present invention. In the illustrated exemplary embodiment, the control apparatus 1 comprises two main components. In the illustrated embodiment, the controller 1 comprises a trajectory generator 1A which is configured to provide trajectory vectors x specifying a desired trajectory of the robot arm for each degree of freedom DoF. The control apparatus 1 further comprises a computation unit IB adapted to map the generated trajectory vectors x received from the trajectory generator 1A to corresponding latent representations a which capture inherent properties of the robot arm using basis functions A with trained parameters. The computation unit IB is further configured to multiply the latent representation vectors a with trained core tensors G to compute the joint torques t for each degree of freedom DoF of the robot arm. As illustrated in Fig. 2, a computation unit IB can output a torque vector T including the joint torques t for each degree of freedom DoF of the robot arm to corresponding actuators 2. The controller 1 is connected to the actuators 2 which are controlled by the controller and which are configured to apply the computed joint torques t of the calculated torque vector T to joints of the robot arm to control its movements in a three- dimensional space. In a possible embodiment, the movement of the robot arm is controlled in a feedforward control by the forces F applied by the actuators 2 to its joints without feedback. In an alternative embodiment, a current trajectory of the robot arm is monitored using sensors and fedback to the controller 1. In this embodiment, the computation unit IB of the controller 1 can comprise a comparator which compares the trajectory vectors x generated by the trajectory generator 1A specifying a desired trajectory of the robot arm with the fedback monitored current trajectory of the robot arm. By comparing the desired trajectory vectors with the monitored trajectory vectors, tracking errors e can be calculated by the computation unit IB to provide a feedback control of the robot arm based on the calculated tracking errors e. The method and control apparatus according to the present invention is based on an approach of decomposing sparse tensors. The method and control apparatus exploit the inherent three-way interaction of positions p x velocities p x accelerations p . The method uses basis functions A that can map continuous in- puts to latent representations a of the tensor decompositions. In this way, functional versions of the tensor decompositions can be retrieved. The basis functions A also imply smoothness of the inputs such that the used data model is able to generalize well in spite of the sparsity. By using multivariate basis functions A, it is possible to group inputs, such that the dimensionality of the tensor decompositions can be reduced. In the employed inverse dynamics model, the joint positions, velocities and accelerations of all degrees of freedom DoF of the robot arm are grouped resulting in a tensor Y of dimension three. This allows to apply a

Tucker decomposition. The number of degrees of freedom DoF of the robot arm can vary depending on the use case. Tensor decompositions form a generalization of a low rank matrix factorization to higher order tensors. There are different ways of decomposing a higher order tensor.

The Tucker decomposition factorizes a tensor into

S matrices, including latent representation for all entities in each mode. The tensor elements are expressed by the interaction of the latent representations, weighted by a core tensor such that

with The Tucker decomposition does not scale to high dimensions, as the core tensor G grows exponentially with the dimensionality of the tensor.

A special case of the Tucker decomposition is the low-rank PARAFAC decomposition, where the core tensor G is diagonal. All other interactions are left out, such that

with As PARAFAC only models the diagonal of the core

tensor G, its parameters scale linearly with the order of the tensor .

A regression problem is considered with discrete input variables. Each of the input variables for as

sumes one out of discrete values. Furthermore, a de-

pendent variable y is considered A regression function for a data set of N training examples is provided.

All training data samples are mapped to a sparse tensor The tensor is filled with

The remaining entries of the tensor, which do not occur in the training data, are left unknown. This results in Y being a sparse tensor.

The tensor Y is approximated using a low-rank tensor decomposition, e.g. the PARAFAC decomposition (see equation (2)). Using low ranks for f, the approximation results in a dense tensor Φ. It describes the outcome Y for all combinations of the input variables (y 1 ,...,v s ). However, it is difficult to compute and store the whole approximated tensor Φ; thus, only the parameters of the decomposition are stored. When predicting Y for a new set of input variables, the representations for that tuple are indexed, and the approximation can be computed on demand.

The proposed model so far only works for a discrete input space. Furthermore, it does not yet imply any smoothness on the values of the input variables. Although, this makes it a powerful, highly non-linear model, it is prone to

overfitting. If the input values follow a natural ordering, or if they are discretized from a continuous scale, the model requires more training samples to learn the smoothness implicitly. To introduce smoothness explicitly and to extend the model to continuous inputs, smooth basis functions A for the latent parameters of the decomposition are used. Instead of indexing the latent representation from a matrix, their values are computed using basis functions A. For example, all Ai in equation (2) can be modeled using a radial basis function This allows for continuous inputs The latent represen

tation is modeled based on the closeness of the input to the center of the radial basis function A. In this way, similar inputs induce similar representations. The parameters of the basis function A are optimized during training, to yield optimal regression results. The chosen low rank f is a

hyperparameter, which determines the number of basis functions A and therefore the model complexity. Also a mixture of discrete and continuous inputs can easily be modeled and used by applying the basis functions A only to continuous inputs, and learning representation matrices for the discrete input variables. It is also possible to group multiple inputs together into one tensor mode, such that where

denotes the number of grouped inputs. In this way, the repre- sentation of a tensor mode is calculated given a vector of continuous inputs. The grouping of input variables reduces the dimensionality of the tensor decomposition, and thus the number of free parameters. A functional Tucker model for the approximation of the joint torques t, necessary to perform a movement of a robot arm can be used. Fig. 3 shows the model schematically. A robot arm with degrees of freedom DoF is considered. The vectors xi,X2,x 3 describe the desired positions p, velocities , and accelerations for each of the c DoFs . The vector de

scribes the corresponding joint torques t.

The function y = f{x 1 ,x 2 ,x-i) can be modeled using a functional tensor decomposition model. Each input vector x is modeled by one dimension in the tensor decomposition, resulting in third-order tensors Y, which describe the joint torques t. Each element of the vector y can be modeled in a separate model. The resulting three-dimensional tensors of the form positions x velocities x accelerations are then factorized using the Tucker decomposition with limited rank, resulting in a tensor such that

Wherein A i to A 3 are basic functions, which map from the c- dimensional input to the latent representations of the Tucker model. The representations can be modeled using multivariate Gaussian kernels, such that with representing the centers and weighting

the distance from the centers in the c-dimensional input space. The closer a data point is to the center of a basis function A, the higher is its activation. Thus, the centers of the basis functions A can be seen as landmarks in the in- put space. All three-way interactions between the representations of the three input dimensions, are explicitly modeled and weighted by the elements of the core tensor G.

Model training can be based on a maximum likelihood approach. The negative log-likelihood of the collected data set

is minimized as follows:

where Θ includes the parameters of the decomposition and the basis functions A. Assuming a Gaussian distribution, one gets the squared error cost function

The cost function C considers only known elements of the tensor, i.e., the sparsity of the tensor is exploited. Equation (8) can be minimized using gradient descent. As experimentally found the stochastic optimization algorithm Adam works best for this task. Adam dynamically optimizes the learning rate, individually for each parameter. The sampling of stochastic mini-batches for each update has also shown advantageous for speeding up training. To avoid overfitting, the training can be stopped when the performance on a validation set does not further improve.

The centers of the Gaussian kernel can be initialled in a preprocessing step, using k-means clusterings, such that

are minimized for where C contains clusters for

each of the three modes. All matrices D are initialized with the identity matrix. The elements of the core tensor G can be initialized randomly with a Gaussian distribution of mean zero and standard deviation 0.05. While training all parameters are further optimized.

The number of degrees of freedom DoF can vary according to the use case. For instance, a robot arm may comprise seven degrees of freedom. Further, data can be collected from the moving robot arm at varying sampling rates. The data can e.g. be collected from the moving robot at a frequency of 100 Hz for a time period of 7.5 minutes of movement. Such a dataset includes 21 input dimensions consisting of seven joint positions, seven joint velocities and seven joint accelerations. In this specific example, a first trajectory vector xl comprises seven position values p indicating the seven positions of the seven joints, the second trajectory vector x2 compris- es seven velocity values indicating the seven velocities of the seven joints and the third trajectory vector x3 comprises seven joint acceleration values indicating the ac

celerations of the seven joints of the robot arm. With the above-mentioned sampling rate, the complete data set consists in this specific example of 42482 samples. The data set can be split in a possible embodiment into a training data set and into a test data set. For instance, 90 % of the received data set can be used for training and 10 % of the received data set can be used as test data. Further, a percentage of the training set can be used as a validation data set. The model is learned on the training data set which models the seven joint torques t given its positions, velocities and accelerations. As baseline models, it is possible to consider linear regression, RBF-networks , as well as support vector regression. Using the Tucker decomposition of a high dimensional sparse tensor allows for modeling a three-way interaction (positions x velocities x accelerations) . In a possible embodiment, using stochastic gradient descent for training allows to only consider known elements in the tensor. This increases the computational feasibility of the decomposition. The use of basis functions A such as a Gaussian kernel allows for a mapping from continuous inputs to the latent representation a of the tensor decomposition. Further, the used basis functions A introduce smoothness such that similar inputs in- duce similar latent representations.

The method and controller according to the present invention allow for a more accurate feedforward robot control of the robot arm. This can further result in lower feedback gains and potentially less energy consumption when moving the robot arm. The method can also be used to reduce the engineering effort for tuning feedback controllers. The accurate

feedforward robot control provided by the method according to the first aspect of the present invention can be beneficial for example for production robots or CNC machines.

Any tensor decomposition model can be used for the proposed method according to the first aspect of the present inven- tion, e.g. PARAFAC, Tucker2. For parameter optimization, various techniques can be used, e.g. variants of stochastic gradient descent (e.g. RMSprop, Adam, etc.), alternating least squares or second order methods. With the method according to the present invention, a regression model is used based on tensor factorization for modeling an inverse dynamics function. The method is based on a decomposition of sparse tensors which comprise only a small number of entries. Representing the data with high dimensional sparse tensors Y forms the basis for the approximation of complex highly nonlinear functions. The decomposition of sparse tensors can be applied to a regression problem. With the method according to the present invention, the decomposition is applied to continuous inputs by learning or mapping from the continuous inputs to the latent representations a of the tensor decomposition using basis functions A. The method can be applied to a data set that consists of trajectories of a robot arm having several degrees of freedom DoF.