CN122425720B - Robotic arm joint control methods, electronic devices and robots - Google Patents

Robotic arm joint control methods, electronic devices and robots

Info

Publication number
CN122425720B
CN122425720B CN202610917265.0A CN202610917265A CN122425720B CN 122425720 B CN122425720 B CN 122425720B CN 202610917265 A CN202610917265 A CN 202610917265A CN 122425720 B CN122425720 B CN 122425720B
Authority
CN
China
Prior art keywords
joint
friction
mechanical arm
filtering
moment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202610917265.0A
Other languages
Chinese (zh)
Other versions
CN122425720A (en
Inventor
苏洋
曹岗
周勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lingxin Qiaoshou Beijing Technology Co ltd
Original Assignee
Lingxin Qiaoshou Beijing Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lingxin Qiaoshou Beijing Technology Co ltd filed Critical Lingxin Qiaoshou Beijing Technology Co ltd
Priority to CN202610917265.0A priority Critical patent/CN122425720B/en
Publication of CN122425720A publication Critical patent/CN122425720A/en
Application granted granted Critical
Publication of CN122425720B publication Critical patent/CN122425720B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • G—PHYSICS
    • G05—CONTROLLING; REGULATING
    • G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B13/00—Adaptive control systems, i.e. systems automatically adjusting themselves to have a performance which is optimum according to some preassigned criterion
    • G05B13/02—Adaptive control systems, i.e. systems automatically adjusting themselves to have a performance which is optimum according to some preassigned criterion electric
    • G05B13/04—Adaptive control systems, i.e. systems automatically adjusting themselves to have a performance which is optimum according to some preassigned criterion electric involving the use of models or simulators
    • G05B13/042—Adaptive control systems, i.e. systems automatically adjusting themselves to have a performance which is optimum according to some preassigned criterion electric involving the use of models or simulators in which a parameter or coefficient is automatically adjusted to optimise the performance
    • B—PERFORMING OPERATIONS; TRANSPORTING
    • B25—HAND TOOLS; PORTABLE POWER-DRIVEN TOOLS; MANIPULATORS
    • B25J—MANIPULATORS; CHAMBERS PROVIDED WITH MANIPULATION DEVICES
    • B25J19/00—Accessories fitted to manipulators, e.g. for monitoring, for viewing; Safety devices combined with or specially adapted for use in connection with manipulators
    • B—PERFORMING OPERATIONS; TRANSPORTING
    • B25—HAND TOOLS; PORTABLE POWER-DRIVEN TOOLS; MANIPULATORS
    • B25J—MANIPULATORS; CHAMBERS PROVIDED WITH MANIPULATION DEVICES
    • B25J9/00—Program-controlled manipulators
    • B25J9/16—Program controls
    • B25J9/1628—Program controls characterised by the control loop
    • B25J9/1633—Program controls characterised by the control loop compliant, force, torque control, e.g. combined with position control
    • G—PHYSICS
    • G06—COMPUTING OR CALCULATING; COUNTING
    • G06F—ELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00—Pattern recognition
    • G06F18/10—Pre-processing; Data cleansing
    • G—PHYSICS
    • G06—COMPUTING OR CALCULATING; COUNTING
    • G06F—ELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00—Pattern recognition
    • G06F18/20—Analysing
    • G06F18/27—Regression, e.g. linear or logistic regression

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Evolutionary Computation (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Robotics (AREA)
  • Mechanical Engineering (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Evolutionary Biology (AREA)
  • General Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Software Systems (AREA)
  • Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Numerical Control (AREA)

Abstract

The application discloses a mechanical arm joint control method, electronic equipment and a robot. The mechanical arm joint control method comprises the steps of sampling the position and moment of a mechanical arm joint, carrying out zero-phase low-pass filtering processing on the position to obtain a filtering position, carrying out center difference processing on the filtering position to obtain an original speed, carrying out zero-phase low-pass filtering processing on the original speed to obtain a filtering speed, carrying out center difference processing on the filtering speed to obtain an original acceleration, carrying out zero-phase low-pass filtering processing on the original acceleration to obtain a filtering acceleration, carrying out zero-phase low-pass filtering processing on the moment to obtain a filtering moment, calculating a joint regression matrix based on the filtering acceleration and the filtering moment, and controlling the mechanical arm joint based on the joint regression matrix. The original sampled data is processed through the six-step data preprocessing assembly line, so that noise of the sampled data is reduced, and the accuracy of model operation is greatly improved.

Description

Mechanical arm joint control method, electronic equipment and robot
Technical Field
The present application relates to the field of smart hand control, and more particularly, to a method for controlling a joint of a robot arm, an electronic device, and a robot.
Background
The cooperative robot is widely applied to diversified industrial production scenes such as industrial assembly, material stacking, metal welding, workpiece flexible polishing, on-site process teaching and the like by virtue of the advantages of safe interaction, flexible adaptation and no need of large-scale modification of a production line. In the field deployment and process debugging links of the cooperative robot, dragging teaching is a core function which is adaptive to various nonstandard operation scenes, reduces the use threshold of equipment and improves the debugging efficiency. The dragging teaching technology allows an operator to directly and manually drag the mechanical arm body, guides the robot to finish the re-engraving record of the target operation track, does not need complex programming operation, can realize on-site quick debugging and instant adaptation of a new process, and radically reduces on-site deployment and process iteration thresholds of the collaborative robot.
At present, most of mainstream commercial collaborative robots are multi-joint mechanical arm equipment with tens of kg-level loads, the self weight of a mechanical arm body and the friction force of an internal transmission structure can directly influence the fluency of manual dragging, an operator is required to apply extremely small external force, and particularly, the tail end of the mechanical arm can be stably driven to move according to an expected track under the condition of being assisted by force sensing equipment such as six-dimensional force at the tail end, a moment detection sensor and the like without depending on additional force, so that the light and smooth manual teaching effect is realized, meanwhile, the motion safety boundary of the equipment can be accurately defined, the safety risks such as overtravel, collision and overload in the manual dragging process are avoided, and the safety and stability of man-machine interaction operation are ensured.
Disclosure of Invention
According to some aspects, the subject matter of the independent claims is provided. Further aspects are defined in the dependent claims. Embodiments that do not fall within the scope of the claims should be construed as examples that are helpful in understanding the present disclosure.
According to a first aspect of the disclosure, a mechanical arm joint control method is provided, and the mechanical arm joint control method can comprise the steps of sampling a position and a moment of a mechanical arm joint, carrying out zero-phase low-pass filtering processing on the position to obtain a filtering position, carrying out center difference processing on the filtering position to obtain an original speed, carrying out zero-phase low-pass filtering processing on the original speed to obtain a filtering speed, carrying out center difference processing on the filtering speed to obtain an original acceleration, carrying out zero-phase low-pass filtering processing on the original acceleration to obtain a filtering acceleration, carrying out zero-phase low-pass filtering processing on the moment to obtain a filtering moment, calculating a joint regression matrix based on the filtering acceleration and the filtering moment, and controlling the mechanical arm joint based on the joint regression matrix.
According to a second aspect of the disclosure, an electronic device is provided, which may include at least one processor, and at least one memory storing instructions that, when executed by the at least one processor, cause the detection device to perform at least operations including sampling a position and a moment of a robotic arm joint, performing a zero-phase low-pass filtering process on the position to obtain a filtered position, performing a center difference process on the filtered position to obtain an original velocity, performing a zero-phase low-pass filtering process on the original velocity to obtain a filtered velocity, performing a center difference process on the filtered velocity to obtain an original acceleration, performing a zero-phase low-pass filtering process on the original acceleration to obtain a filtered acceleration, performing a zero-phase low-pass filtering process on the moment to obtain a filtered moment, calculating a joint regression matrix based on the filtered acceleration and the filtered moment, and controlling the robotic arm joint based on the joint regression matrix.
According to a third aspect of the present disclosure, there is provided an electronic device, which may comprise means for performing the method according to the foregoing first aspect.
According to a fourth aspect of the present disclosure, there is provided a computer readable medium, which may comprise program instructions, which when executed, implement a method according to the foregoing first aspect.
According to a fifth aspect of the present disclosure, there is provided a computer program product, which may comprise instructions, which when executed by a processor, perform the method according to the first aspect described above.
According to a sixth aspect of the present disclosure, a robot is provided, which may include a robot arm and an actuator provided at an end of the robot arm, and a controller electrically connected to the robot arm and the actuator, respectively, for performing the method according to the foregoing first aspect.
The computer program product may include or may be embodied as a computer-readable (storage) medium or the like on which computer-executable computer program instructions are stored and/or a program that may be directly loaded into the internal memory of a computer or its processor.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the scope of the invention, as claimed.
Drawings
The above and other objects, features and advantages of the present application will become more apparent by describing embodiments of the present application in more detail with reference to the attached drawings. The accompanying drawings are included to provide a further understanding of embodiments of the application and are incorporated in and constitute a part of this specification, illustrate the application and together with the embodiments of the application, and not constitute a limitation to the application. In the drawings, like reference numerals generally refer to like parts or steps.
FIG. 1 illustrates a schematic diagram of a smart hand control system in which exemplary embodiments of the present disclosure may be implemented;
FIG. 2 shows a schematic diagram of a zero gravity teaching flow in accordance with an exemplary embodiment of the present disclosure;
FIG. 3 illustrates a schematic diagram of a channel auto-detection flow in accordance with an exemplary embodiment of the present disclosure;
FIG. 4 illustrates a schematic diagram of a dynamic parameter identification procedure based on a binning average method in accordance with an exemplary embodiment of the present disclosure;
fig. 5 shows a schematic diagram of the geometrical separation of the gravity terms averaged by hysteresis loop binning;
FIG. 6 shows a schematic diagram of condition number comparison of the observation matrix before and after optimization;
FIG. 7 illustrates a schematic diagram of a real-time compensation flow and timing of the control loop according to an exemplary embodiment of the present disclosure;
FIG. 8 illustrates a schematic diagram of operator drag force comparison before and after using the compensation method of the present disclosure;
FIG. 9 illustrates a flowchart of an exemplary method according to an exemplary embodiment of the present disclosure;
FIG. 10 illustrates a flowchart of an exemplary method according to an exemplary embodiment of the present disclosure;
FIG. 11 illustrates an example block diagram of an example device according to an example embodiment of this disclosure;
FIG. 12 illustrates an example block diagram of an example device according to an example embodiment of this disclosure;
fig. 13 shows an example block diagram of an example device according to an example embodiment of the disclosure.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the spirit of the present disclosure will be clearly described in the following drawings and detailed description, and any person skilled in the art, after having appreciated the embodiments of the present disclosure, may make alterations and modifications by the techniques taught by the present disclosure without departing from the spirit and scope of the present disclosure.
The exemplary embodiments of the present invention and the descriptions thereof are intended to illustrate the present invention, but not to limit the present invention. In addition, the same or similar reference numerals are used for the same or similar parts in the drawings and the embodiments.
The terms "first," "second," "third," and the like, as used herein, do not denote a particular order or sequence of parts, nor are they intended to limit the invention, but rather are used to distinguish one element or operation from another in the same technical term.
With respect to directional terms used herein, such as up, down, left, right, front or rear, etc., reference is made only to the directions of the drawings. Thus, directional terminology is used for purposes of illustration and is not intended to be limiting.
As used herein, the terms "comprising," "including," "having," "containing," and the like are intended to be inclusive and mean an inclusion, but not limited to.
As used herein, "and/or" includes any or all combinations of such things.
The term "plurality" as used herein includes "two" and "more than two", and the term "plurality" as used herein includes "two" and "more than two".
The terms "about," "approximately" and the like as used herein are used to modify any quantitative or positional deviation that could vary slightly without such slight variation or positional deviation altering its nature. In general, the range of slight variations or errors modified by such terms may be 20% in some embodiments, 10% in some embodiments, 5% in some embodiments, or other values. It should be understood by those skilled in the art that the above mentioned values can be adjusted according to the actual requirements, and are not limited thereto.
All terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art unless otherwise defined. It should be noted that the terms used herein should be construed to have meanings consistent with the context of the present specification and should not be construed in an idealized or overly formal manner.
Where a convention analogous to "at least one of A, B and C, etc." is used, in general such a convention should be interpreted in accordance with the meaning of one of skill in the art having generally understood the convention (e.g., "a system having at least one of A, B and C" would include, but not be limited to, systems having a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.). Where a formulation similar to at least one of "A, B or C, etc." is used, in general such a formulation should be interpreted in accordance with the ordinary understanding of one skilled in the art (e.g. "a system with at least one of A, B or C" would include but not be limited to systems with a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.). It should also be appreciated by those skilled in the art that virtually any disjunctive word and/or phrase presenting two or more alternative items, whether in the description, claims, or drawings, should be understood to contemplate the possibilities of including one of the items, either of the items, or both. For example, the phrase "a or B" should be understood to include the possibility of "a" or "B", or "a and B".
The following examples are illustrative. Although the specification mentions "a", "an", or "some" embodiment at some point in the text, this does not necessarily mean that each mention refers to the same embodiment, or that a particular feature applies only to a single embodiment. Individual features of the different embodiments may also be combined to provide further embodiments. Furthermore, when a particular feature, structure, or characteristic is described in connection with an embodiment, it is submitted that it is within the knowledge of one skilled in the art to effect such feature, structure, or characteristic in connection with other embodiments whether or not explicitly described. It will be understood that, although terms such as "first," "second," and the like may be used to describe various elements, these elements should not be limited by these terms. These terms are only used to distinguish one element from another element.
Fig. 1 illustrates an example of a smart hand control system 100 in which the exemplary embodiments disclosed herein may be implemented. Referring to fig. 1, the smart hand control system 100 may include a superordinate control terminal 110, a control device 120, a plurality of robotic arms 130,132, and a plurality of smart hands 140,142 coupled to the robotic arms 130, 132.
The smart hands 140,142 may be mounted at the ends of the robot arms 130,132, respectively, for achieving direct interaction of the robot with the work object, such as fine grabbing, posture adjustment, precise manipulation, and other work actions. The smart hands 140,142 may be of multi-joint modular design and may include, for example, finger units, palm units, and the like. The robot arms 130,132 may drive the smart hands 140,142 to perform spatial position movement and posture adjustment, and may also carry the connection between the smart hands 140,142 and the control device 120. The robot arms 130,132 may be in a tandem multi-joint configuration, and each joint may be equipped with components such as motors, etc., to control the movement of the joint. The dexterous hands 140,142 and the robotic arms 130,132 may access the bus architecture of the control device 120 using a bus interface to receive instructions issued by the control device 120.
The smart hands 140,142 and the robotic arms 130,132 may be interconnected in a rigid or expandable manner. The rigid connection may be by the ends of the robotic arms 130,132 interfacing with the base interfaces of the smart hands 140,142 via adapter flanges. The expansion connection mode can be that other devices are additionally arranged between the tail ends of the robot arms 130 and 132 and the smart hands 140 and 142 to connect, for example, wrist six-dimensional force sensors, the tail ends of the robot arms 130 and 132 can be connected to one ends of the wrist six-dimensional force sensors, and the other ends of the sensors can be connected with the smart hands 140 and 142 to realize real-time collection and transmission of force/moment information.
The control device 120 is configured to schedule actions of the smart hand system in real time, and to implement cooperative tasks of the smart hands 140,142 and the robotic arms 130,132 by issuing instructions. The control device 120 may issue a working instruction to the robot arms 130,132 and the smart hands 140,142 according to the task issued by the upper control terminal 110, or may perform real-time operation on the working parameters fed back by the robot arms 130,132 and the smart hands 140,142, to generate and issue a control instruction. The control device 120 may employ an embedded architecture, such as a combination of a field programmable gate array (Field Programmable GATE ARRAY, FPGA) and an advanced reduced instruction set machine (ADVANCED RISC MACHINES, ARM) processor. At least a portion of the control device 120 may be implemented as a controller for executing or by a processor executing the processes or methods of the present disclosure.
The control device 120 may integrate bus interfaces, such as an industrial ethernet fieldbus (Ethernet for Control Automation Technology, etherCAT), a controller area network advanced industrial communication protocol (CANopen), etc., to implement signal interaction with the robot arm joint driving unit, the smart hand, and various optional sensors, such as issuing motion instructions, receiving operation states fed back by the robot arm 130,132 joint driving unit, and the smart hand 140,142, etc. The control device 120 may power the various joint servomotors of the robotic arms 130,132 and the smart hands 140,142 via power cables.
The upper control terminal 110 may be a platform for interaction between an operator and the robot control system, and provides functions such as man-machine interaction and task management terminals for the smart control system 100, such as job programming, parameter configuration, task issuing, overall machine running state monitoring and data management. The upper control terminal 110 may be a touch tablet computer, a mobile phone or a desktop computer, etc., and may have corresponding control software. The upper control terminal 110 and the control device 120 may establish a bidirectional communication connection through an ethernet, and may implement long-distance communication using, for example, a TCP/IP communication protocol.
The existing collaborative mechanical arm dragging teaching and zero gravity compensation mainly comprise four types of implementation schemes:
The first is an admittance control scheme that a six-dimensional force moment sensor is additionally arranged on a terminal flange, external force information is collected by means of the sensor to convert the terminal expected speed, and then speed tracking is completed through joint servo;
The second type is a dynamic compensation scheme which relies on motor current feedback and is matched with a pre-built rigid body dynamic model, and gravity moment feedforward compensation is completed by means of URDF nominal inertial parameters and a coulomb-viscosity friction model, so that additional sensors are not needed, the overall cost is low, and the dynamic compensation scheme is also a mainstream application direction in the current industry;
The third type is a feedforward compensation scheme which only adopts a single coulomb-viscosity friction formula on the basis of dynamic compensation, and the friction correlation coefficient is calibrated at one time through the test operation of fixed rotation speed, so that the method is widely carried in a conventional industrial robot zero gravity mode;
the fourth category belongs to an open loop disposable full-parameter identification scheme, wherein motion data of the whole machine is acquired by utilizing Fourier or random excitation tracks, all parameters of inertia and friction are solved by means of a least square method in a one-time simultaneous manner, a simplified coulomb-viscosity model is selected as a friction part, a friction nonlinear item is subjected to approximate linear treatment in an identification process, errors are easily transferred to the inertia parameters, and an identification effect is highly limited by the quality of the excitation tracks.
The prior art has the main problems that a plurality of short plates are exposed in the actual landing use process, on one hand, the existing friction model comprises coulomb-viscosity, style Beck and Rugray models, when dynamic parameters are identified through a regression matrix, the parameters with the dimensions up to 70 are needed to be solved, the calculation complexity is high, the accuracy is low, on the other hand, data used by the models are data obtained by directly sampling through a robot system, the sampled data contain more noise, and in the process of carrying out multi-dimensional solving in the model, the measured noise can rapidly amplify parameter errors, and even the conditions of complete distortion of the parameters and no solution of equations are caused.
Besides the main problems, the problems that the scheme adopting the six-dimensional force sensor is high in hardware investment, repeated calibration is needed after tool replacement and complex in field debugging are caused in the prior art, a compensation scheme for deriving nominal dynamic parameters by means of CAD cannot offset parameter deviation caused by actual working conditions such as machining assembly tolerance, cable arrangement and internal loss of a speed reducer, a gravity compensation moment error interval is large in span, dragging resistance of a mechanical arm is high, abnormal working conditions such as pose drift and reverse pushing are easy to occur, a single coulomb-viscosity friction model cannot restore the Style Beck effect and pre-slip hysteresis characteristic of a low-speed interval of the speed reducer, the problem that the clamping sticky slip frequently occurs during low-speed dragging, the smoothness of a teaching track is insufficient, a one-time open loop identification lacks a quantitative verification link, the identification advantages and disadvantages CAN only be judged by means of subjective hand feeling of operators, the fault tracing is difficult, the parameters obtained by identification are difficult to be multiplexed to a predictive control module, collision detection and the like are solved, a bus configuration layer needs to manually pre-bind the corresponding relation between a joint motor and a CAN channel and a mechanical arm body, the hardware is easy to change, errors occur, the problem that the manual configuration file must be changed after the hardware is easy to occur, the friction model is difficult to realize, the friction synchronous control model is difficult to realize, the problem that the friction model is difficult to change and the dynamic control model is not compatible with a flexible, and the dynamic model is not compatible with a dynamic model, and the dynamic structure CAN not be changed, and the dynamic model is not compatible with a flexible model.
According to the scheme for identifying the core dynamic parameters in a grading manner, on the one hand, the scheme is adopted, on the other hand, the original sampled data are processed through a six-step data preprocessing pipeline of 'position filtering-speed difference-speed filtering-acceleration difference-acceleration filtering-moment synchronous filtering', noise of the sampled data is reduced, the stability of acceleration data signal to noise ratio and friction curve is optimized, and the accuracy of model operation is greatly improved.
In addition to the main aspects, the method and the device provide solutions for solving the other technical problems, on one hand, various friction models, such as Coulomb-viscosity, stribeck (Stribeck) and Lu Gelei (LuGre), CAN be switched on line in a control loop, a system CAN be combined with a model of a joint reducer to automatically match and adapt to a corresponding model, on the other hand, multi-index quantitative closed loop verification is provided, recognition quality of quantitative evaluation parameters is based on decision coefficients, matrix condition numbers, singular values and rank information, and functions of abnormal recognition result detection and fault diagnosis data output are provided, so that the problem of positioning of engineers is solved, on the other hand, automatic matching of a left arm CAN interface and a right arm CAN interface is realized through CAN broadcast enabling frames and motor ID analysis, the six-step alternating processing flow is adopted for data preprocessing, and abnormal outlier samples in collected data are removed by combining with a four-bit distance criterion.
The technical solutions of the present disclosure and their features are described in detail below by way of detailed exemplary embodiments, in which specific technical implementations, such as specific models, data and interfaces, etc., are used for clarity of illustration. Various alternatives will be apparent to, deduced, and adapted by those skilled in the art from the exemplary embodiments provided in this disclosure, and other similar conventional technical means, equivalent algorithmic structures, common data formats, and standard interface protocols may be employed in place of the specific technical implementations described in this disclosure, without departing from the core technical logic of this disclosure.
Fig. 2 shows a schematic diagram of a zero gravity teaching flow 200 according to an exemplary embodiment of the present disclosure. The process 200 may be performed by the control device 120 in fig. 1, for example, may be performed in conjunction with a software and hardware module carried by the control device 120. In some example embodiments, the process 200 of the present disclosure may be performed by a calibration and teaching system module. The calibration and teaching system module may be at least a part of the control device 120, may be directly integrated in a main control program of the control device, or may be installed and operated as an independent plug-in. The calibration and teaching system module can also comprise a submodule for realizing the steps of the method, such as a data acquisition submodule, a parameter identification submodule, a friction model submodule, a closed loop verification submodule, a channel detection submodule, a zero gravity teaching control submodule and the like.
In some exemplary embodiments, the calibration and teaching system module may expose a unified application program interface, i.e. a standardized API interface, to shield underlying hardware differences and algorithm details, so that an operator may conveniently operate and call a built-in algorithm method through a terminal device such as an upper computer, a control panel, a secondary development program, etc., and greatly reduce device debugging and secondary development thresholds. In some embodiments, the application program interfaces can be standardized function interfaces with finished packaging, specific functions can be defined as run_ workflow () application program interfaces, which can be used for starting a complete zero-gravity teaching process 200 by one key, automatic serial channel detection, data acquisition, parameter identification, closed loop verification and compensation control complete processes, set_compensation_ gains () application program interfaces, which can be used for dynamically adjusting compensation gains in real time in the running process of a control program, the whole control process and teaching process are not interrupted in the whole process, an operator can finely adjust teaching compliance in real time according to actual dragging handfeel and equipment load state, load_params () application program interfaces can be used for distributing, loading and updating various dynamics and control parameters of a robot, supporting loading of a local configuration file and issuing of remote parameters, start () application program interfaces can be used for starting a real-time compensation control loop, and corresponds to a real-time moment compensation function of a later operation 245, stop () application program interfaces can be used for stopping the compensation control process, in some embodiments, enabling the motor to directly run by the motor after the joint gravity, the motor can swing down, the motor can run in a zero-time, the situation can be avoided, the motor can run after the motor is free from falling, and the moment is free from running, and the inertia command is executed, and the safety torque is free from running.
Referring to fig. 2, after the zero-gravity teaching process is started, operation 210 may be performed first, performing an automatic dual-arm CAN channel detection operation, and simultaneously dispatching corresponding tasks in parallel. The CAN channel is a field bus communication channel of a robot system or a smart hand system, and CAN be used for real-time data interaction between a robot main control system and each joint motor and sensor, such as equipment data transmission and control instruction issuing.
Fig. 3 shows a schematic diagram of a channel auto-detection flow 300 according to an exemplary embodiment of the present disclosure. The process 300 CAN be automatically executed by the channel detection sub-module at the start-up stage of the teaching system to automatically identify, match, and bind the corresponding CAN communication interfaces of the left and right arms of the robot.
As shown in fig. 3, at operation 310, all available CAN interfaces in the host operating system may be enumerated, all valid CAN communication ports mounted on the system hardware bus may be traversed, and interface resources that may communicate normally and have no hardware failure may be screened out. In some embodiments, the CAN interface name may include CAN0 and CAN1, where the two interfaces correspond to the left and right arm communication channels of the dual-arm robot, respectively, to provide hardware support for dual-arm independent communication.
In operation 320, a standardized motor enabling frame CAN be broadcast and sent on each enumerated effective CAN interface, the motor enabling frame is a bus communication instruction with a preset format and is used for waking up a joint motor and triggering a motor feedback response, and meanwhile, feedback frames returned by each motor are continuously monitored in a timeout window preset by a system, the timeout window CAN be adaptively configured according to the communication rate of the device, the problems of missing detection and false detection caused by communication delay are avoided, and the motor device corresponding to each CAN interface CAN be effectively identified.
In operation 330, all the motor feedback frames obtained by monitoring may be parsed, and the equipment identity information and the status information contained in the feedback frames may be extracted. In some embodiments, the analysis content may specifically be a motor identification field of the feedback frame, where the field is a unique identity code of each joint motor, and may be used to uniquely distinguish the joint motors, if the motor identification obtained by analysis falls in a preset left arm value section, the CAN interface is marked as a left arm dedicated communication channel, and if the motor identification falls in a preset right arm value section, the CAN interface is marked as a right arm dedicated communication channel. In some embodiments, to adapt to a standard 7-degree-of-freedom dual-arm robot structure, the motor identifier of the left arm section may be set to 61-67 corresponding to 7 independent motion joints of the left arm, the motor identifier of the right arm section may be set to 51-57 corresponding to 7 independent motion joints of the right arm, i.e., the left arm and the right arm may be respectively configured with 7 joint motors.
In some embodiments, the one-to-one mapping relation between the CAN interface and the left and right arms CAN be automatically established by means of the file alias matching of the CAN interface device, the accurate inquiry of the CAN hardware serial number, the permanent binding of the rule of the operating system udev and the like.
In operation 340, the mapping relationship between the checked and matched CAN interface and the robotic arm may be locally cached and stored, and the binding relationship between the current effective communication channel and the device is recorded, so that the system is prevented from repeatedly executing full-scan detection every time, and the starting efficiency is improved. In some embodiments, the mapping relationship between the interface and the robot arm may be cached in a dedicated CHANNEL CACHE, for example, also in can_channel_cache. In some embodiments, the user may override the default interface to robotic arm mapping temporarily through command line parameters or permanently through a configuration file.
After the channel detection and equipment mapping is completed, the robot arm multi-dimensional data sampling operation and the robot dynamics parameter identification operation may be formally started in operation 350. The dynamic parameter identification is used for acquiring core dynamic parameters such as gravity, friction, inertia and the like of the robot joint, and is used for counteracting gravity resistance and friction resistance generated in the operation process of a subsequent teaching system and eliminating mechanical resistance in the manual dragging teaching process. Exemplary sampling rules, data processing flows, and parameter identification algorithm approaches will be described in detail later in this disclosure.
In some exemplary embodiments, the multi-threaded parallel operation mode can be adopted to improve the dual-arm identification efficiency, and when the system detects that all joints of the left arm and the right arm are normally on-line and the communication state is stable, the system thread pool can automatically schedule the sampling task and the parameter identification flow for the left arm and the right arm independently, so that synchronous parallel execution of dual-arm data sampling and dynamic parameter identification is realized.
Returning to the zero gravity teaching flow shown in fig. 2, after completing the flow of the CAN channel automatic detection, the robot arm communication connection establishment, and the equipment status verification, the system may start the dual-track layered data acquisition work, and perform the slow bidirectional track data acquisition of operation 215 and the fourier series track data acquisition of operation 220 on the robot arm in sequence, respectively. In some embodiments, both types of data acquisition work may be performed by the data acquisition submodule.
Specifically, in operation 215, the data acquisition sub-module may sample operating condition data of the robotic arm joint based on the slow bi-directional excitation trajectory to obtain sampled data. The slow bi-directional excitation trajectory may be a low-speed reciprocating trajectory. In some embodiments, the motion rule of the slow bi-directional excitation track may be that one target joint is driven independently at a time, forward-reverse reciprocating uniform motion is performed at a constant low speed of 16 degrees/second, and all other non-target joints are fixedly locked according to a preset standard configuration, so as to maintain a fixed posture.
In some embodiments, in order to avoid noise data generated by speed abrupt change and acceleration impact at the moment of starting and stopping of the joint, a zero smooth transition algorithm can be adopted for both the initial running section and the final tail receiving section of the slow bidirectional excitation track, and starting and stopping flexible transition is realized through gradual change type speed control so as to ensure stability and effectiveness of sampling data.
In operation 220, the data acquisition sub-module may sample the working condition data of the mechanical arm joint based on the optimized fourier series excitation trajectory to obtain the sampled data, where the trajectory is a high-frequency, smooth and periodic complex excitation trajectory, and may be used to excite dynamic mechanical properties such as inertia, viscous friction, and the like of the robot joint. In some embodiments, for the ith joint of the robot, a finite term trigonometric series as in equation (1) may be constructed as the desired trajectory equation for joint motion:
(1)
The method comprises the steps of determining a desired motion position of a joint i at a moment t, wherein q i (t) represents the desired motion position of the joint i at the moment t, a person skilled in the art can understand that the joint position q indicated in the disclosure can refer to a rotation angle position of the joint for a rotary joint robot, n h is a track harmonic number for controlling complexity and fitting precision of a track, an exemplary value is 5, track smoothness and excitation sufficiency can be considered, omega f represents fundamental wave angular frequency and is determined by a track excitation period, the exemplary excitation period is set to 30s, sufficient track motion and complete data sampling can be ensured, q i,0 represents a mechanical zero offset of the joint i and is used for compensating zero errors caused by mechanical assembly and equipment calibration, k is a harmonic sequence number and corresponds to track fluctuation components of different orders, a i,k represents a sine coefficient of a kth harmonic of the i joint, b i,k represents a cosine coefficient of the kth harmonic of the i joint, and two groups of coefficients are decision variables of track optimization and can be solved to optimal values through an iterative algorithm.
The formula (1) can be used for calculating the optimal a and b coefficient combination through an iterative solving algorithm under the hard limit constraint of the robot joint position limit, the motion speed limit and the motion acceleration limit, solving the condition number of a target minimum observation matrix, effectively improving the disease state problem of the matrix, and finally obtaining a smooth, continuous and fully excited periodic excitation track. In some embodiments, optimizing the fourier series excitation trajectory may include in-segment transition buffering, excitation main segment, and out-segment transition buffering to avoid invalid data and equipment impact from abrupt start-stop transitions of the trajectory.
In some embodiments, during the slow bidirectional track sampling of operation 215 and the fourier series track sampling of operation 220, 7-dimensional core data may be synchronously collected and recorded at each sampling point, where the position q, the motion speed v and the real-time feedback torque τ of the motor of the 7 joints are respectively obtained, that is, the position data, the speed data and the torque data of each mechanical arm joint are sampled. In some embodiments, the analysis sampling rate of the CAN feedback frame may be 100-200 Hz, corresponding to the sampling interval of the shortest 5 ms, so as to capture the fine state change of the joint motion and ensure the continuity and integrity of the data.
The speed v data fed back by the original equipment is obtained by directly calculating the first-order difference of the position data by the motor firmware, is extremely easy to be influenced by communication time stamp jitter and hardware clock deviation, and has obvious noise interference because the signal-to-noise ratio of the speed data is far lower than that of the original position data of the encoder. Therefore, in some embodiments, the accurate speed v CAN be reconstructed through the high-precision position q data, meanwhile, the data integrity verification is carried out by combining the speed v data fed back by the CAN, abnormal sampling points are removed, and the data quality is guaranteed. This optimization operation will be described in detail in the six-step data preprocessing operation 230.
After the data sampling is completed, the system enters a data preprocessing and parameter identification stage. The operation of this stage may include an operation 225 of performing a six-step standardized data preprocessing procedure on dynamic data acquired based on an optimized fourier series excitation trajectory, an operation 230 of completing data optimization processing on static data acquired based on a slow bi-directional excitation trajectory by a binning averaging method, and finally performing a kinetic parameter identification operation of operation 235 based on two sets of preprocessed high-precision valid data, and accurately identifying a robot set of kinetic parameters by fourier series method. All of the algorithm flows of operations 225-235 described above may be performed by the parameter identification submodule.
Those skilled in the art can understand that the slow bi-directional excitation trajectory and the optimized fourier series excitation trajectory adopted in the present disclosure are preferred embodiments, and are not unique implementation schemes, and those skilled in the art can adapt other equivalent excitation trajectories according to the device characteristics, including finite term triangle series excitation trajectory, quintic polynomial excitation trajectory, B-spline excitation trajectory, and the like, and can implement the core function of kinetic parameter identification.
In operation 225, the parameter identification sub-module may sequentially complete pipeline preprocessing on the collected raw data (including the raw position data q raw and the raw torque data τ raw) according to six fixed steps, so as to remove noise, deviation, phase delay and other interference factors in the raw data. Wherein q raw represents joint original position data which are obtained by direct sampling of a sensor and are not subjected to any processing, τ raw represents non-optimized original moment data fed back by a motor, and specific preprocessing steps can comprise:
Step 1, zero-phase low-pass filtering processing can be performed on (original) position data to obtain filtered position data, namely zero-phase low-pass filtering operation is performed on q raw to obtain a high-precision position q filtered after filtering.
And 2, performing central differential processing on the filtered position data to obtain original speed data, namely performing central differential operation on the filtered position data q filtered, and solving to obtain the original speed v raw. In some embodiments, performing the center differential operation may be accomplished by the following equation (2):
(2)
Wherein v (t) represents the joint movement speed obtained by solving at the time t, q (t) represents real-time sampling position data at the time t, q (t+1) represents position data at the time after the current sampling point, q (t-1) represents position data at the time before the current sampling point, dt is a system fixed sampling period, and an exemplary value is 5ms.
And 3, carrying out zero-phase low-pass filtering processing on the original speed to obtain a filtering speed, namely, carrying out zero-phase low-pass filtering operation on the solved original speed v raw again to obtain a high-precision filtering speed v filtered, and inhibiting amplified high-frequency noise in the differential operation process through a same-parameter secondary filtering mechanism to further purify speed data.
And 4, performing central differential processing on the filtered speed data to obtain original acceleration data, namely performing central differential operation on the filtered speed data v filtered again, and solving to obtain the original joint motion acceleration a raw so as to restore the dynamic motion characteristics of the joint.
And step 5, performing zero-phase low-pass filtering processing on the original acceleration data to obtain filtered acceleration data, namely performing zero-phase low-pass filtering operation on the original acceleration a raw to obtain high-precision filtered acceleration a filtered, filtering high-frequency interference in the acceleration data, and ensuring the accuracy of solving dynamic mechanical parameters.
And 6, performing zero-phase low-pass filtering processing on the torque data to obtain filtering torque data, namely performing zero-phase low-pass filtering operation on the original torque tau raw of the motor to obtain a filtered accurate torque tau filtered so as to eliminate torque noise caused by motor current loop jitter and electromagnetic interference.
In some embodiments, all zero-phase low-pass filtering operations in the above six steps may be performed with zero-phase butterworth filters. The filter may be configured as a low pass cut-off frequency 5Hz, 4-order filtering structure.
The six-step pipelined data preprocessing operation can avoid the secondary amplification of high-frequency noise in the differential operation process, thoroughly counteracts the data phase delay through positive and negative two-time zero-phase filtering, and ensures that the three types of processed data of joint position q, speed v and acceleration a are accurately aligned on a time axis without time sequence deviation. Through the pretreatment mechanism, systematic operation deviation generated in the subsequent regression matrix fitting and parameter identification processes can be avoided, and the identifiability and identification accuracy of the dynamic parameters of the robot are greatly improved.
In operation 230, identification of the gravity parameter and the coulomb friction parameter may be accomplished using a bin-wise averaging method. Fig. 4 shows a schematic diagram of a dynamic parameter identification procedure 400 based on a binned average method according to an exemplary embodiment of the present disclosure, which procedure 400 may calculate the gravity parameters of a robotic arm as well as the coulomb friction torque based on data acquired through a slow bi-directional excitation trajectory. The process 400 may be performed by a parameter identification submodule.
Referring to fig. 4, at operation 410, data binning and outlier rejection operations may first be completed, e.g., the sampled data may be binned based on joint angle. In some embodiments, the motion range of the target joint can be uniformly divided into N continuous data sub-boxes according to a fixed angle step (an exemplary step is 4 °), each sub-box corresponds to a fixed joint angle interval, and then the effective data of all sampling points are automatically divided into sub-boxes corresponding to the angle intervals according to the numerical value of the joint angle position q.
In some embodiments, in order to suppress torque spike noise caused by high-frequency jitter and electromagnetic interference of a motor current loop and improve data fitting precision, abnormal outliers can be removed by adopting a quartered bit distance criterion for all torque samples in each sub-box, and the single removal amount is not more than 10% of the total number of single-box samples at most so as to maximize filtering noise while maintaining effective data characteristics.
In some embodiments, the specific execution logic for eliminating outliers by using the quartile range criterion may be that, in the first step, all sampled data in a single bin are sorted from small to large, in the second step, the value at 25% after the sorting is extracted and set as the lower quartile Q 1, the value at 75% is set as the upper quartile Q 3, in the third step, the quartile range iqr=q 3-Q1 is calculated, in the fourth step, a data valid judgment interval [ Q 1−1.5IQR, Q3 +1.5iqr ] is set, sample data outside the interval is judged to be abnormal candidate elimination points, in the fifth step, the number verification and elimination is that if the number of candidate elimination points is less than 10% of the total number of single bins, all the sampled data are eliminated, and if the number exceeds 10%, the sampled data are sorted from large to small according to the deviation difference between the candidate points and the median of the data, and only 10% of samples with the largest deviation are eliminated.
After the data denoising is completed, all the effective samples in the bins may be divided into two types, namely a forward motion group and a reverse motion group, according to the sign features of the joint motion speed in operation 420. The speed symbol corresponds to a preset standard movement direction of the robot, for example, the joint rotates anticlockwise to forward movement and rotates clockwise to reverse movement.
In some embodiments, a small positive threshold ε may be set as the speed determination dead zone, and ε is illustratively 1X 10 -4 rad/s. The specific grouping rule can be that samples of sampling point speed data v > +epsilon are marked into a forward motion group, samples of sampling point speed data v < -epsilon are marked into a reverse motion group, and low-speed samples with the speed absolute value smaller than a threshold value do not participate in grouping, so that the problems of frequent shaking of the samples in the forward and reverse directions and damage of friction hysteresis loop symmetry caused by zero-speed noise can be avoided.
After completing the sample grouping, the average of all moment samples of the forward group may be calculated separately for each angular bin at operation 430Average value of all moment samples of reverse group。
In operation 440, the gravity moment and the coulomb friction moment may be calculated separately for each angular bin. Specifically, based on the positive and negative motion moment mean value, the pure gravity term g (q) (i.e. gravity moment) and the pure coulomb friction term f c (q) (i.e. coulomb friction moment) can be accurately extracted through formula decoupling calculation, so that the complete separation of two types of coupling mechanical parameters is realized, and the specific calculation formula can be shown as the following formula (3) and formula (4):
(3)
(4)
FIG. 5 shows a schematic diagram of the geometric separation of gravity terms by hysteresis loop case-by-case averaging, where the solid line square marks the forward motion moment mean The dashed circle marks the reverse motion moment mean. The gravity load is only related to the current space position q of the joint, is irrelevant to the rotation movement direction of the joint, the gravity load at the same angle position is constant, the coulomb friction force is a resistance characteristic, the movement of the joint is always hindered, and the direction of the friction force is synchronously reversed and basically kept constant when the movement direction is changed. Therefore, when the joint moves forward, the motor output moment needs to overcome the gravity load of the connecting rod and the friction resistance of the forward movement, and the moment meets the formula (5):
(5)
when the joint moves reversely, the gravity load is kept unchanged, the friction force resists the movement reversely, at the moment, the friction force can offset a part of gravity load, and the output moment required by the motor is greatly reduced, so the moment meets the formula (6):
(6)
Therefore, the dot-dash line fitting curve in fig. 5 is a curve obtained by positive moment average fitting at the same joint angle position, can offset coulomb friction components, only retains gravity items, and realizes accurate decoupling extraction of gravity parameters.
Returning to the flow of fig. 4, in operation 450, the fitting solution of the gravity parameters among the kinetic parameters may be accomplished by fitting the gravity moment to the gravity parameters by a fitting strategy, i.e., based on the extracted gravity term g (q). In some embodiments, a gravity regression matrix may be first constructed, specifically, a regression matrix Y (q, 0, 0) is constructed, that is, the joint velocity v and the acceleration a in the general rigid body dynamic regression matrix Y (q, v, a) are set to zero, the interference of dynamic motion parameters is eliminated, and only matrix array vectors related to static gravity are reserved to form a gravity submatrix Y (q).
In some embodiments, the regression matrix may be constructed from a mainstream robotic dynamics open source Library, which may include, for example, pi Nuoji ao dynamics Library (Pinocchio), rigid body dynamics Library (Rigid Body Dynamics Library, RBDL), drek simulation framework (Drake), open source robotic real-time control framework (Open RObot COntrol Software, OROCOS) onboard kinematics and dynamics Library (KINEMATICS AND DYNAMICS Library, KDL), and the like.
In some embodiments, the dimension of the general regression matrix Y (q, v, a) is 10 columns, and when the velocity v and the acceleration a are set to zero, only the first 4 columns of matrix values are non-zero, so that the gravity submatrix Y (q) only retains the first 4 columns of valid data, and the operation dimension is greatly reduced.
Then, a gravity parameter linear fitting equation is constructed, as shown in the following formula (7):
(7)
Wherein Y (q) is a gravity regression submatrix, g (q) is an extracted gravity term, and θ gravity is a gravity parameter (or referred to as gravity parameter vector) to be solved.
In some embodiments, for the 7-degree-of-freedom chain type mechanical arm (comprising seven motion joints from J 1 to J 7) adopted by the disclosure, three differential gravity parameter fitting strategies are provided, different precision and stability requirements can be adapted as required, and the three different gravity parameter fitting strategies can specifically comprise a recursion identification method, a separate joint division method and a global merging method. The recursive identification method can be used for carrying out recursive regression solution segment by segment from the tail end joint J 7 to the base joint J 1, eliminating the tail end joint J k+1~J7 parameters which are completed to be identified as known quantities when a certain joint J k is identified, simplifying a solution model step by step, wherein the strategy has low single-step operation dimension, higher numerical decomposition precision and better stability of a small-scale matrix, the independent method of the sub-joint independently builds a dedicated regression matrix and a measuring vector for each joint, and independently completes parameter solution, so that the problems of mutual conduction and superposition of identification errors of each joint can be avoided, and the global merging method can be used for integrating sampling data of all joints in a stacked mode to build global large-scale regression matrix to carry out integral solution, and the identification precision is highest in three strategies under the scene of full data excitation and high sampling quality.
In some embodiments, in addition to the three fitting strategies described above, the fitting of gravity parameters may be performed using a weighted least Squares method (WEIGHTED LEAST-Squares), an iterative re-weighted least Squares method (ITERATIVELY REWEIGHTED LEAST-Squares, IRLS), a robust regression algorithm based on Huber loss function or RANSAC algorithm, or the like.
In some embodiments, the optimal parameter model can be screened by automatically comparing the identification results of various fitting strategies through evaluation indexes such as a decision coefficient, a root mean square error, an average absolute error and the like. Meanwhile, the identification results of various strategies can be uniformly archived and saved, and data support is provided for follow-up closed loop verification, precision verification and fault diagnosis.
Returning to the main flow of fig. 2, in operation 235, the system may calculate an inertial parameter and a viscous friction parameter of the mechanical arm based on the sampled data collected by optimizing the fourier excitation trajectory and the gravity parameter, for example, the identification of the inertial tensor parameter and the viscous friction parameter may be completed by a fourier series method, and obtain the inertial parameter of the mechanical arm based on the inertial tensor and the gravity parameter. This operation 235 may be performed by a parameter identification submodule.
Specifically, after obtaining the gravity parameter and the coulomb friction torque output in operation 230 and completing six-step preprocessing of the high-precision joint position q, the speed v, the acceleration a and the motor torque τ data in operation 225, the system may construct a matrix structure of the rigid body dynamics joint regression matrix Y full,Yfull as a spliced combination of the inertia submatrix and the friction submatrix, that is, Y full=[Yinertial(q, v, a)|Yfriction (v) ]. Wherein Y inertial (q, v, a) is an inertia component of a regression matrix, which can be called an inertia matrix for representing the inertia, the connecting rod quality and tensor characteristics of the robot joint, and Y friction (v) is a friction component of the regression matrix, which can be called a friction matrix (or called a friction matrix) for representing various friction characteristics in the joint movement process, and the friction matrix can be constructed based on a friction model. In some embodiments, the gravity parameter and the inertial parameter may be stitched into a complete inertial parameter. It can be seen that the data such as the filtered acceleration and the filtered torque obtained through the six-step preprocessing can be used to calculate a joint regression matrix, and the joint regression matrix can be used to calculate the inertia parameter and the comprehensive friction parameter of the mechanical arm so as to further control the joint of the mechanical arm.
In some embodiments, the system may be populated with multiple types of friction model libraries, and multiple friction models may be switched as needed. The friction model may specifically include a coulomb-viscous friction model, a steckel friction model, a Lu Gelei friction model, a generalized maxwell Wei Huayi friction model (GENERALISED MAXWELL-Slip, GMS), a dar friction model (Dahl), and a data-driven neural network friction compensation model to adapt joint friction characteristics for different decelerators, different conditions.
In some embodiments, unified packaging management of all friction models can be completed through the friction model sub-module, and modular calling and quick switching of various friction models are realized. The friction model submodule can automatically match the optimal friction model according to the model of the speed reducer carried by each joint of the robot. The present disclosure exemplifies a friction model matching method using a 7-degree-of-freedom dual arm mechanical arm as an example. In this exemplary embodiment, each joint carries a different type of reducer, and the friction model sub-module may automatically match the optimal friction model based on the following table 1 rules:
table 1:
in some embodiments, the user may modify the matched friction model via command line parameters.
Continuing with the parameter identification logic of operation 235, after constructing the complete joint regression matrix Y full, the parameter solution may be completed by a linear equation, the specific formula being the following equation (8):
(8)
Wherein, tau is high-precision motor moment data acquired by the joint in real time, theta is a full-dimension dynamic parameter vector to be identified, and the high-precision motor moment data is formed by splicing and combining an inertia parameter theta inertial and a friction parameter theta friction front and back. Since the gravity parameter and the coulomb friction have been identified in operation 230, only the column in Y inertial that is related to inertia and the column in Y friction that is related to viscous friction, i.e. the parameters identified in this way, need to be identified AndExcluding the gravity parameter and the coulomb friction parameter, is essentially only the inertia parameter and the viscous friction parameter, that is, operation 230 may calculate the inertial tensor based on the column in the inertial matrix associated with inertia and calculate the viscous friction parameter based on the column in the friction matrix associated with viscous friction.
In some embodiments, the system may complete the solution of the parameter θ by using a truncated singular value decomposition least square method, and specifically may implement matrix decomposition and parameter calculation by the following formulas (9), (10):
(9)
(10)
The method comprises the steps of obtaining a data space feature vector, wherein Y full is a joint regression matrix with N multiplied by P dimensions, N is the number of sampling data lines, P is the number of parameter identification columns, U is an N-order orthogonal matrix and represents the data space feature vector, sigma is an N multiplied by P diagonal matrix, diagonal elements are matrix singular values, a decreasing rule that sigma 1≥σ2 is more than or equal to the number of the multiple points is more than or equal to 0 is met, V is a P-order orthogonal matrix, V T、UT is a transpose matrix of a corresponding matrix respectively, diag () is a diagonal operator and is used for constructing a singular value reciprocal diagonal matrix, and sigma 1 is that the maximum singular value of the matrix is larger than a truncation threshold value tol. The cutoff threshold tol is used for screening effective singular values, eliminating rank deficiency invalid dimensionality, avoiding parameter variance explosion problem caused by pathological solution, and can be calculated by the following formula (11):
(11)
wherein epsilon is the floating point operation precision of the computer, and is determined by system hardware and a compiling environment, and max (N, P) is the maximum value of the row and column dimensions of the matrix.
In some embodiments, the cutoff threshold tol may also be calculated by Gihonov (Tikhonov) regularization, L-Curve method (L-Curve), or Cross-Validation (Cross-Validation). After the parameter θ (or parameter vector θ) is solved, the system can split the parameter vector θ into an inertial parameter θ inertial and a viscous friction parameter θ friction.
The hierarchical identification architecture of the present disclosure provides a significant operation optimization effect, by decoupling gravity and coulomb friction parameters in advance, the repeated calculation of relevant dimensions in the joint regression identification is not required, the original high complex operation dimension of 70 Yu Wei is greatly reduced to about 30 dimensions, and meanwhile, the condition number of the regression matrix is further reduced by about one order of magnitude, so that the operation efficiency and the identification precision are greatly improved.
Fig. 6 shows a schematic diagram of condition number comparison of observation matrixes before and after optimization, and can be visually verified from measured data, namely, after the optimization scheme of hierarchical decoupling and staged identification is adopted, the condition number of the observation matrixes of the 7-joint mechanical arm is greatly reduced by 2-3 orders of magnitude compared with that of the traditional global identification scheme, the industrial problems of condition, unstable solution and poor precision of a regression matrix commonly existing in the dynamic identification of a robot are solved, and the precision and the robustness of the dynamic parameter identification are remarkably improved.
In some embodiments, whether to import the gravity, coulomb friction parameters identified in operation 230 into operation 235 flow may be manually selected by a user to initiate the optimized hierarchical parameter identification mode of the present disclosure. The static parameters output in operation 230 are stored as independent configuration files, and the user can call the static parameters in the files by enabling the corresponding command line parameters, so that operation 235 is only focused on identifying the inertia tensor and the viscous friction parameters, and layered identification is realized.
Returning to the main flow of fig. 2, after the complete set of kinetic parameter identification is completed, the system may enter a closed loop verification and diagnosis information output link of operation 240, which may be performed by a closed loop verification submodule, may verify the foregoing obtained gravity parameters, coulomb friction torque, inertia parameters, viscous friction parameters, and the like, and change a friction model used for calculation or optimize an excitation track according to a verification result. The link is mainly used for verifying the accuracy and the effectiveness of the parameter identification, screening an optimal dynamic parameter model and outputting fault diagnosis information.
In some embodiments, the closed loop verification sub-module may automatically perform the closed loop verification step after the parameter identification is completed, and may specifically be divided into two steps:
First, substituting the complete set of kinetic parameters (which may include coulomb friction torque, gravity parameter of operation 230, inertia tensor of operation 235, viscous friction vector, inertia parameter, and optional nonlinear friction parameter, minimum inertia parameter set, etc.) obtained by the present identification into a Recursive Newton-Euler Algorithm (RNEA), and forward calculating theoretical predicted torque of the robot joint 。
In the second step, multidimensional precision index calculation and evaluation can be performed, for example, the overall decision coefficient R2, the single joint independent R2, the root mean square error RMSE and the mean absolute error MAE can be calculated respectively. For a mechanical arm with 7 degrees of freedom, 1 group of all-arm overall statistics indexes and 7 groups of single-joint independent statistics indexes can be output, and total 8 groups of quantized data are obtained. The determination coefficient R2 is used for representing the relative precision of parameter fitting and reflecting the fitting degree of the model to real data, the root mean square error RMSE is used for representing the absolute deviation precision of the data, and the average absolute error MAE is used for representing the robust precision of the model.
In some embodiments, the system may set a priority decision rule for optimizing the optimal recognition model, where the priority order is r2→rmse→mae, that is, the priority comparison decision coefficient, and if the R2 values are similar, the comparison is performed on the root mean square error, and if the root mean square error is similar, the screening is performed through the average absolute error.
In some embodiments, the system may set an accuracy threshold determining mechanism, for example, a threshold of R2 may be preset to be 0.95, if the whole arm overall R2 or any single joint R2 is lower than the threshold, it is determined that the accuracy of identifying the kinetic parameter does not reach the standard, the system automatically outputs a prompt message such as "identifying quality is insufficient," recommends data re-acquisition ", and simultaneously automatically stores the core diagnostic data such as singular value sequence, matrix rank, matrix condition number of the operation, and the like, so as to provide data support for an engineer to locate the cause of the identification failure and optimize the acquisition process.
In some embodiments, the system can have intelligent fault location capability, for example, if the number of matrix conditions is normally low, but R2 precision is not up to standard, the system can judge that the structural suitability of a robot friction model is insufficient, prompt a user to upgrade the friction model with higher precision, avoid single joint identification defects from being covered by overall average data, and judge that track excitation is insufficient and data acquisition effectiveness is insufficient, prompt the user to optimize excitation track parameters and re-acquire data if the number of matrix conditions is high.
In some embodiments, the closed loop verification may also use evaluation indexes such as Residual white noise test (Residual WHITENESS TEST), residual autocorrelation analysis, red pool information criterion (Akaike Information Criterion, AIC), and the like for verification.
After the parameter accuracy verification is passed, real-time dynamic compensation control of operation 245 can be executed, and based on the high-accuracy parameters obtained by the identification of the present disclosure, real-time dynamic compensation of gravity, friction and damping can be realized, so that the mechanical arm is in a non-resistance flexible state, and an operator can easily drag teaching.
Fig. 7 illustrates a real-time compensation flow 700 and control loop timing diagram according to an exemplary embodiment of the present disclosure, where operations 245 and 700 may be performed by the zero-gravity teaching control sub-module, calculate a compensation torque in real time based on previously identified inertial parameters, coulomb friction torque, and the viscous friction parameters (or inertial parameters and the integrated friction parameters), and control the robotic arm joint in real time according to the compensation torque to compensate for the robotic arm joint resistance. The sub-module can be provided with a high-frequency real-time control loop, the control frequency can be stably maintained at 100-500 Hz, preferably 200Hz control frequency, and the sub-module corresponds to an ultra-short control period of 5ms, can realize real-time dynamic response of torque compensation, and has no obvious control delay. The core compensation torque τ motor of the zero-gravity teaching control submodule can be calculated by the following formula (12):
(12)
the dynamic force control method comprises the steps of setting a gravity compensation gain in k g, setting an adjusting range to be 0, 1.5, setting g (q) to be a joint gravity item calculated in real time, setting a friction compensation gain in k f, setting an adjusting range to be 0, 1, setting τ friction(v) to be a real-time friction item calculated based on a matching model, setting k d to be a damping compensation gain, setting the damping compensation gain to be more than or equal to 0, and enabling the damping compensation gain to be used for restraining joint motion shake and improving low-speed stability, and setting v to be joint motion speed data acquired in real time. The gravity gain, the friction gain and the resistance gain are mutually independent and can be independently adjusted, and a user can modify parameters in real time through an API interface so as to adapt to different teaching handfeel and operation scenes.
Referring to fig. 7, the zero-gravity teaching control submodule may complete calculation of the compensation moment and issue of the instruction once according to a period of 5ms, and with a process starting time t as a time reference, the time sequence of each operation may be:
And an operation 710 is executed at the time t+0, feedback data of each joint of the robot CAN be read in real time through a CAN bus interface, and three types of state/working condition data including the joint position q, the movement speed v and the motor feedback moment tau are synchronously acquired.
Operation 720 is performed at time t+0.8ms, and the joint real-time gravity term g (q) may be calculated. In some embodiments, the gravity term g (q) may be calculated based on a gravity parameter composed of the gravity parameter calculated in operation 230 and the inertia parameter calculated in operation 235.
Operation 730 may be performed at time t+1.6ms to calculate the friction term. In some embodiments, the friction term may be calculated based on the coulomb friction torque obtained by operation 230, the viscous friction parameter identified by operation 235, and the selected friction model. As described above, the friction model may be selected from one of three friction models, i.e., a coulomb-viscous friction model, a steebeck friction model, and a rugrel friction model, according to the type of the decelerator of the joint, and is not repeated herein.
Operation 740 may be performed at time t+2.4ms to calculate the damping term. The damping term, k d v in equation (12), is used to suppress jitter and improve low speed stability.
Operation 750 may be performed at time t+3.2ms, outputting a torque, and clamping to multiples of peak torque for each motor to ensure that the motor does not exceed a safe torque under faults and disturbances. In some embodiments, the multiple may be 0.8.
Operation 760 may be performed at time t+4ms, issuing the calculated results to each joint over the CAN interface to perform torque feed forward compensation. In some embodiments, the CAN interface issues a current, and the conversion from torque to current may be scaled by the motor controller based on the joint motor model and issued by setting the CAN interface to a current control mode.
In some embodiments, when abnormal working conditions such as CAN feedback frame packet loss and communication interruption occur, the valid state data q last、vlast、τlast of the previous period CAN be automatically called to replace the current failure data, torque compensation control is continuously executed, continuity of control logic is maintained, and the problems of torque impact and joint jitter caused by data jump and command interruption are avoided.
In some embodiments, when the device is stopped or ready to exit the teaching mode, a zero moment control instruction can be issued to all the joint motors, and the motor disabling operation is executed after the torque output by the motors is emptied, so that potential safety hazards such as gravity falling and shaking of the joints caused by direct power failure are avoided, and the operation safety of the device is improved.
Fig. 8 shows a schematic diagram of the operator drag force comparison before and after using the compensation method of the present disclosure, with the horizontal axis of the graph being the robot joint-60 ° to +60° full angle rotation range and the vertical axis being the operational force required to be applied to manually drag the joint. According to the layering identification and multi-model self-adaptive compensation technology, the friction compensation precision of the robot joint is greatly improved, the joint dragging resistance is remarkably reduced, an operator can drag the mechanical arm easily without physical effort to complete teaching operation of any track, teaching operation handfeel is optimized, track distortion caused by resistance interference is eliminated, and the re-carving precision and operation consistency of teaching tracks are greatly improved.
The full set of zero gravity teaching method and the control system have been successfully deployed and applied to commercial double-arm robot products to complete actual measurement verification. An exemplary tester is a 7-degree-of-freedom cooperative mechanical arm with a single arm mass of about 18 kg, a maximum end load of 5 kg and a serial RS03/RS02/RS06/RS00 joint motor. The actual measurement results are shown in table 2, and show that the scheme has the core advantages of ultra-high real-time performance, strong running stability, low and constant resource occupation and perfect fault tolerance recovery mechanism, and meanwhile has extremely strong cross-hardware and cross-platform compatibility adaptation capability, and can be widely adapted to zero-gravity teaching scenes of multi-model and multi-degree-of-freedom collaborative robots.
Table 2:
Therefore, the technical scheme of the present disclosure achieves the following technical effects in engineering application:
1. The intuitive drag teaching is that an operator can drag a tens of kilograms of seven-degree-of-freedom mechanical arms by using single-digit bovine-level external force, which is equivalent to dragging the operation hand feeling of an object with the same buoyancy in water, and a process engineer with the programming experience of an inorganic robot can also complete track teaching;
2. the multi-hardware platform is adapted, namely, the same set of software framework can be applied to different transmission mechanisms such as a harmonic reducer, a planetary gear, a cycloidal pin gear and the like through the optional configuration of a multi-friction model, and compensation logic does not need to be independently developed for each hardware;
3. the closed loop can be diagnosed, namely, the system outputs diagnostic information such as condition number, matrix rank, joint R2 and the like when the identification fails, thereby being convenient for engineers to accurately position problem sources and shortening the debugging period;
4. the production and deployment are friendly, and the three capabilities of automatic detection, parallel identification and closed loop verification of the double-arm CAN channel CAN obviously reduce the engineering complexity of the factory calibration process.
Fig. 9 shows a flowchart of an exemplary method 900 according to an exemplary embodiment of the present disclosure. The example method 900 may be performed by at least a portion of a device or a device of a robotic system or a smart hand system, such as by the control device 120 of fig. 1. Referring to FIG. 9, an exemplary method 900 may include sampling operating condition data of a robotic arm joint based on a slow bi-directional excitation trajectory to obtain first sampled data, sampling operating condition data of the robotic arm joint based on an optimized Fourier series excitation trajectory to obtain second sampled data, calculating a gravity parameter and a coulomb friction torque of the robotic arm based on the first sampled data, operation 940 calculating an inertia parameter and a viscous friction parameter of the robotic arm based on the second sampled data and the gravity parameter, and controlling the robotic arm in real-time based on the inertia parameter, the coulomb friction torque, and the viscous friction parameter to compensate for the robotic arm resistance, operation 950.
In some embodiments, the calculating the gravity parameter and the coulomb friction torque of the mechanical arm based on the first sampling data may include binning the first sampling data based on an angle of the joint, calculating a gravity torque and a coulomb friction torque for each bin, and fitting the gravity parameter from the gravity torque by a fitting strategy.
In some embodiments, the fitting strategy may include recursive identification, independent articulation of the joints, or global merging.
In some embodiments, the calculating inertial parameters of the robotic arm may include calculating an inertial tensor based on an inertial related column in an inertial matrix, and calculating inertial parameters of the robotic arm based on the inertial tensor and the gravitational parameter.
In some embodiments, the calculating the viscous friction parameter of the mechanical arm may include constructing a friction matrix based on a friction model, and calculating the viscous friction parameter based on a column of the friction matrix that is related to viscous friction.
In some embodiments, the friction model may include a coulomb-viscous model, a starebeck model, or a rugrel model.
In some embodiments, the exemplary method 900 may further include verifying the gravity parameter, the coulomb friction torque, the inertia parameter, or the viscous friction parameter, and altering a friction model used for calculation or optimizing an excitation trajectory based on the verification result.
In some embodiments, the validating may include validating based on a decision coefficient, a root mean square error, or an average absolute error.
Fig. 10 shows a flowchart of an exemplary method 1000 according to an exemplary embodiment of the present disclosure. The exemplary method 100 may be performed by at least a portion of a device or a device of a robotic system or a smart hand system, such as the control device 120 of fig. 1. Referring to fig. 10, an exemplary method 1000 may include sampling a position and a moment of a robot arm joint, operation 1010, performing a zero-phase low-pass filtering process on the position to obtain a filtered position, operation 1030, performing a center difference process on the filtered position to obtain an original velocity, operation 1040, performing a zero-phase low-pass filtering process on the original velocity to obtain a filtered velocity, operation 1050, performing a center difference process on the filtered velocity to obtain an original acceleration, operation 1060, performing a zero-phase low-pass filtering process on the original acceleration to obtain a filtered acceleration, operation 1070, performing a zero-phase low-pass filtering process on the moment to obtain a filtered moment, operation 1080, calculating a joint regression matrix based on the filtered acceleration and the filtered moment, and operation 1090, controlling the robot arm joint based on the joint regression matrix.
In some embodiments, the zero-phase low-pass filtering process may be performed by a butterworth filter.
In some embodiments, the butterworth filter may have a low-pass cut-off frequency of 5 hz.
In some embodiments, the butterworth filter may have an order of 4.
In some embodiments, the controlling the mechanical arm based on the joint regression matrix may include calculating an inertial parameter and a comprehensive friction parameter of the mechanical arm based on the joint regression matrix, calculating a compensation torque based on the inertial parameter and the comprehensive friction parameter, and controlling the mechanical arm joint in real time according to the compensation torque to compensate for mechanical arm joint resistance.
In some embodiments, the real-time control of the mechanical arm joints according to the compensation moment to compensate the mechanical arm joint resistance may include converting the compensation moment information into current information, and sending the current information to the corresponding mechanical arm joints through a controller area network interface to perform real-time control on the mechanical arm joints.
Fig. 11 illustrates a block diagram of an example device 1100 in accordance with an example embodiment. The device 1100 may be implemented as a functional module or device in a robotic system, such as at least a portion of the control device 120, for performing the exemplary embodiments discussed above. Referring to FIG. 11, device 1100 includes, for example, at least one processor 1110 and at least one memory 1120 that stores an operating system 1122, instructions 1124, and data 1126. The instructions 1124, when executed by the at least one processor 1110, cause the device 1100 to perform at least the methods described above with reference to fig. 9 or 10. In one example, the at least one memory 1110 and the instructions 1124 (e.g., computer program code, software) are configured to, with the at least one processor 1110, cause the device 1100 to perform any of the methods described above.
Operating system 1122 is system software stored in memory 1120 that provides a unified abstract interface for providing a running environment for execution of instructions 1124 and managing the scheduling of computing resources of processor 1110, space allocation of memory 1120, user interface 1130, and communication interface 1140. The operating system 1122 may be a Windows, mac OS, unix, linux, or other type of operating system.
The data 1126 is stored in the memory 1120, and is various information sets that the processor 1110 completes read-write, transmission and operation processing according to the instructions 1124 under the scheduling control of the operating system 1122, so as to provide data support for the operation and function implementation of each component of the device 1100.
The processor 1100 may include, or be constructed as, one or more circuits configured to perform the stages of the method in accordance with the disclosed exemplary embodiments. In this disclosure, the term "circuitry" may refer to one or more or all of (a) a hardware-only circuit implementation, such as implemented in analog and/or digital circuitry alone, (b) a combination of hardware circuitry and software, such as (i) a combination of analog and/or digital hardware circuitry and software/firmware, if applicable, and (ii) any portion of a hardware processor (including digital signal processors, software, and memory) with software that work together to cause a device such as a user device to perform various functions, (c) a hardware circuit and/or processor, such as a microprocessor or a portion of a microprocessor, that requires software (e.g., firmware) for operation, but that software may not be present when not required for operation. The definition of such circuitry applies to all uses of this term in this disclosure (including any claims). As a further example, the term circuitry, as used in this disclosure, also encompasses an implementation of only a hardware circuit or processor (or processors), an implementation of a hardware circuit or portion of a processor and its accompanying software and/or firmware. The term circuitry also encompasses, if applicable to the particular claim feature, a baseband integrated circuit or processor integrated circuit for a mobile device, or a similar integrated circuit in a server, a cellular network device, or other computing or network device.
Memory 1120 may be implemented using any suitable data storage technology. Memory 1120 may include a database for storing data. Memory 1120 may be at least partially external to device 1100, but accessible to device 1100.
Operating system 1122, instructions 1124, and data 1126 can be contained in a computer-readable medium or a non-transitory (non-transitory) computer-readable medium. The term non-transitory as used herein is relative to the definition of data storage persistence (persistency) (e.g., RAM versus ROM) as defined with respect to the medium itself (i.e., tangible rather than signals).
Device 1100 may include one or more entities of any protocol layer. In some embodiments, one or more of these entities may be configured to perform method 900, method 1000, or any one or more embodiments described with respect to these methods.
The device 1100 may also include communication interfaces 1140, such as wireless communication interfaces and/or wired communication interfaces, that may provide communication capabilities for the device 1100.
The communication interface 1140 may include a device having network data receiving and transmitting functions such as a receiving circuit, a receiver configured to receive information in accordance with at least one wired or wireless standard, an I/O interface, etc. The communication interface 1140 may comprise a transmitter configured to transmit information in accordance with at least one wired or wireless standard. The receiver may comprise more than one receiver. The transmitter may comprise more than one transmitter. The communication interface 1140 may include a transceiver configured to receive and transmit information in accordance with at least one wired or wireless standard. The transceiver may include more than one receiver.
The device 1100 can include a user interface 1130, the user interface 1130 including, for example, at least one of a keyboard, microphone, touch screen, display, speaker, and the like. The user interface 1130 may be used to control the device 1100 by a user. The user interface 1130 may be external to the device 1100. For example, device 1100 may be connected to another device, such as a computer, via a wireless or wired connection, and device 1100 may be controlled by a user via the computer.
In some embodiments, at least some of the methods described herein may be performed by an apparatus comprising means (means) for performing various operations or steps in the described methods. The means for performing the method steps described herein may include software and/or hardware components of the device 1100. For example, at least one processor 1110, memory 1120, and computer program code may form an apparatus for performing the methods and any embodiments described herein. The term "means" as used herein may be interpreted as referring to a singular means, i.e. a single element, or a plural means, i.e. a combination of single elements. Thus, the term "means for performing A, B, C" should be interpreted to cover apparatuses in which only one means performs A, B, C, or in which separate means performs A, B, C, or in which partially or fully overlapping means performs A, B, C. Also, the terms "means for performing a, means for performing B, means for performing C" should be interpreted to cover apparatuses in which only one means performs A, B, C, or in which separate means performs A, B, C, or in which partially or fully overlapping means performs A, B, C.
Fig. 12 shows an example block diagram of an example device 1200 according to an example embodiment of the disclosure. The example device 1200 may be, for example, at least a portion of a control device 120 such as described above.
As shown in fig. 12, the example apparatus 1200 may include means 1210 for sampling operating condition data of a manipulator joint based on a slow bi-directional excitation trajectory to obtain first sampled data, means 1220 for sampling operating condition data of the manipulator joint based on an optimized fourier series excitation trajectory to obtain second sampled data, means 1230 for calculating a gravity parameter and a coulomb friction torque of the manipulator based on the first sampled data, means 1240 for calculating an inertia parameter and a viscous friction parameter of the manipulator based on the second sampled data and the gravity parameter, and means 1250 for controlling the manipulator in real-time based on the inertia parameter, the coulomb friction torque, and the viscous friction parameter to compensate for the manipulator resistance.
In some embodiments, the calculating the gravity parameter and the coulomb friction torque of the mechanical arm based on the first sampling data may include binning the first sampling data based on an angle of the joint, calculating a gravity torque and a coulomb friction torque for each bin, and fitting the gravity parameter from the gravity torque by a fitting strategy.
In some embodiments, the fitting strategy may include recursive identification, independent articulation of the joints, or global merging.
In some embodiments, the calculating inertial parameters of the robotic arm may include calculating an inertial tensor based on an inertial related column in an inertial matrix, and calculating inertial parameters of the robotic arm based on the inertial tensor and the gravitational parameter.
In some embodiments, the calculating the viscous friction parameter of the mechanical arm may include constructing a friction matrix based on a friction model, and calculating the viscous friction parameter based on a column of the friction matrix that is related to viscous friction.
In some embodiments, the friction model may include a coulomb-viscous model, a starebeck model, or a rugrel model.
In some embodiments, the example apparatus 1200 may further include means for validating the gravity parameter, the coulomb friction torque, the inertia parameter, or the viscous friction parameter, and means for changing a friction model used for calculation or optimizing an excitation trajectory based on a validation result.
In some embodiments, the validating may include validating based on a decision coefficient, a root mean square error, or an average absolute error.
Fig. 13 illustrates an example block diagram of an example device 1300 according to an example embodiment of this disclosure. The example device 1300 may be, for example, at least a portion of a control device 120 such as described above.
As shown in fig. 13, the example apparatus 1300 may include means 1310 for sampling a position and a moment of a robot arm joint, means 1320 for performing a zero-phase low-pass filtering process on the position to obtain a filtered position, means 1330 for performing a center difference process on the filtered position to obtain an original velocity, means 1340 for performing a zero-phase low-pass filtering process on the original velocity to obtain a filtered velocity, means 1350 for performing a center difference process on the filtered velocity to obtain an original acceleration, means 1360 for performing a zero-phase low-pass filtering process on the original acceleration to obtain a filtered acceleration, means 1370 for performing a zero-phase low-pass filtering process on the moment to obtain a filtered moment, means 1380 for calculating a joint regression matrix based on the filtered acceleration and the filtered moment, and means 1390 for controlling the robot arm joint based on the joint regression matrix.
In some embodiments, the zero-phase low-pass filtering process may be performed by a butterworth filter.
In some embodiments, the butterworth filter may have a low-pass cut-off frequency of 5 hz.
In some embodiments, the butterworth filter may have an order of 4.
In some embodiments, the controlling the mechanical arm based on the joint regression matrix may include calculating an inertial parameter and a comprehensive friction parameter of the mechanical arm based on the joint regression matrix, calculating a compensation torque based on the inertial parameter and the comprehensive friction parameter, and controlling the mechanical arm joint in real time according to the compensation torque to compensate for mechanical arm joint resistance.
In some embodiments, the real-time control of the mechanical arm joints according to the compensation moment to compensate the mechanical arm joint resistance may include converting the compensation moment information into current information, and sending the current information to the corresponding mechanical arm joints through a controller area network interface to perform real-time control on the mechanical arm joints.
It should be appreciated that an apparatus according to an embodiment of the present disclosure is not limited to the above examples. The various blocks in the example apparatus shown may be connected or coupled together in any suitable manner, with the arrows between the blocks being used only to indicate the flow of data or signals of interest, and not to indicate that the flow of data or signals between the blocks may only be in the direction of the arrows.
Some example embodiments also provide computer program code or instructions which, when executed by one or more processors, cause an apparatus or device to perform the above-described methods. The computer program code for carrying out the methods of the example embodiments may be written in any known or later developed programming language, such as Java, C++, C, and Assembler. The computer program code may be provided to one or more processors or controllers of a general purpose computer, special purpose computer, or other programmable data processing apparatus such that when the program code is executed by the processor or controllers, the functions/operations specified in the flowchart and/or block diagram are implemented. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote computer or server.
Some example embodiments also provide a computer program product or a computer-readable medium having stored therein computer program code or instructions which, when executed by a processor, cause an associated apparatus to perform the above-described methods, steps or functions. A computer readable medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage apparatus, or any suitable combination of the foregoing.
Moreover, although operations are described in a particular order, this should not be understood as requiring that such operations be performed in the particular order or sequential order shown or that all illustrated operations be performed in order to achieve desirable results. In some cases, multitasking and parallel processing may be advantageous. Also, while in the foregoing discussion, several specific implementation details are included, such details should not be interpreted as limitations on the scope of the present disclosure, but rather as descriptions of features specific to particular embodiments. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
The basic principles of the present disclosure have been described above in connection with embodiments, but it should be noted that the advantages, benefits, effects, etc. mentioned in the present disclosure are merely examples and not limiting, and these advantages, benefits, effects, etc. are not to be considered as necessarily possessed by the various embodiments of the present disclosure. Furthermore, the specific details disclosed herein are for purposes of illustration and understanding only, and are not intended to be limiting, since the disclosure is not necessarily limited to practice with the specific details described.
The block diagrams of the devices, apparatuses, devices, systems referred to in this disclosure are merely illustrative examples and are not intended to require or imply that the connections, arrangements, configurations must be made in the manner shown in the block diagrams. As will be appreciated by one of skill in the art, the devices, apparatuses, devices, systems may be connected, arranged, configured in any manner. Words such as "including," "comprising," "having," and the like are words of openness and mean "including but not limited to," and are used interchangeably therewith. The terms "or" and "as used herein refer to and are used interchangeably with the term" and/or "unless the context clearly indicates otherwise. The term "such as" as used herein refers to, and is used interchangeably with, the phrase "such as, but not limited to.
The previous description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present disclosure. Various modifications to these aspects will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other aspects without departing from the scope of the disclosure. Thus, the present disclosure is not intended to be limited to the aspects shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
The foregoing description has been presented for purposes of illustration and description, and is not intended to limit embodiments of the disclosure to the form disclosed herein. Although a number of example aspects and embodiments have been discussed above, a person of ordinary skill in the art will recognize certain variations, modifications, alterations, additions, and subcombinations thereof.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example of implementing the claims.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Those skilled in the art will appreciate that the features recited in the various embodiments of the invention and/or in the claims may be combined in various combinations and/or combinations, even if such combinations or combinations are not explicitly recited in the invention. In particular, the features recited in the various embodiments of the invention and/or in the claims can be combined in various combinations and/or combinations without departing from the spirit and teachings of the invention. All such combinations and/or combinations fall within the scope of the invention.
The embodiments of the present invention are described above. These examples are for illustrative purposes only and are not intended to limit the scope of the present invention. Although the embodiments are described above separately, this does not mean that the measures in the embodiments cannot be used advantageously in combination. The scope of the invention is defined by the appended claims and equivalents thereof. Various alternatives and modifications can be made by those skilled in the art without departing from the scope of the invention, and such alternatives and modifications are intended to fall within the scope of the invention.

Claims (14)

1.A method of controlling a robotic arm joint, comprising:
sampling the position and moment of a mechanical arm joint;
zero-phase low-pass filtering is carried out on the position to obtain a filtering position;
performing center difference processing on the filtering position to obtain an original speed;
zero-phase low-pass filtering is carried out on the original speed to obtain a filtering speed;
performing center difference processing on the filtering speed to obtain an original acceleration;
Zero-phase low-pass filtering is carried out on the original acceleration to obtain a filtered acceleration;
Zero-phase low-pass filtering is carried out on the moment to obtain a filtering moment;
Calculating a joint regression matrix based on the filtered acceleration and the filtered torque, and
Controlling the mechanical arm joint based on the joint regression matrix;
the controlling the mechanical arm based on the joint regression matrix comprises the following steps:
calculating inertia parameters and comprehensive friction parameters of the mechanical arm based on the joint regression matrix;
Calculating a compensation torque based on the inertia parameter and the integrated friction parameter, and
Controlling the mechanical arm joint in real time according to the compensation moment to compensate the mechanical arm joint resistance;
the compensation moment passes through type And performing a calculation, wherein, the calculation is performed,To compensate the moment; A gravity compensation gain; A joint gravity term calculated in real time; Compensating gain for friction; Real-time friction items calculated based on the matching model; compensating gain for damping; the method comprises the steps of acquiring joint movement speed data in real time;
The matching model is a friction model matched according to the model of a speed reducer carried by each joint of the robot, wherein the friction model matched with a shoulder pitch joint and a shoulder roll joint is a Style Beck model, the friction model matched with a shoulder yaw joint is a Coulomb-viscosity model, the friction model matched with an elbow joint is a Coulomb-viscosity or Style Beck, and the friction model matched with a wrist joint is Style Beck or Lu Gelei.
2. The method of claim 1, wherein the zero-phase low-pass filtering process is performed by a butterworth filter.
3. The method of claim 2, wherein the butterworth filter has a low-pass cutoff frequency of 5 hz.
4. The method of claim 2, wherein the butterworth filter has an order of 4.
5. The method of claim 1, wherein said controlling the robotic arm joint in real time to compensate for robotic arm joint resistance based on the compensation torque comprises:
converting the compensation torque information into current information;
and sending the current information to a corresponding mechanical arm joint through a controller local area network interface so as to control the mechanical arm joint in real time.
6. An electronic device, comprising:
At least one processor, and
At least one memory storing instructions that, when executed by the at least one processor, cause the electronic device to perform at least operations comprising:
sampling the position and moment of a mechanical arm joint;
zero-phase low-pass filtering is carried out on the position to obtain a filtering position;
performing center difference processing on the filtering position to obtain an original speed;
zero-phase low-pass filtering is carried out on the original speed to obtain a filtering speed;
performing center difference processing on the filtering speed to obtain an original acceleration;
Zero-phase low-pass filtering is carried out on the original acceleration to obtain a filtered acceleration;
Zero-phase low-pass filtering is carried out on the moment to obtain a filtering moment;
Calculating a joint regression matrix based on the filtered acceleration and the filtered torque, and
Controlling the mechanical arm joint based on the joint regression matrix;
the controlling the mechanical arm based on the joint regression matrix comprises the following steps:
calculating inertia parameters and comprehensive friction parameters of the mechanical arm based on the joint regression matrix;
Calculating a compensation torque based on the inertia parameter and the integrated friction parameter, and
Controlling the mechanical arm joint in real time according to the compensation moment to compensate the mechanical arm joint resistance;
the compensation moment passes through type And performing a calculation, wherein, the calculation is performed,To compensate the moment; A gravity compensation gain; A joint gravity term calculated in real time; Compensating gain for friction; Real-time friction items calculated based on the matching model; compensating gain for damping; the method comprises the steps of acquiring joint movement speed data in real time;
The matching model is a friction model matched according to the model of a speed reducer carried by each joint of the robot, wherein the friction model matched with a shoulder pitch joint and a shoulder roll joint is a Style Beck model, the friction model matched with a shoulder yaw joint is a Coulomb-viscosity model, the friction model matched with an elbow joint is a Coulomb-viscosity or Style Beck, and the friction model matched with a wrist joint is Style Beck or Lu Gelei.
7. The apparatus of claim 6, wherein the zero-phase low-pass filtering process is performed by a butterworth filter.
8. The apparatus of claim 7, wherein the butterworth filter has a low-pass cutoff frequency of 5 hz.
9. The apparatus of claim 7, wherein the butterworth filter has an order of 4.
10. The apparatus of claim 6, wherein said controlling the robotic arm joint in real time to compensate for robotic arm joint resistance based on the compensation torque comprises:
converting the compensation torque information into current information;
and sending the current information to a corresponding mechanical arm joint through a controller local area network interface so as to control the mechanical arm joint in real time.
11. An electronic device comprising means for performing the method of any one of claims 1 to 5.
12. A computer readable medium comprising program instructions which, when executed, implement the method of any one of claims 1 to 5.
13. A computer program product comprising instructions which, when executed by a processor, perform the method of any one of claims 1 to 5.
14. A robot, comprising:
mechanical arm, actuator arranged at tail end of mechanical arm, and
A controller electrically connected to the robotic arm and the actuator, respectively, the controller being configured to perform the method of any one of claims 1-5.
CN202610917265.0A 2026-06-24 2026-06-24 Robotic arm joint control methods, electronic devices and robots Active CN122425720B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202610917265.0A CN122425720B (en) 2026-06-24 2026-06-24 Robotic arm joint control methods, electronic devices and robots

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202610917265.0A CN122425720B (en) 2026-06-24 2026-06-24 Robotic arm joint control methods, electronic devices and robots

Publications (2)

Publication Number Publication Date
CN122425720A CN122425720A (en) 2026-07-21
CN122425720B true CN122425720B (en) 2026-09-18

Family

ID=100551686

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202610917265.0A Active CN122425720B (en) 2026-06-24 2026-06-24 Robotic arm joint control methods, electronic devices and robots

Country Status (1)

Country Link
CN (1) CN122425720B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108714896A (en) * 2018-05-28 2018-10-30 华南理工大学 A kind of robot flexibility torque feed forward control method based on kinetics of deformable bodies model
CN115139302A (en) * 2022-07-11 2022-10-04 华中科技大学 UR robot dynamic parameter identification method considering joint friction and motor inertia
CN122074914A (en) * 2026-04-16 2026-05-26 延安大学 Intelligent sports rehabilitation assessment system based on multimodal perception and AI analysis

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI313486B (en) * 2005-07-28 2009-08-11 Nuflare Technology Inc Position measurement apparatus and method and writing apparatus and method
PL2427110T3 (en) * 2009-05-08 2014-09-30 Koninklijke Philips Nv Motor assisted manually controlled movement assembly, x-ray system comprising the same and method
CN112370742A (en) * 2020-10-29 2021-02-19 深圳华鹊景医疗科技有限公司 Active dragging method and device of mechanical arm and upper limb rehabilitation robot
CN116009389A (en) * 2022-07-15 2023-04-25 广州数控设备有限公司 Robot control method, system and device based on inverse dynamics feed-forward compensation
CN118170016A (en) * 2024-03-11 2024-06-11 山东大学 A dynamic parameter identification method and system for processing joint measurement inconsistency
CN120010382B (en) * 2024-12-31 2025-11-28 东莞市李群自动化技术有限公司 A method for real-time parameter identification and compensation control of robot motion, and a robot
CN119458377B (en) * 2025-01-07 2025-04-08 法奥意威(苏州)机器人系统有限公司 Dynamic modeling method and device based on residual error compensation and electronic equipment
CN121535733A (en) * 2025-11-21 2026-02-17 中山大学 Torque Compensation Calibration Method and System Based on Articulated Robotic Arms
CN121821350A (en) * 2025-12-05 2026-04-10 深圳市优必选科技股份有限公司 Data processing method and device for mechanical arm, electronic equipment, computer readable storage medium and computer program product

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108714896A (en) * 2018-05-28 2018-10-30 华南理工大学 A kind of robot flexibility torque feed forward control method based on kinetics of deformable bodies model
CN115139302A (en) * 2022-07-11 2022-10-04 华中科技大学 UR robot dynamic parameter identification method considering joint friction and motor inertia
CN122074914A (en) * 2026-04-16 2026-05-26 延安大学 Intelligent sports rehabilitation assessment system based on multimodal perception and AI analysis

Also Published As

Publication number Publication date
CN122425720A (en) 2026-07-21

Similar Documents

Publication Publication Date Title
CN105772917B (en) A kind of three joint spot welding robot&#39;s Trajectory Tracking Control methods
WO2017178469A1 (en) Programming a robot by demonstration
CN106945043A (en) A kind of master-slave mode telesurgery robot multi-arm cooperative control system
Liu et al. Adaptive lead-through teaching control for spray-painting robot with closed control system
CN114619483A (en) Flexible robot vibration suppression method and system based on trajectory correction
CN122425705A (en) Long-range mobile operation control method integrating skill-state diagram and closed-loop execution
CN122463172B (en) Robotic arm resistance compensation methods, electronic devices and robots
Tran et al. Practical synchronous sliding mode control with time delay estimation for a 4-DOF parallel manipulator with unknown dynamics and variable payload
Bergerman et al. Experimental study of an underactuated manipulator
CN122425720A (en) Mechanical arm joint control method, electronic equipment and robot
Ouyang et al. Direct data-driven predictive control for a three-dimensional cable-driven soft robotic arm
CN113625572B (en) Mechanical arm composite fault-tolerant controller system based on industrial Internet
Jia Control of flexible joint robot based on motor state feedback and dynamic surface approach
CN113043269B (en) Robot contact force observation system based on robot model
Barekatain et al. DFL-TORO: A one-shot demonstration framework for learning time-optimal robotic manufacturing tasks
Linnerud et al. CAD-based system for programming of robotic assembly processes with human-in-the-loop
Short et al. A generic controller architecture for intelligent robotic systems
Pliego-Jiménez et al. Dexterous remote manipulation by means of a teleoperation system
Nilkhamhang et al. Model-based adaptive friction compensation for accurate position control
CN110991126B (en) Cutting machining robot dynamic stiffness modeling method based on modal analysis
Ogawa et al. Improved internal model control based on optimal control for servo system with dead time
Zaidan A work-piece based approach for programming cooperating industrial robots
Duan et al. A faster and more robust momentum observer for robot collision detection based on loop shaping techniques
CN202378054U (en) Mechanical arm controller with motion control and logic control cores
Tadesse Design and Development of a Multiview Image Scanner for 3D Reconstruction

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant