Disclosure of Invention
The invention provides a mechanical arm control method for automatic butt joint of a dynamic target, wherein a force prediction control system (FPC) and Dynamic Visual Prediction Control (DVPC) are cascaded in a control system corresponding to the control method, the FPC in the control system can improve the interaction capability of the mechanical arm and the external environment, DVPC can improve the perception capability of the mechanical arm to the environment, the limitation of a single sensor method can be overcome by the cascade connection of the two methods, the flexibility, the adaptability, the control performance and the execution efficiency of the mechanical arm are improved, and the effectiveness, the reliability and the accuracy of an automatic butt joint task of the mechanical arm are further improved.
The invention provides a mechanical arm control method for automatic butt joint of a dynamic target, which specifically comprises the following steps:
s1: a camera is arranged on the mechanical arm, and a force sensor is arranged on an end effector of the mechanical arm;
setting a plurality of characteristic points, wherein the characteristic points are sequentially connected to form a target, and the position of the target is fixed relative to a dynamic target;
S2: docking the mechanical arm end effector with a dynamic target, and acquiring a target image of the target through a camera to acquire expected image moment characteristics S d of the target in the target image;
S3: in the process of docking the mechanical arm end effector with a dynamic target, a camera acquires a target image in real time, and a real-time image moment characteristic S of the target is obtained through the real-time target image;
S4: the error between the actual external force F ext and the expected external force F ext d in the Cartesian coordinate system is converted into a unit inertial virtual force error F s e in the image feature space by sensing the actual external force F ext received by the mechanical arm end effector through a force sensor:
Where M c * represents the desired inertial matrix of the camera, The transformation matrix from the camera coordinate system to the mechanical arm terminal coordinate system is represented, and L s represents an image jacobian matrix corresponding to the real-time image moment feature S;
s5: establishing a state space equation of a force prediction control system:
Wherein F s e (k) represents a state variable of the current control step force prediction control system, F s e (k+1) represents a state variable of the next control step force prediction control system, S * (k) represents a control input variable of the force prediction control system, Y f (k) represents a control output variable of the force prediction control system, T represents a sampling period, m= -H, H represents a positive gain matrix, and k s represents a unit inertial stiffness matrix;
s6: converting a state space equation of the force prediction control system into a standard form for solving an optimization problem by a quadratic programming method:
Wherein J c denotes a loss function of the force predictive control system, A predicted input variable representing the current control step size of the force prediction control system,A state value representing the current control step F s e,An upper matrix representing the inequality constraints of the force predictive control system,A lower limit matrix representing the inequality constraints of the force predictive control system,
B f represents an extended state vector of the force predictive control systemAnd (3) withControl matrix of the relation between the control matrix, Q f represents weight matrix of error item of force prediction control system, R f represents weight matrix of input item of force prediction control system, A representsAnd (3) withA state matrix of the relation, T f represents a weight matrix of a terminal error term of the force prediction control system, D f represents a coefficient matrix of inequality constraint of the force prediction control system, A f represents a coefficient matrix of equality constraint of the force prediction control system, and b f represents an equality constraint matrix of the force prediction control system;
S7: the standard form of inputting the unit inertial virtual force error F s e into S6 obtains the predicted input variable of the force prediction control system Will predict input variablesAs the variation amount S * of the real-time image moment feature S, the reference image moment feature S r is calculated:
Sr=Sd-S*;
Calculating a visual characteristic error S e:
Se=S-Sr;
s8: establishing a state space equation of a dynamic visual prediction control system:
Wherein S (k) represents the state variable of the current control step dynamic visual predictive control system, S (k+1) represents the state variable of the next control step dynamic visual predictive control system, An image jacobian matrix corresponding to the desired image moment feature S d, v c (k) represents the camera speed output by the current control step dynamic visual prediction control system,Representing the variation of the real-time image moment characteristics S caused by the motion of the dynamic target, V c (k) represents the control input variable of the dynamic visual prediction control system, and Y s (k) represents the control output variable of the dynamic visual prediction control system;
S9: converting a state space equation of the dynamic visual prediction control system into a standard form for solving an optimization problem by a quadratic programming method:
wherein, Representing the predicted input variables of the dynamic visual prediction control system, J c representing the loss function of the dynamic visual prediction control system, S e k representing the state value of the current control step visual characteristic error S e, H s representing the quadratic coefficient matrix, E s representing the quadratic coefficient matrix,A lower matrix representing dynamic visual predictive control system inequality constraints,An upper limit matrix representing the inequality constraint of the dynamic visual prediction control system, D s represents a coefficient matrix of the inequality constraint of the dynamic visual prediction control system, A s represents a coefficient matrix of the equality constraint of the dynamic visual prediction control system, and b s represents an equality constraint matrix of the dynamic visual prediction control system;
S10: inputting the visual characteristic error S e into the standard form in S9 to obtain the predicted input variable of the dynamic visual prediction control system By predicting input variablesThe first element V c1 (k) of the model (a) calculates the camera speed V c (k), and calculates the joint speed of the mechanical arm according to the camera speed V c (k)Controlling the mechanical arm to control the joint speedAnd performing exercise.
Preferably, according to the target image, the expressions for calculating the desired image moment feature S d and the real-time image moment feature S are:
[xn,yn,an,θ,γ,α]T;
the calculation method of the expected image moment feature S d and the real-time image moment feature S comprises the following steps:
mpq=∫∫Oxpyqf(x,y)dxdy;
μij=∫∫O(x-xg)i(y-yg)jf(x,y)dxdy;
Wherein a * represents a desired area of a target in a target image, a represents an actual area of the target in the target image, Z * represents a depth between a camera and the target, m pq represents a continuous origin moment of the target image, O represents an image plane of the target image, f (x, y) represents a gray value of a pixel having coordinates (x, y) in the target image, μ ij represents a continuous center distance of the target image, and (x g=m10/m00,yg=m01/m00) represents coordinates of a center of gravity of the target image.
Preferably, the image feature space is a space corresponding to the image moment feature [ x n,yn,an,θ,γ,α]T ].
Preferably, the solving method of the unit inertial virtual force error F s e is as follows:
And (3) establishing a mechanical arm model without an inertia term, and converting the mechanical arm model into an image characteristic space expressed as:
wherein,
J s denotes the jacobian matrix of the image feature space, M (q) denotes the inertial matrix of the mechanical arm,Representing a Coriolis force matrix, g (q) representing a gravity term, τ representing a torque output term of the mechanical arm joint, J Tfext representing a torque term of the mechanical arm joint mapped to an actual external force,Representing the unit inertial virtual force of the projection of the actual external force to the image feature space, f s representing the unit inertial virtual force, Represents the first derivative of J;
The unit inertial virtual force F s is calculated under the expected inertial matrix M c * of the camera:
preferably, the method for establishing the state space equation of the force prediction control system comprises the following steps: the state space equation of the force prediction control system is established by introducing a positive gain matrix H in the visual admittance control of the image feature space.
Preferably, the loss function of the force predictive control system is:
Wherein, F s e (k+n|k) represents the unit inertial virtual force error corresponding to the k+n control step of the current control step prediction, F s e (k+i|k) represents the unit inertial virtual force error corresponding to the k+i control step of the current control step prediction, and S * (k+i|k) represents the prediction input variable of the force prediction control system corresponding to the k+i control step of the current control step prediction.
Preferably, the loss function of the dynamic visual predictive control system is:
Wherein S e (k+n|k) represents a visual characteristic error corresponding to the k+n control step of the current control step prediction, S e (k+i|k) represents a visual characteristic error corresponding to the k+i control step of the current control step prediction, and V C (k+i|k) represents a prediction input variable of the dynamic visual prediction control system corresponding to the k+i control step of the current control step prediction.
Preferably, the camera speed v c (k) is calculated as:
preferably, the speed of the mechanical arm joint The calculation method of (1) is as follows:
By transforming the matrix from the robot arm end coordinate system to the camera coordinate system according to the camera speed v c (k) Calculating the tail end speed v e of the mechanical arm, and calculating the joint speed of the mechanical arm according to the tail end speed v e of the mechanical arm through the inverse matrix J -1 of the jacobian matrix of the mechanical arm
Compared with the prior art, the invention has the following beneficial effects:
The position and the state of the target object can be sensed more comprehensively by comprehensively utilizing the information of vision and force sense, and the movement and the applied force of the tail end of the mechanical arm can be controlled more accurately, so that the efficiency and the reliability of the automatic butt joint task of the dynamic target are improved. Therefore, the control method for the mechanical arm for automatic butt joint of the dynamic target is provided, the limitation of a single sensor method can be overcome by combining visual and force sense information, the cooperative control of the movement of the mechanical arm and the contact force of the tail end is realized, the high-precision control and the perception capability of the mechanical arm when the dynamic butt joint task is executed are improved, and the effectiveness, the adaptability, the accuracy and the stability of the automatic butt joint process of the dynamic target are improved. Meanwhile, the control method of the invention uses the extended Kalman filter to estimate the motion speed of the dynamic target, and compensates the camera speed control quantity output by the dynamic vision prediction control system, thereby improving the dynamic butt joint capability of the mechanical arm on the dynamic target and effectively realizing the high-precision dynamic butt joint of the tail end of the mechanical arm.
Detailed Description
Hereinafter, embodiments of the present invention will be described with reference to the accompanying drawings. In the following description, like modules are denoted by like reference numerals. In the case of the same reference numerals, their names and functions are also the same. Therefore, a detailed description thereof will not be repeated.
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be further described in detail with reference to the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not to be construed as limiting the invention.
As shown in fig. 1, an embodiment of the present invention provides a control method for a mechanical arm for automatic docking of a dynamic target, where a control system of the control method is cascaded with two different Model Predictive Control (MPC), namely, a force predictive control system (FPC) and a dynamic visual predictive control system (DVPC), and specifically includes the following steps:
S1: the camera and the force sensor are arranged on the mechanical arm, and the camera and the mechanical arm are relatively fixed and can be arranged on an end effector of the mechanical arm to move along with the mechanical arm. The force sensor is arranged on the mechanical arm end effector and moves along with the mechanical arm, and the force sensor can sense the actual external force condition of the mechanical arm end effector in real time.
And randomly setting a plurality of characteristic points, and sequentially connecting the characteristic points to form a pattern, wherein the pattern is called as a target. The target needs to meet the following requirements: the target position is fixed relative to the dynamic target, a region of the plane where the dynamic target is located is usually selected as the target, the factors such as the size and the region of the target are irrelevant to the type of the docking task executed by the mechanical arm, and the target can be any complete, characteristic and clear-positioned graphic region. In the embodiment of the invention, four characteristic points are arranged and are sequentially connected to form a rectangle, the rectangle is taken as a target, and the distance between the rectangle and a dynamic target is known and relatively fixed.
In addition, a pattern can be selected as a target, the target requirement is met, and a plurality of points on the target are selected as characteristic points after the target is determined.
In the process of docking the mechanical arm end effector with a dynamic target, the camera can shoot a target in real time to acquire a target image.
S2: the method for realizing the butt joint of the mechanical arm end effector and the dynamic target can be that the mechanical arm is manually pulled to enable the end effector to be in butt joint with the dynamic target, or the dynamic target is dismounted from the mounting position and then is in butt joint with the mechanical arm end effector, in the butt joint state, the target image is acquired through the camera, the image moment characteristics of the target in the target image in the state are calculated and obtained, namely the expected image moment characteristics S d, and the expected image moment characteristics S d are the corresponding image moment characteristics when the mechanical arm completes the butt joint task.
S3: after the expected image moment feature S d is obtained, the mechanical arm is separated from the dynamic target again, the camera acquires the target image of the target in real time in the process of docking the mechanical arm end effector with the dynamic target, and the real-time image moment feature S of the target in the target image is obtained through calculation according to the real-time target image.
The desired image moment feature S d and the real-time image moment feature S are both expressed as
[xn,yn,an,θ,γ,α]T;
Wherein,
mpq=∫∫Oxpyqf(x,y)dxdy;
μij=∫∫O(x-xg)i(y-yg)jf(x,y)dxdy;
A * denotes a desired area of a target in a target image, a denotes an actual area of the target in the target image, Z * denotes a depth between a camera and the target, m pq denotes a continuous origin moment of the target image, p and q denote powers of x and y, respectively, O denotes an image plane of the target image, f (x, y) denotes a gray value of a pixel having coordinates (x, y) in the target image, μ ij denotes a continuous center distance of the target image, and (x g=m10/m00,yg=m01/m00) denotes coordinates of a center of gravity of the target image.
The components x n、yn and a n are used for controlling translation of the camera, namely, linear speed (v x,vy,vz) of the camera relative to a coordinate axis of a camera coordinate system, the components θ, γ and α are used for controlling rotation of the camera, namely, angular speed (w x,wy,wz) of the camera relative to the coordinate axis of the camera coordinate system, the camera coordinate system is a preset coordinate system, the origin of the camera coordinate system is a camera centroid according to actual experimental environment, task type and self condition of the mechanical arm, and translation and rotation of the camera can be converted into translation and rotation of the tail end of the mechanical arm, so that movement of the mechanical arm is controlled.
S4: the method comprises the steps of carrying out inertia normalization processing on a traditional mechanical arm model, removing inertia items in the mechanical arm model, and converting the processed mechanical arm model into a space corresponding to image moment characteristics [ x n,yn,an,θ,γ,α]T ], wherein the space is called as an image characteristic space, and the following expression of the mechanical arm model without the inertia items is obtained:
wherein,
J s denotes the jacobian matrix in the image feature space, M (q) denotes the inertial matrix of the robot arm,Representing the coriolis force matrix,J represents the jacobian matrix of the robotic arm,The first derivative of J is represented as,Representing a transformation matrix from a mechanical arm end coordinate system to a camera coordinate system, wherein the mechanical arm end coordinate system is a preset coordinate system which is preset by a user according to an actual experimental environment, a task type and a mechanical arm self condition, the origin of the mechanical arm end coordinate system is the mass center of a mechanical arm end joint, L s represents an image jacobian matrix corresponding to a real-time image moment characteristic S, L s∈R6×6, g (q) represents a gravity item, tau represents a torque output item of the mechanical arm joint, f ext represents an actual external force acting on a mechanical arm end effector, J Tfext represents a torque item of f ext mapped to the mechanical arm joint,Representing the unit inertial virtual force of the projection of the actual external force to the image feature space, and f s represents the unit inertial virtual force;
in a mechanical arm model under an image feature space The expression of (2) can be transformed into:
wherein,
M c denotes the projection of the robot inertial matrix in the camera coordinate system,Representing the projection of the actual external force in the camera coordinate system,Representing a transformation matrix from the robot arm end coordinate system to the camera coordinate system.
Defining M c * as the expected inertial matrix of the camera, calculating the unit inertial virtual force F s under the expected inertial matrix M c * of the camera:
Wherein F s represents the unit inertial virtual force at M c *-1.
In the Cartesian coordinate system, in the process of butting the mechanical arm end effector with a dynamic target, an error exists between an actual external force f ext borne by the mechanical arm end effector and an expected external force f ext d, and a force sensor senses the actual external force borne by the mechanical arm end effector in real time to obtain an actual external force f ext; the expected external force f ext d is a preset value, and the specific value of the expected external force f ext d is related to the requirement of the docking task executed by the mechanical arm, for example, if the mechanical arm needs to complete the docking of the device, the expected external force f ext d is optimal to be zero newton; if the mechanical arm is required to finish the grinding and butt joint of the casting body, and the external force required by grinding is 80 newtons, the optimal value of the expected external force f ext d is 80 newtons. The error between the actual external force F ext and the expected external force F ext d is converted into a unit inertial virtual force error F s e in the image feature space:
Where F s e=Fs-Fs d,Fs d represents the unit inertial virtual force in image feature space.
S5: admittance control is an existing force control system in the field of mechanical arm control, can ensure softer and safer movement of the mechanical arm, adjusts the movement of the mechanical arm by measuring actual external force information received by the mechanical arm, and can be applied to an image feature space. The existing admittance control is converted into an image feature space to be expressed, and a visual admittance model is obtained:
Wherein m s represents a unit inertial virtual mass, b s represents a unit inertial damping, k s represents a unit inertial stiffness matrix, S * represents a variation of a real-time image moment feature S, S *=Sd-Sr,Sd represents a desired image moment feature of a feature point in a target image, and S r represents a reference image moment feature of the feature point in the target image.
S *=Sd-Sr was introduced into the visual admittance model to obtain the following formula:
to ensure that the force control system can respond quickly, a positive gain matrix H is introduced to ensure that F s e decreases exponentially, after which the following expression is obtained:
In the process of docking the mechanical arm end effector with the dynamic target, when the value of the variation S * of the real-time image moment characteristic S is unchanged, the mechanical arm is said to be in a balanced state, and at the moment AndConverging to zero, willAndThe value of (2) is taken as 0 to simplify the visual admittance model, andIntroducing into simplified visual admittance model to obtain unit inertial virtual force error derivativeThe relation with the variation S * of the real-time image moment characteristic S is as follows:
Wherein m= -H.
Through the calculation, the state space equation of the force prediction control system (FPC) under discrete time is obtained as follows:
Wherein, F s e (k) represents a state variable of the current control step force prediction control system, F s e (k+1) represents a state variable of the next control step force prediction control system, S * (k) represents a control input variable of the force prediction control system, Y f (k) represents a control output variable of the force prediction control system, and T represents a sampling period, wherein the sampling period is a sampling period of the force sensor for collecting the actual external force and a period of extracting the feature point from the target image obtained by the camera, and the two periods are the same.
S6: the Model Predictive Control (MPC) includes a prediction horizon N P and a control horizon N c, where the prediction horizon N P is used to predict a time range of future system behavior and the control horizon N c is used to calculate a time range of optimal control inputs. Let N P=Nc = N to simplify the control algorithm and reduce the control time domain, expand the state vectorPredicted input variable of sum force prediction control system at current control stepHas the following expression:
Wherein F s e (k+n|k) represents a unit inertial virtual force error F s e corresponding to a k+n control step of the current control step prediction, F s e (k+n|k) is also referred to as a terminal unit inertial virtual force error of the current control step prediction, F s e(k|k)=Fs e k represents a state value of a unit inertial virtual force error F s e at the current control step, S * (k|k) represents a state value of a predicted input variable of the force prediction control system corresponding to the current control step, S * (k+n-1|k) represents a predicted input variable of the force prediction control system corresponding to a k+n-1 control step of the current control step prediction, F s e (k+i|k) represents a unit inertial virtual force error F s e,S* (k+i|k) corresponding to a k+i control step of the current control step prediction.
By using a general method of constrained linear model predictive control, a loss function of a force predictive control system is set to obtain an optimal control variable, and the loss function expression of the force predictive control system is as follows:
Wherein, Q f represents the weight matrix of the error term of the force prediction control system, R f represents the weight matrix of the input term of the force prediction control system, T f represents the weight matrix of the terminal error term of the force prediction control system, and Q f、Rf and T f are both symmetrical positive definite matrices.
The state values F s e (k|k) and S * (k+i-1-j|k) of the current control step F s e are expressed as follows, depending on the loss function of the force-predictive control system:
Wherein S * (k+i-1-j|k) represents a predicted input variable of the force prediction control system corresponding to the k+i-1-j control step predicted by the current control step.
Further deriving:
Wherein A represents And (3) withState matrix of the relationship between each other, B f representsAnd (3) withA control matrix of the relationship between A epsilon R 6(N+1)×6,Bf∈R6(N+1)×6N,
Converting the state space equation of the force prediction control system into a solution optimization problem to obtain an optimal control sequence, and converting the state space equation of the force prediction control system into a standard form for solving the optimization problem through a quadratic programming method:
wherein, An upper matrix representing the inequality constraints of the force predictive control system,A lower limit matrix representing the inequality constraint of the force prediction control system, D f a coefficient matrix representing the inequality constraint of the force prediction control system, a f a coefficient matrix representing the equality constraint of the force prediction control system, and b f a coefficient matrix representing the equality constraint of the force prediction control system.
S7: the standard form of the solution optimization problem is the solvable expression of the FPC shown in FIG. 1, and the unit inertial virtual force error F s e under the image feature space is input into the standard form of the solution optimization problem of the force prediction control system, so that the prediction input variable of the force prediction control system can be obtainedThe first element of the predicted input variable is used as the variation S * of the real-time image moment characteristic S, namely the final output of the force prediction control system, and the variation S * is fed back to the dynamic visual prediction control system to realize cascading.
The reference image moment feature S r is calculated from the amount of change S * of the real-time image moment feature S and the desired image moment feature S d:
Sr=Sd-S*。
Calculating a visual feature error S e from the real-time image moment feature S and the reference image moment feature S r:
Se=S-Sr。
The solution process of the visual characteristic error S e introduces the variation S * of the output value real-time image moment characteristic S of the force prediction control system, and in the subsequent control process, the visual characteristic error S e is the input value of the dynamic visual prediction control system shown in fig. 1, so that the force prediction control system and the dynamic visual prediction control system can be cascaded.
S8: after the state space equation of the force prediction control system is established, the state space equation of the dynamic visual prediction control system is also required to be established.
Because the butt-joint target dynamically moves in real time, the real-time image moment characteristics S also change in real time, and the change rate of the real-time image moment characteristics SCamera speed v c of camera in camera coordinate system and amount of change of real-time image moment feature S caused by dynamic object motionThe following relationship exists:
where L s represents the image jacobian matrix corresponding to the real-time image moment feature S.
Variation of real-time image moment features S caused by camera motionSatisfies the following formula:
application of extended kalman filter to variation of real-time image moment characteristics S caused by dynamic object motion Estimating to obtainThe state equation and the measurement equation of (2) are respectively:
wherein, Representing the state variable corresponding to the current control step,Representing the measured variable corresponding to the current control step,Representing a state transition matrix. H k = [1······0] representing the state measurement matrix, omega k is representative of the process noise, and satisfies P (omega) to P (0, Q), namely omega obeys Gaussian distribution with mean value of 0 and covariance matrix of Q, v k represents the measurement noise and satisfies P (v) to (0, R), i.e. v obeys a gaussian distribution with a mean of 0 and a covariance matrix of R.
According to the formula, can obtainThe expression of (2) is:
wherein, Representing the speed of the camera at the current control step,Indicating the joint speed of the manipulator at the current control step.
The extended Kalman filtering is divided into a prediction step and an updating step according to the followingThe equation of the Kalman filtering prediction step is obtained by the state equation and the measurement equation:
wherein, Representing the a priori state variables,The equation representing the prior covariance matrix, P k-1, Q representing the kalman filter prediction step may be calculated to obtain the prior state variable and the prior covariance matrix.
The equation for the Kalman filter update step is:
wherein K k denotes the gain of the extended Kalman filter, Representing posterior state variables, P k represents the posterior covariance matrix, I represents the identity matrix, and P k - represents the a priori covariance matrix.
Establishing a state space equation of a dynamic visual prediction control system under discrete time:
wherein, S (k) represents the state variable of the current control step dynamic visual prediction control system, S (k+1) represents the state variable of the next control step dynamic visual prediction control system,An image jacobian matrix corresponding to the desired image moment feature S d, v c (k) represents the camera speed output by the current control step dynamic visual prediction control system,Representing the amount of change in the real-time image moment characteristics S caused by the motion of the dynamic target, V c (k) represents the control input variable of the dynamic visual prediction control system, and Y s (k) represents the control output variable of the dynamic visual prediction control system.
S9: the general method of constrained linear model predictive control is utilized to set corresponding loss functions, and the loss functions of the dynamic visual predictive control system are as follows:
Wherein S e (k+n|k) represents a visual characteristic error corresponding to the k+n control step of the current control step prediction, S e (k+i|k) represents a visual characteristic error corresponding to the k+i control step of the current control step prediction, and V C (k+i|k) represents a prediction input variable of the dynamic visual prediction control system corresponding to the k+i control step of the current control step prediction.
Converting a state space equation of the dynamic visual prediction control system into a standard form for solving an optimization problem by a quadratic programming method:
wherein, Representing the predicted input variables of the dynamic visual prediction control system, J c representing the loss function of the dynamic visual prediction control system, S e k representing the state value of the current control step visual characteristic error S e, H s representing the quadratic coefficient matrix, E s representing the quadratic coefficient matrix,A lower matrix representing dynamic visual predictive control system inequality constraints,The upper limit matrix representing the inequality constraint of the dynamic visual prediction control system, D s represents the coefficient matrix of the inequality constraint of the dynamic visual prediction control system, A s represents the coefficient matrix of the equality constraint of the dynamic visual prediction control system, and b s represents the equality constraint matrix of the dynamic visual prediction control system.
S10: inputting the visual characteristic error S e into the standard form in S9 to obtain the predicted input variable of the dynamic visual prediction control systemBy predicting input variablesThe first element V c1 (k) of (a) calculates the camera speed V c (k):
by transforming the matrix from the robot arm end coordinate system to the camera coordinate system in dependence of the camera speed v c (k) Calculating the tail end speed v e of the mechanical arm, and calculating the joint speed of the mechanical arm according to the tail end speed v e of the mechanical arm through the inverse matrix J -1 of the jacobian matrix of the mechanical armAccording to the obtained joint velocityAnd controlling the mechanical arm to move and approach to the dynamic target to finish the butt joint.
As shown in fig. 2 and 3, the practical situation that the mechanical arm completes the dynamic docking task is shown by applying the method of the embodiment of the invention.
While embodiments of the present invention have been illustrated and described above, it will be appreciated that the above described embodiments are illustrative and should not be construed as limiting the invention. Variations, modifications, alternatives and variations of the above-described embodiments may be made by those of ordinary skill in the art within the scope of the present invention.
The above embodiments of the present invention do not limit the scope of the present invention. Any other corresponding changes and modifications made in accordance with the technical idea of the present invention shall be included in the scope of the claims of the present invention.