[go: up one dir, main page]

WO2025015815A1 - Gravity compensation algorithm for tail end tool of robotic arm, and system, device and storage medium - Google Patents

Gravity compensation algorithm for tail end tool of robotic arm, and system, device and storage medium Download PDF

Info

Publication number
WO2025015815A1
WO2025015815A1 PCT/CN2023/137235 CN2023137235W WO2025015815A1 WO 2025015815 A1 WO2025015815 A1 WO 2025015815A1 CN 2023137235 W CN2023137235 W CN 2023137235W WO 2025015815 A1 WO2025015815 A1 WO 2025015815A1
Authority
WO
WIPO (PCT)
Prior art keywords
force sensor
gravity
zero
value
point value
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.)
Pending
Application number
PCT/CN2023/137235
Other languages
French (fr)
Chinese (zh)
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.)
Shenzhen Institute of Advanced Technology of CAS
Original Assignee
Shenzhen Institute of Advanced Technology of CAS
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 Shenzhen Institute of Advanced Technology of CAS filed Critical Shenzhen Institute of Advanced Technology of CAS
Publication of WO2025015815A1 publication Critical patent/WO2025015815A1/en
Pending legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B25HAND TOOLS; PORTABLE POWER-DRIVEN TOOLS; MANIPULATORS
    • B25JMANIPULATORS; CHAMBERS PROVIDED WITH MANIPULATION DEVICES
    • B25J9/00Programme-controlled manipulators
    • B25J9/16Programme controls
    • B25J9/1628Programme controls characterised by the control loop
    • B25J9/1638Programme controls characterised by the control loop compensation for arm bending/inertia, pay load weight/inertia
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B25HAND TOOLS; PORTABLE POWER-DRIVEN TOOLS; MANIPULATORS
    • B25JMANIPULATORS; CHAMBERS PROVIDED WITH MANIPULATION DEVICES
    • B25J19/00Accessories fitted to manipulators, e.g. for monitoring, for viewing; Safety devices combined with or specially adapted for use in connection with manipulators
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B25HAND TOOLS; PORTABLE POWER-DRIVEN TOOLS; MANIPULATORS
    • B25JMANIPULATORS; CHAMBERS PROVIDED WITH MANIPULATION DEVICES
    • B25J9/00Programme-controlled manipulators
    • B25J9/16Programme controls

Definitions

  • the present invention relates to the field of system software, and in particular to a robot arm end tool gravity compensation algorithm, system, device and storage medium.
  • the device is connected between the end of the robot and the force sensor, and the end tool is installed on the force sensor to perform some tasks, such as polishing and grinding.
  • the reading of the force sensor generally includes three parts: the gravity of the end tool, the zero point value of the force sensor itself, and the true value of the contact between the robot and the external environment. We need to obtain the true force value of the contact between the robot and the external environment to accurately control the force of the robot, so we need to consider eliminating the influence of the gravity of the end tool and the zero point of the force sensor on the force sensor reading.
  • the zero drift phenomenon of the force sensor refers to the zero point value of the force sensor being erratic due to the influence of temperature, etc., and its value will change every time it is started, so we need to calibrate the zero point of the force sensor after each start.
  • Zhang Lijian et al. proposed a gravity compensation method, which compensates by calculating the gravity of the end tool and the zero point of the force sensor, but this method ignores the problem of the non-fixed zero point of the force sensor caused by the zero drift of the force sensor.
  • the present invention calculates the gravity of the end tool and calibrates the zero point of the force sensor for a period of time after each start of the force sensor, that is, the zero point value of a period of time after the start is averaged as the zero point of this movement.
  • the present invention ensures that the zero point value of the force sensor is related to the environment at the time, and the zero point value is made to better match the current start by taking the average value.
  • the purpose of this application is to provide a robot arm end tool gravity compensation algorithm, system, device and storage medium, aiming to solve the problem of inaccurate readings caused by "zero drift" of sensors in the prior art.
  • One of the purposes of this application is to provide a robot end tool gravity compensation algorithm, specifically including:
  • a tool gravity compensation algorithm at the end of a robotic arm wherein a force sensor is installed at the end of the robotic arm, and the algorithm is characterized by comprising:
  • the zero-point value within the time T is calculated, and the average value of the zero-point value is taken as the zero-point value for starting the force sensor; if not, the zero-point value of the force sensor is obtained again;
  • the actual external force value is obtained by subtracting the gravity and the zero value at which the force sensor is started from the reading of the force sensor;
  • the robot arm moves to perform the corresponding task.
  • step of obtaining the gravity of the robot end tool specifically includes the following steps:
  • the world coordinate system is , so that The axis direction is vertically upward, which is the opposite direction of gravity.
  • the world coordinate system can be arbitrarily rotated around the direction of gravity.
  • the gravity is in the world coordinate system
  • the direction vector in is:
  • angles U and V are: ,
  • the reading of the force sensor is recorded as: ,in are the three force components of the sensor, are the three torque components of the sensor;
  • the zero point value of the force sensor is recorded as: ;
  • the external force value is the actual force value of the contact between the robot arm and the outside world, which is expressed as: ;
  • the gravity of the robot end tool will change with the change of posture, which is recorded as: ;
  • the step of obtaining the zero point value of the force sensor according to the gravity specifically includes the following steps:
  • the force sensor remains stationary after being activated and is not acted upon by external force.
  • the calculation method of the zero point value of the force sensor is:
  • F(t) and M(t) are the force and torque values of the force sensor at time t during the operation of the robot arm. and are the force and torque values of the end tool in the force sensor coordinate system at time t.
  • step of taking the average value of the zero-point value as the zero-point value for starting the force sensor specifically includes the following steps:
  • the average value of the zero-point value within time T is taken as the zero-point value of the sensor startup.
  • the calculation formula is:
  • k is the number of points collected by the force sensor within the time T; that is, the zero point value is calculated for each time T, and the average value of all zero point values within the time T is calculated after being aggregated, and the average value is used as the zero point value for sensor startup.
  • the step of obtaining the real external force value by subtracting the gravity and the zero value of the force sensor from the reading of the force sensor comprises the following steps:
  • the actual external force value is obtained by subtracting the gravity and the zero value of the force sensor from the reading of the force sensor.
  • the formula is:
  • the second object of the present application is to provide a robot end tool gravity compensation system, comprising:
  • Acquisition module obtains the gravity of the robot's end tool
  • Calculation module obtaining the zero point value of the force sensor according to the gravity
  • Judgment module judge whether the sampling time reaches the preset time T;
  • Judgment result module if the time T is reached, the zero point value within the time T is calculated, and the average value of the zero point value is taken as the zero point value for starting the force sensor; if not, the zero point value of the force sensor is re-obtained;
  • Output module obtains the real external force value by subtracting the gravity and the zero value of the force sensor from the reading of the force sensor;
  • Execution module The robotic arm moves to perform the corresponding tasks.
  • the third object of the present application is to provide a device, the device comprising a processor and a memory coupled to the processor, wherein:
  • the memory stores program instructions for implementing the robot arm end tool gravity compensation algorithm
  • the processor is used to execute the program instructions stored in the memory to provide a robot end-of-arm tool gravity compensation algorithm.
  • a fourth object of the present application is to provide a storage medium storing program instructions executable by a processor, wherein the program instructions are used to execute the robot arm end tool gravity compensation algorithm.
  • the present application provides a robot end tool gravity compensation algorithm, system, device and storage medium, which have the following beneficial effects:
  • the solution proposed in this application calculates the zero value of the force sensor more accurately, making the measured external force more accurate and the mechanical arm force control effect more effective.
  • This method takes the average value within a period of time after the force sensor is started as the zero value of this startup, and calculates the zero value once after each startup as the zero value of this startup. Compared with the prior art that only takes a fixed zero value, this method is more accurate.
  • FIG1 is a flowchart of a gravity compensation algorithm for a robot end tool in Example 1 of the present application
  • FIG2 is a schematic structural diagram of a robot arm end tool gravity compensation system according to Embodiment 2 of the present application.
  • FIG3 is a schematic diagram of the structure of a device provided in Embodiment 3 of the present invention.
  • FIG4 is a schematic diagram of the storage medium structure provided in Embodiment 4 of the present invention.
  • first and second are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features.
  • a feature defined as “first” or “second” may explicitly or implicitly include one or more of the features.
  • the meaning of “plurality” is two or more, unless otherwise clearly and specifically defined.
  • FIG. 1 is a flow chart of a robot arm end tool gravity compensation algorithm proposed in the present application
  • the algorithm includes the following steps S1 to S6 , and the implementation method of each step is described in detail below.
  • the present application provides a robot end tool gravity compensation algorithm, the steps of which include:
  • Step S1 Obtain the gravity of the robot end tool.
  • step S1 specifically includes the following steps:
  • Step S11 Set the world coordinate system to , so that The axis direction is vertically upward, which is the opposite direction of gravity.
  • the world coordinate system can be arbitrarily rotated around the direction of gravity.
  • Step S12 The gravity is in the world coordinate system
  • the direction vector in is:
  • Step S13 Through coordinate transformation, the vector of the gravity in the sensor coordinate system is obtained as:
  • Step S14 Assuming the gravity of the robot end tool is G, then:
  • angles U and V are: ,
  • Step S2 Obtaining a zero point value of the force sensor according to the gravity.
  • step S2 specifically includes the following steps:
  • the force sensor remains stationary after being activated and is not acted upon by external force.
  • the calculation method of the zero point value of the force sensor is:
  • F(t) and M(t) are the force and torque values of the force sensor at time t during the operation of the robot arm. and are the force and torque values of the end tool in the force sensor coordinate system at time t.
  • Step S3 Determine whether the sampling time reaches the preset time T.
  • Step S4 If the time T is reached, the zero-point value within the time T is calculated, and the average value of the zero-point value is taken as the zero-point value for starting the force sensor; if not, the zero-point value of the force sensor is re-acquired.
  • step S4 specifically includes the following steps:
  • the average value of the zero-point value within time T is taken as the zero-point value of the sensor startup.
  • the calculation formula is:
  • k is the number of points collected by the force sensor within the time T; that is, the zero point value is calculated for each time T, and the average value of all zero point values within the time T is calculated after being aggregated, and the average value is used as the zero point value for sensor startup.
  • Step S5 The real external force value is obtained by subtracting the gravity and the zero value at which the force sensor is started from the reading of the force sensor.
  • step S5 specifically includes the following steps:
  • the actual external force value is obtained by subtracting the gravity and the zero value of the force sensor from the reading of the force sensor.
  • the formula is:
  • the external force value is the actual force value of the contact between the robot arm and the outside world, which is expressed as: .
  • the reading of the force sensor is recorded as: ,in are the three force components of the sensor, are the three torque components of the sensor;
  • the zero point value of the force sensor is recorded as: ;
  • the gravity of the robot end tool will change with the change of posture, which is recorded as: .
  • Step S6 The robot arm moves to perform the corresponding task.
  • Example 1 of the present application calculates the zero point value of the force sensor, so that the measured external force is more accurate and the robotic arm force control effect is more effective; this method calculates the zero point value within a period of time after the force sensor is started, and then takes the average value as the zero point value of this force sensor startup, and calculates the zero point value once after each startup as the zero point value of this force sensor startup, which is more accurate than the prior art of only taking a fixed zero point value.
  • FIG2 is a schematic diagram of the structure of a robot arm end tool gravity compensation system proposed in this application.
  • the present application provides a robot arm end tool gravity compensation system, the specific contents of which include:
  • Acquisition module 100 Acquisition of gravity of the robot end tool
  • Calculation module 200 obtaining a zero point value of a force sensor according to the gravity
  • Determination module 300 Determine whether the sampling time reaches the preset time T;
  • Determine result module 400 if the time T is reached, calculate the zero point value within the time T, and take the average value of the zero point value as the zero point value for starting the force sensor; if not, re-acquire the zero point value of the force sensor;
  • Output module 500 obtains a real external force value by subtracting the gravity and the zero value of the force sensor from the reading of the force sensor;
  • Execution module 600 The robot arm moves to execute the corresponding task.
  • the robot and the force sensor are powered on respectively, and then the acquisition module 100 calculates the gravity of the robot's end tool by a gravity compensation method, and the calculation module 200 calculates the zero point value of the force sensor; when the judgment module 300 determines that the sampling time reaches the preset time T, the zero point value within the time T is calculated, and the average value is taken as the zero point value of the force sensor startup this time; the real external force value can be obtained by subtracting the gravity and the zero point value of the force sensor startup from the reading of the force sensor, and finally the execution module 600 executes the corresponding task through the movement of the robotic arm.
  • Example 2 of the present application proposes a gravity compensation system for the end tool of a robot arm, aiming at the influence of the end tool of the robot arm on the reading of the force sensor, so as to achieve precise force control of the end of the robot arm; first, the gravity of the end tool is calculated by the gravity compensation method, and then the zero point value is calculated by the online calibration method, and the average value is taken as the zero point value of the force sensor for this startup, and finally the real external force value is calculated, which ensures that the zero point value of the force sensor is related to the environment at that time, and the zero point value is made to better match the current startup by taking the average value.
  • the device 50 includes a processor 51 and a memory 52 coupled to the processor 51 .
  • the memory 52 stores program instructions for implementing the above-mentioned three-network information fusion and retrieval system.
  • the processor 51 is used to execute the program instructions stored in the memory 52 to realize the fusion and retrieval of the three-network information.
  • the processor 51 may also be referred to as a CPU (Central Processing Unit).
  • the processor 51 may be an integrated circuit chip having the ability to process signals.
  • the processor 51 may also be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
  • DSP digital signal processor
  • ASIC application-specific integrated circuit
  • FPGA field-programmable gate array
  • the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
  • the storage medium of the embodiment of the present application stores a program file 61 that can implement all the above methods, wherein the program file 61 can be stored in the above storage medium in the form of a software product, including a number of instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) or a processor (processor) to perform all or part of the steps of the methods of each embodiment of the present invention.
  • a computer device which can be a personal computer, server, or network device, etc.
  • processor processor
  • the aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes, or computers, servers, mobile phones, tablets and other devices.
  • the disclosed technical content can be implemented in other ways.
  • the system embodiments described above are only schematic.
  • the division of units can be a logical function division.
  • multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed.
  • Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
  • the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed over multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
  • the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium.
  • the technical solution of the present invention in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present invention.
  • the aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.

Landscapes

  • Engineering & Computer Science (AREA)
  • Robotics (AREA)
  • Mechanical Engineering (AREA)
  • Manipulator (AREA)

Abstract

Disclosed in the present invention are a gravity compensation algorithm for a tail end tool of a robotic arm, and a system, a device and a storage medium, which are applied to the field of system software. The method comprises: acquiring the gravity of a tail end tool of a robot; acquiring zero-point values of a force sensor according to the gravity; determining whether a sampling time reaches a preset time T; if the sampling time reaches the time T, calculating zero-point values within the time T, and taking the average value of the zero-point values as a zero-point value at the start of the force sensor; and if the sampling time does not reach the time T, re-acquiring zero-point values of the force sensor; subtracting the gravity and the zero-point value at the start of the force sensor from a reading of the force sensor, so as to obtain a real external force value; and a robotic arm moving to execute a corresponding task. In the method, the average value of zero-point values within a time period after the start of a force sensor is used as a zero-point value at the current start, and a zero-point value is calculated once after each start and is used as the zero-point value at the current start. Therefore, compared to the prior art in which only one fixed zero-point value is taken, the method is more accurate.

Description

一种机械臂末端工具重力补偿算法、系统、设备及存储介质A robot arm end tool gravity compensation algorithm, system, device and storage medium 技术领域Technical Field

本发明涉及系统软件领域,尤其涉及一种机械臂末端工具重力补偿算法、系统、设备及存储介质。The present invention relates to the field of system software, and in particular to a robot arm end tool gravity compensation algorithm, system, device and storage medium.

背景技术Background Art

机械臂对外界环境进行力感知控制有很多种方式,其中在机械臂末端安装力传感器是最常用的方式。在这种方式中,设备连接的方式为机械臂末端和力传感器之间用法来连接,同时还要在力传感器上安装末端工具来执行一些任务,例如抛光、打磨等。这种安装方式下,力传感器的读数一般包含三部分:末端工具的重力,力传感器本身的零点值和机械臂与外界环境接触的真实值。我们需要获取机械臂与外界环境接触的真实力值来对机械臂进行准确的力控制,就需要考虑消除末端工具的重力以及力传感器零点对力传感器读数的影响。力传感器的零漂现象是指力传感器的零点值由于受温度等的影响,其值会飘忽不定,且每次启动时其值也会发生改变,因此我们需要在力传感器每次启动后对其进行零点标定。张立建等人提出了一种重力补偿的方法,通过计算出末端工具的重力和力传感器的零点来进行补偿,但是这种方法忽略了力传感器零漂导致的力传感器零点不固定的问题。There are many ways for a robot to sense and control the external environment, among which installing a force sensor at the end of the robot is the most common way. In this way, the device is connected between the end of the robot and the force sensor, and the end tool is installed on the force sensor to perform some tasks, such as polishing and grinding. In this installation method, the reading of the force sensor generally includes three parts: the gravity of the end tool, the zero point value of the force sensor itself, and the true value of the contact between the robot and the external environment. We need to obtain the true force value of the contact between the robot and the external environment to accurately control the force of the robot, so we need to consider eliminating the influence of the gravity of the end tool and the zero point of the force sensor on the force sensor reading. The zero drift phenomenon of the force sensor refers to the zero point value of the force sensor being erratic due to the influence of temperature, etc., and its value will change every time it is started, so we need to calibrate the zero point of the force sensor after each start. Zhang Lijian et al. proposed a gravity compensation method, which compensates by calculating the gravity of the end tool and the zero point of the force sensor, but this method ignores the problem of the non-fixed zero point of the force sensor caused by the zero drift of the force sensor.

现有技术虽然通过计算出末端工具的重力和力传感器的零点来进行补偿,但是这种方法忽略了力传感器零漂导致的力传感器零点不固定的问题,即由于温度等的影响,力传感器每次启动时的零点值会发生变化,但是现有技术却认为每次启动力传感器的零点都是一个确定值。本发明是通过计算出末端工具重力后,在力传感器每次启动后的一段时间对力传感器零点进行零点标定,即启动后的一段时间的零点值取平均作为本次运动的零点。本发明保证了力传感器的零点值都与当时的环境所相关,且通过取均值的方法使零点值与本次启动更为匹配。Although the prior art compensates by calculating the gravity of the end tool and the zero point of the force sensor, this method ignores the problem of the non-fixed zero point of the force sensor caused by the zero drift of the force sensor, that is, due to the influence of temperature, etc., the zero point value of the force sensor will change each time it is started, but the prior art believes that the zero point of the force sensor is a fixed value each time it is started. The present invention calculates the gravity of the end tool and calibrates the zero point of the force sensor for a period of time after each start of the force sensor, that is, the zero point value of a period of time after the start is averaged as the zero point of this movement. The present invention ensures that the zero point value of the force sensor is related to the environment at the time, and the zero point value is made to better match the current start by taking the average value.

技术问题Technical issues

本申请的目的是提供一种机械臂末端工具重力补偿算法、系统、设备及存储介质,旨在解决现有技术中传感器因为“零漂”造成的读数不准确的问题。The purpose of this application is to provide a robot arm end tool gravity compensation algorithm, system, device and storage medium, aiming to solve the problem of inaccurate readings caused by "zero drift" of sensors in the prior art.

技术解决方案Technical Solutions

为实现上述目的,本申请提供如下技术方案:To achieve the above objectives, this application provides the following technical solutions:

本申请的目的之一,提供一种机械臂末端工具重力补偿算法,具体包括:One of the purposes of this application is to provide a robot end tool gravity compensation algorithm, specifically including:

一种机械臂末端工具重力补偿算法,所述机械臂末端安装有力传感器,其特征在于,包括:A tool gravity compensation algorithm at the end of a robotic arm, wherein a force sensor is installed at the end of the robotic arm, and the algorithm is characterized by comprising:

获取机器人末端工具的重力;Get the gravity of the robot's end tool;

根据所述重力获取力传感器的零点值;Obtaining a zero point value of a force sensor according to the gravity;

判断采样时间是否达到预设的时间T;Determine whether the sampling time reaches the preset time T;

若达到了时间T,则计算所述时间T内的零点值,并取所述零点值的平均值作为力传感器启动的零点值;若否,则重新获取力传感器的零点值;If the time T is reached, the zero-point value within the time T is calculated, and the average value of the zero-point value is taken as the zero-point value for starting the force sensor; if not, the zero-point value of the force sensor is obtained again;

通过所述力传感器的读数减去所述重力和所述力传感器启动的零点值,得到真实的外力值;The actual external force value is obtained by subtracting the gravity and the zero value at which the force sensor is started from the reading of the force sensor;

机械臂运动执行对应的任务。The robot arm moves to perform the corresponding task.

进一步的,所述获取机器人末端工具的重力的步骤中,具体包含下述步骤:Furthermore, the step of obtaining the gravity of the robot end tool specifically includes the following steps:

设世界坐标系为 ,令其 轴方向竖直向上,为重力的反方向,世界坐标系可以绕重力方向任意旋转定义; Assume the world coordinate system is , so that The axis direction is vertically upward, which is the opposite direction of gravity. The world coordinate system can be arbitrarily rotated around the direction of gravity.

所述重力在世界坐标系 中的方向向量为: The gravity is in the world coordinate system The direction vector in is:

;

通过坐标变换,得到所述重力在传感器坐标系中的向量为:Through coordinate transformation, the vector of the gravity in the sensor coordinate system is obtained as:

; ;

设所述机器人末端工具的重力大小为G,则:Assuming the gravity of the robot end tool is G, then:

令:make:

,

角度U、V的值为: The values of angles U and V are: ,

所述机器人末端工具的重力大小 The gravity of the robot end tool .

进一步的,所述力传感器的读数记为: ,其中 为所述传感器的三个力分量, 为所述传感器的三个力矩分量; Furthermore, the reading of the force sensor is recorded as: ,in are the three force components of the sensor, are the three torque components of the sensor;

所述力传感器的零点值记为: The zero point value of the force sensor is recorded as: ;

所述外力值是机械臂与外界接触的真实力值,记为: The external force value is the actual force value of the contact between the robot arm and the outside world, which is expressed as: ;

所述机器人末端工具的重力会随着姿态的变化而变化,记为: The gravity of the robot end tool will change with the change of posture, which is recorded as: ;

所述重力、力传感器的读数、力传感器的零点值和外力值之间的关系为:The relationship between the gravity, the reading of the force sensor, the zero value of the force sensor and the external force value is:

.

进一步的,所述根据所述重力获取力传感器的零点值的步骤中,具体包含下述步骤:Furthermore, the step of obtaining the zero point value of the force sensor according to the gravity specifically includes the following steps:

所述在预设时间T内,所述力传感器启动后保持静止并不受外力作用,此时力传感器零点值的计算方法为:Within the preset time T, the force sensor remains stationary after being activated and is not acted upon by external force. At this time, the calculation method of the zero point value of the force sensor is:

;

其中F(t)和M(t)为机械臂运行过程中时间t内力传感器的力和力矩值, 为时间t内力传感器坐标系中末端工具的力和力矩值。 Where F(t) and M(t) are the force and torque values of the force sensor at time t during the operation of the robot arm. and are the force and torque values of the end tool in the force sensor coordinate system at time t.

进一步的,所述零点值的平均值作为力传感器启动的零点值的步骤中,具体包含如下步骤:Furthermore, the step of taking the average value of the zero-point value as the zero-point value for starting the force sensor specifically includes the following steps:

将时间T内的零点值的平均值作为传感器启动的零点值,计算公式为:The average value of the zero-point value within time T is taken as the zero-point value of the sensor startup. The calculation formula is:

;

其中,k为该时间T内力传感器采集的点数;即每个时间T都计算出零点值,汇总时间T内所有的零点值后求平均值,以所述平均值作为传感器启动的零点值。Among them, k is the number of points collected by the force sensor within the time T; that is, the zero point value is calculated for each time T, and the average value of all zero point values within the time T is calculated after being aggregated, and the average value is used as the zero point value for sensor startup.

进一步的,所述通过所述力传感器的读数减去所述重力和所述力传感器启动的零点值,得到真实的外力值的步骤中,包含如下步骤:Furthermore, the step of obtaining the real external force value by subtracting the gravity and the zero value of the force sensor from the reading of the force sensor comprises the following steps:

通过力传感器的读数减去所述重力和所述力传感器启动的零点值,得到真实的外力值,其公式为:The actual external force value is obtained by subtracting the gravity and the zero value of the force sensor from the reading of the force sensor. The formula is:

.

本申请的目的之二,提供一种机械臂末端工具重力补偿系统,包括:The second object of the present application is to provide a robot end tool gravity compensation system, comprising:

获取模块:获取机器人末端工具的重力;Acquisition module: obtains the gravity of the robot's end tool;

计算模块:根据所述重力获取力传感器的零点值;Calculation module: obtaining the zero point value of the force sensor according to the gravity;

判断模块:判断采样时间是否达到预设的时间T;Judgment module: judge whether the sampling time reaches the preset time T;

判断结果模块:若达到了时间T,则计算所述时间T内的零点值,并取所述零点值的平均值作为力传感器启动的零点值;若否,则重新获取力传感器的零点值;Judgment result module: if the time T is reached, the zero point value within the time T is calculated, and the average value of the zero point value is taken as the zero point value for starting the force sensor; if not, the zero point value of the force sensor is re-obtained;

输出模块:通过所述力传感器的读数减去所述重力和所述力传感器启动的零点值,得到真实的外力值;Output module: obtains the real external force value by subtracting the gravity and the zero value of the force sensor from the reading of the force sensor;

执行模块:机械臂运动执行对应的任务。Execution module: The robotic arm moves to perform the corresponding tasks.

本申请目的之三,提供了一种设备,所述设备包括处理器、与所述处理器耦接的存储器,其中,The third object of the present application is to provide a device, the device comprising a processor and a memory coupled to the processor, wherein:

所述存储器存储有用于实现所述的一种机械臂末端工具重力补偿算法的程序指令;The memory stores program instructions for implementing the robot arm end tool gravity compensation algorithm;

所述处理器用于执行所述存储器存储的所述程序指令以一种机械臂末端工具重力补偿算法。The processor is used to execute the program instructions stored in the memory to provide a robot end-of-arm tool gravity compensation algorithm.

本申请目的之四,提供了一种存储介质,存储有处理器可运行的程序指令,所述程序指令用于执行所述的一种机械臂末端工具重力补偿算法。A fourth object of the present application is to provide a storage medium storing program instructions executable by a processor, wherein the program instructions are used to execute the robot arm end tool gravity compensation algorithm.

有益效果Beneficial Effects

本申请提供了一种机械臂末端工具重力补偿算法、系统、设备及存储介质,具有以下有益效果:The present application provides a robot end tool gravity compensation algorithm, system, device and storage medium, which have the following beneficial effects:

本申请提出的方案对力传感器的零点值计算更加准确,使得测量的外力更精确,机械臂力控制效果更加有效。该方法通过取力传感器启动后的一段时间内取均值作为本次启动的零点值,且每次启动后都计算一次零点值作为本次启动的零点值,相比现有技术只取一个固定的零点值更为准确。The solution proposed in this application calculates the zero value of the force sensor more accurately, making the measured external force more accurate and the mechanical arm force control effect more effective. This method takes the average value within a period of time after the force sensor is started as the zero value of this startup, and calculates the zero value once after each startup as the zero value of this startup. Compared with the prior art that only takes a fixed zero value, this method is more accurate.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

图1为本申请实施例1的一种机械臂末端工具重力补偿算法的步骤流程图;FIG1 is a flowchart of a gravity compensation algorithm for a robot end tool in Example 1 of the present application;

图2为本申请实施例2的一种机器臂末端工具重力补偿系统的结构示意图;FIG2 is a schematic structural diagram of a robot arm end tool gravity compensation system according to Embodiment 2 of the present application;

图3为本发明实施例 3 提供的设备结构示意图;FIG3 is a schematic diagram of the structure of a device provided in Embodiment 3 of the present invention;

图4为本发明实施例 4 提供的存储介质结构示意图。FIG4 is a schematic diagram of the storage medium structure provided in Embodiment 4 of the present invention.

本发明的最佳实施方式Best Mode for Carrying Out the Invention

下面详细描述本申请的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,旨在用于解释本申请,而不能理解为对本申请的限制。Embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.

在本申请的描述中,需要理解的是,术语“上”、“下”、“水平”、“内”、“外”等指示的方位或位置关系为基于附图所示的方位或位置关系,仅是为了便于描述本申请和简化描述,而不是指示或暗示所指的装置或元件必须具有特定的方位、以特定的方位构造和操作,因此不能理解为对本申请的限制。In the description of the present application, it should be understood that the terms "upper", "lower", "horizontal", "inside", "outside", etc., indicating orientations or positional relationships, are based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present application and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present application.

此外,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。在本申请的描述中,“多个”的含义是两个或两个以上,除非另有明确具体的限定。In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this application, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.

为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。In order to make the objectives, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments.

实施例1Example 1

参考附图1,为本申请提出的一种机械臂末端工具重力补偿算法的流程示意图,包括下述步骤S1至步骤S6,以下详细说明各个步骤的实现方式。Referring to FIG. 1 , which is a flow chart of a robot arm end tool gravity compensation algorithm proposed in the present application, the algorithm includes the following steps S1 to S6 , and the implementation method of each step is described in detail below.

本申请所提供的一种机械臂末端工具重力补偿算法,步骤包括:The present application provides a robot end tool gravity compensation algorithm, the steps of which include:

步骤S1:获取机器人末端工具的重力。Step S1: Obtain the gravity of the robot end tool.

在本实施例中,所述步骤S1中,具体包括下述步骤:In this embodiment, step S1 specifically includes the following steps:

步骤S11:设世界坐标系为 ,令其 轴方向竖直向上,为重力的反方向,世界坐标系可以绕重力方向任意旋转定义; Step S11: Set the world coordinate system to , so that The axis direction is vertically upward, which is the opposite direction of gravity. The world coordinate system can be arbitrarily rotated around the direction of gravity.

步骤S12:所述重力在世界坐标系 中的方向向量为: Step S12: The gravity is in the world coordinate system The direction vector in is:

;

步骤S13:通过坐标变换,得到所述重力在传感器坐标系中的向量为:Step S13: Through coordinate transformation, the vector of the gravity in the sensor coordinate system is obtained as:

; ;

步骤S14:设所述机器人末端工具的重力大小为G,则:Step S14: Assuming the gravity of the robot end tool is G, then:

令:make:

,

角度U、V的值为: The values of angles U and V are: ,

所述机器人末端工具的重力大小 The gravity of the robot end tool ;

步骤S2:根据所述重力获取力传感器的零点值。Step S2: Obtaining a zero point value of the force sensor according to the gravity.

在本实施例中,所述步骤S2中,具体包括下述步骤:In this embodiment, step S2 specifically includes the following steps:

所述在预设时间T内,所述力传感器启动后保持静止并不受外力作用,此时力传感器零点值的计算方法为:Within the preset time T, the force sensor remains stationary after being activated and is not acted upon by external force. At this time, the calculation method of the zero point value of the force sensor is:

;

其中F(t)和M(t)为机械臂运行过程中时间t内力传感器的力和力矩值, 为时间t内力传感器坐标系中末端工具的力和力矩值。 Where F(t) and M(t) are the force and torque values of the force sensor at time t during the operation of the robot arm. and are the force and torque values of the end tool in the force sensor coordinate system at time t.

步骤S3:判断采样时间是否达到预设的时间T。Step S3: Determine whether the sampling time reaches the preset time T.

步骤S4:若达到了时间T,则计算所述时间T内的零点值,并取所述零点值的平均值作为力传感器启动的零点值;若否,则重新获取力传感器的零点值。Step S4: If the time T is reached, the zero-point value within the time T is calculated, and the average value of the zero-point value is taken as the zero-point value for starting the force sensor; if not, the zero-point value of the force sensor is re-acquired.

在本实施例中,所述步骤S4中,具体包括下述步骤:In this embodiment, step S4 specifically includes the following steps:

将时间T内的零点值的平均值作为传感器启动的零点值,计算公式为:The average value of the zero-point value within time T is taken as the zero-point value of the sensor startup. The calculation formula is:

;

其中,k为该时间T内力传感器采集的点数;即每个时间T都计算出零点值,汇总时间T内所有的零点值后求平均值,以所述平均值作为传感器启动的零点值。Among them, k is the number of points collected by the force sensor within the time T; that is, the zero point value is calculated for each time T, and the average value of all zero point values within the time T is calculated after being aggregated, and the average value is used as the zero point value for sensor startup.

步骤S5:通过力传感器的读数减去所述重力和所述力传感器启动的零点值,得到真实的外力值。Step S5: The real external force value is obtained by subtracting the gravity and the zero value at which the force sensor is started from the reading of the force sensor.

在本实施例中,所述步骤S5中,具体包括下述步骤:In this embodiment, step S5 specifically includes the following steps:

通过力传感器的读数减去所述重力和所述力传感器启动的零点值,得到真实的外力值,其公式为:The actual external force value is obtained by subtracting the gravity and the zero value of the force sensor from the reading of the force sensor. The formula is:

.

所述外力值是机械臂与外界接触的真实力值,记为: The external force value is the actual force value of the contact between the robot arm and the outside world, which is expressed as: .

所述重力、力传感器的读数、力传感器的零点值和外力值之间的关系为:The relationship between the gravity, the reading of the force sensor, the zero value of the force sensor and the external force value is:

.

所述力传感器的读数记为: ,其中 为所述传感器的三个力分量, 为所述传感器的三个力矩分量; The reading of the force sensor is recorded as: ,in are the three force components of the sensor, are the three torque components of the sensor;

所述力传感器的零点值记为: The zero point value of the force sensor is recorded as: ;

所述机器人末端工具的重力会随着姿态的变化而变化,记为: The gravity of the robot end tool will change with the change of posture, which is recorded as: .

步骤S6:由机械臂运动执行对应的任务。Step S6: The robot arm moves to perform the corresponding task.

综上所述,本申请实施例1通过对力传感器的零点值进行计算,使得测量的外力更精确,机械臂力控制效果更加有效;该方法通过计算力传感器启动后的一段时间内的零点值,再取平均值作为本次力传感器启动的零点值,且每次启动后都计算一次零点值作为本次力传感器启动的零点值,相比现有技术只取一个固定的零点值更为准确。To summarize, Example 1 of the present application calculates the zero point value of the force sensor, so that the measured external force is more accurate and the robotic arm force control effect is more effective; this method calculates the zero point value within a period of time after the force sensor is started, and then takes the average value as the zero point value of this force sensor startup, and calculates the zero point value once after each startup as the zero point value of this force sensor startup, which is more accurate than the prior art of only taking a fixed zero point value.

本发明的实施方式Embodiments of the present invention

实施例2Example 2

参考附图2,为本申请提出的一种机器臂末端工具重力补偿系统的结构示意图;Refer to FIG2 , which is a schematic diagram of the structure of a robot arm end tool gravity compensation system proposed in this application;

本申请所提供的一种机器臂末端工具重力补偿系统,具体内容包括:The present application provides a robot arm end tool gravity compensation system, the specific contents of which include:

获取模块100:获取机器人末端工具的重力;Acquisition module 100: Acquisition of gravity of the robot end tool;

计算模块200:根据所述重力获取力传感器的零点值;Calculation module 200: obtaining a zero point value of a force sensor according to the gravity;

判断模块300:判断采样时间是否达到预设的时间T;Determination module 300: Determine whether the sampling time reaches the preset time T;

判断结果模块400:若达到了时间T,则计算所述时间T内的零点值,并取所述零点值的平均值作为力传感器启动的零点值;若否,则重新获取力传感器的零点值;Determine result module 400: if the time T is reached, calculate the zero point value within the time T, and take the average value of the zero point value as the zero point value for starting the force sensor; if not, re-acquire the zero point value of the force sensor;

输出模块500:通过所述力传感器的读数减去所述重力和所述力传感器启动的零点值,得到真实的外力值;Output module 500: obtains a real external force value by subtracting the gravity and the zero value of the force sensor from the reading of the force sensor;

执行模块600:机械臂运动执行对应的任务。Execution module 600: The robot arm moves to execute the corresponding task.

在本实施例中,首先是由给机器人和力传感器分别进行通电,然后由获取模块100通过重力补偿的方法计算所述机器人末端工具的重力,并通过计算模块200计算所述力传感器的零点值;当判断模块300判断采样时间达到预设的时间T后,计算时间T内的零点值,取平均值作为本次力传感器启动的零点值;通过力传感器的读数减去重力和力传感器启动的零点值,即可获得真实的外力值,最后由执行模块600通过机械臂运动执行相应的任务。In this embodiment, first, the robot and the force sensor are powered on respectively, and then the acquisition module 100 calculates the gravity of the robot's end tool by a gravity compensation method, and the calculation module 200 calculates the zero point value of the force sensor; when the judgment module 300 determines that the sampling time reaches the preset time T, the zero point value within the time T is calculated, and the average value is taken as the zero point value of the force sensor startup this time; the real external force value can be obtained by subtracting the gravity and the zero point value of the force sensor startup from the reading of the force sensor, and finally the execution module 600 executes the corresponding task through the movement of the robotic arm.

综上所述,本申请实施例2针对机械臂末端工具对力传感器读数的影响,提出了一种机器臂末端工具重力补偿系统,以此来实现对机械臂末端的精准力控制;首先通过重力补偿的方法计算出末端工具的重力,再通过在线标定的方法计算出零点值,且取平均值作为力传感器本次启动的零点值,最后计算得到真实的外力值,保证了力传感器的零点值都与当时的环境所相关,且通过取平均值的方法使零点值与本次启动更为匹配。In summary, Example 2 of the present application proposes a gravity compensation system for the end tool of a robot arm, aiming at the influence of the end tool of the robot arm on the reading of the force sensor, so as to achieve precise force control of the end of the robot arm; first, the gravity of the end tool is calculated by the gravity compensation method, and then the zero point value is calculated by the online calibration method, and the average value is taken as the zero point value of the force sensor for this startup, and finally the real external force value is calculated, which ensures that the zero point value of the force sensor is related to the environment at that time, and the zero point value is made to better match the current startup by taking the average value.

实施例3Example 3

参考附图3,为本申请实施例的设备结构示意图。该设备50包括处理器51、与处理器51耦接的存储器52。3 is a schematic diagram of the device structure of an embodiment of the present application. The device 50 includes a processor 51 and a memory 52 coupled to the processor 51 .

存储器52存储有用于实现上述三网信息融合与检索系统的程序指令。The memory 52 stores program instructions for implementing the above-mentioned three-network information fusion and retrieval system.

处理器51用于执行存储器52存储的程序指令以实现三网信息融合与检索。The processor 51 is used to execute the program instructions stored in the memory 52 to realize the fusion and retrieval of the three-network information.

其中,处理器51还可以称为 CPU(Central Processing Unit,中央处理单元)。处理器51可能是一种集成电路芯片,具有信号的处理能力。处理器51还可以是通用处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、现成可编程门阵列(FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。The processor 51 may also be referred to as a CPU (Central Processing Unit). The processor 51 may be an integrated circuit chip having the ability to process signals. The processor 51 may also be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

实施例 4Example 4

参考附图 4,为本申请实施例的存储介质的结构示意图。本申请实施例的存储介质存储有能够实现上述所有方法的程序文件61,其中,该程序文件61可以以软件产品的形式存储在上述存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(processor)执行本发明各个实施方式方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质,或者是计算机、服务器、手机、平板等设备。Refer to Figure 4, which is a schematic diagram of the structure of the storage medium of the embodiment of the present application. The storage medium of the embodiment of the present application stores a program file 61 that can implement all the above methods, wherein the program file 61 can be stored in the above storage medium in the form of a software product, including a number of instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) or a processor (processor) to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes, or computers, servers, mobile phones, tablets and other devices.

上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

在本发明的上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

在本申请所提供的几个实施例中,应该理解到,所揭露的技术内容,可通过其它的方式实现。其中,以上所描述的系统实施例仅仅是示意性的,例如单元的划分,可以为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,单元或模块的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the system embodiments described above are only schematic. For example, the division of units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed over multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本发明各个实施例方法的全部或部分步骤。而前述的存储介质包括:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.

可以理解,以上所述实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。It can be understood that the technical features of the above-described embodiments can be arbitrarily combined. In order to make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

以上仅为本申请的较佳实施例而已,仅具体描述了本申请的技术原理,这些描述只是为了解释本申请的原理,不能以任何方式解释为对本申请保护范围的限制。基于此处解释,凡在本申请的精神和原则之内所作的任何修改、等同替换和改进,及本领域的技术人员不需要付出创造性的劳动即可联想到本申请的其他具体实施方式,均应包含在本申请的保护范围之内。The above are only preferred embodiments of the present application, and only specifically describe the technical principles of the present application. These descriptions are only for explaining the principles of the present application and cannot be interpreted as limiting the scope of protection of the present application in any way. Based on the explanation here, any modifications, equivalent substitutions and improvements made within the spirit and principles of the present application, and other specific implementation methods of the present application that can be associated with the technicians in this field without creative work, should be included in the scope of protection of the present application.

Claims (9)

一种机械臂末端工具重力补偿算法,所述机械臂末端安装有力传感器,其特征在于,包括:A tool gravity compensation algorithm at the end of a robotic arm, wherein a force sensor is installed at the end of the robotic arm, and the algorithm is characterized by comprising: 获取机器人末端工具的重力;Get the gravity of the robot's end tool; 根据所述重力获取力传感器的零点值;Obtaining a zero point value of a force sensor according to the gravity; 判断采样时间是否达到预设的时间T;Determine whether the sampling time reaches the preset time T; 若达到了时间T,则计算所述时间T内的零点值,并取所述零点值的平均值作为力传感器启动的零点值;若否,则重新获取力传感器的零点值;If the time T is reached, the zero-point value within the time T is calculated, and the average value of the zero-point value is taken as the zero-point value for starting the force sensor; if not, the zero-point value of the force sensor is obtained again; 通过所述力传感器的读数减去所述重力和所述力传感器启动的零点值,得到真实的外力值;The actual external force value is obtained by subtracting the gravity and the zero value at which the force sensor is started from the reading of the force sensor; 机械臂运动执行对应的任务。The robot arm moves to perform the corresponding task. 根据权利要求1所述的一种机械臂末端工具重力补偿算法,其特征在于,所述获取机器人末端工具的重力的步骤中,具体包含下述步骤:According to the robot arm end tool gravity compensation algorithm of claim 1, the step of obtaining the gravity of the robot end tool specifically comprises the following steps: 设世界坐标系为 ,令其 轴方向竖直向上,为重力的反方向,世界坐标系可以绕重力方向任意旋转定义; Assume the world coordinate system is , so that The axis direction is vertically upward, which is the opposite direction of gravity. The world coordinate system can be arbitrarily rotated around the direction of gravity. 所述重力在世界坐标系 中的方向向量为: The gravity is in the world coordinate system The direction vector in is: ; 通过坐标变换,得到所述重力在传感器坐标系中的向量为:Through coordinate transformation, the vector of the gravity in the sensor coordinate system is obtained as: ; ; 设所述机器人末端工具的重力大小为G,则:Assuming the gravity of the robot end tool is G, then: 令:make: , 角度U、V的值为: The values of angles U and V are: , 所述机器人末端工具的重力大小 The gravity of the robot end tool . 根据权利要求1或2所述的一种机械臂末端工具重力补偿算法,其特征在于,所述力传感器的读数记为: ,其中 为所述传感器的三个力分量, 为所述传感器的三个力矩分量; According to the robot arm end tool gravity compensation algorithm according to claim 1 or 2, it is characterized in that the reading of the force sensor is recorded as: ,in are the three force components of the sensor, are the three torque components of the sensor; 所述力传感器的零点值记为: The zero point value of the force sensor is recorded as: ; 所述外力值是机械臂与外界接触的真实力值,记为: The external force value is the actual force value of the contact between the robot arm and the outside world, which is expressed as: ; 所述机器人末端工具的重力会随着姿态的变化而变化,记为: The gravity of the robot end tool will change with the change of posture, which is recorded as: ; 所述重力、力传感器的读数、力传感器的零点值和外力值之间的关系为:The relationship between the gravity, the reading of the force sensor, the zero value of the force sensor and the external force value is: . 根据权利要求1所述的一种基于力传感器零点在线标定的器人末端工具重力补偿算法,其特征在于,所述根据所述重力获取力传感器的零点值的步骤中,具体包含下述步骤:According to the robot end tool gravity compensation algorithm based on the online calibration of the force sensor zero point according to claim 1, it is characterized in that the step of obtaining the zero point value of the force sensor according to the gravity specifically includes the following steps: 所述在预设时间T内,所述力传感器启动后保持静止并不受外力作用,此时力传感器零点值的计算方法为:Within the preset time T, the force sensor remains stationary after being activated and is not acted upon by external force. At this time, the calculation method of the zero point value of the force sensor is: ; 其中F(t)和M(t)为机械臂运行过程中时间t内力传感器的力和力矩值, 为时间t内力传感器坐标系中末端工具的力和力矩值。 Where F(t) and M(t) are the force and torque values of the force sensor at time t during the operation of the robot arm. and are the force and torque values of the end tool in the force sensor coordinate system at time t. 根据权利要求1所述的一种机械臂末端工具重力补偿算法,其特征在于,所述零点值的平均值作为力传感器启动的零点值的步骤中,具体包含如下步骤:According to the robot arm end tool gravity compensation algorithm of claim 1, it is characterized in that the step of using the average value of the zero point value as the zero point value for starting the force sensor specifically comprises the following steps: 将时间T内的零点值的平均值作为传感器启动的零点值,计算公式为:The average value of the zero-point value within time T is taken as the zero-point value of the sensor startup. The calculation formula is: ; 其中,k为该时间T内力传感器采集的点数;即每个时间T都计算出零点值,汇总时间T内所有的零点值后求平均值,以所述平均值作为传感器启动的零点值。Among them, k is the number of points collected by the force sensor within the time T; that is, the zero point value is calculated for each time T, and the average value of all zero point values within the time T is calculated after being aggregated, and the average value is used as the zero point value for sensor startup. 根据权利要求1所述的一种机械臂末端工具重力补偿算法,其特征在于,所述通过所述力传感器的读数减去所述重力和所述力传感器启动的零点值,得到真实的外力值的步骤中,包含如下步骤:The robot arm end tool gravity compensation algorithm according to claim 1 is characterized in that the step of obtaining the real external force value by subtracting the gravity and the zero value of the force sensor from the reading of the force sensor comprises the following steps: 通过力传感器的读数减去所述重力和所述力传感器启动的零点值,得到真实的外力值,其公式为:The actual external force value is obtained by subtracting the gravity and the zero value of the force sensor from the reading of the force sensor. The formula is: . 一种根据权利要求1所述的一种机械臂末端工具重力补偿算法的系统,其特征在于,包括:A system for a robot end tool gravity compensation algorithm according to claim 1, characterized in that it comprises: 获取模块:获取机器人末端工具的重力;Acquisition module: obtains the gravity of the robot's end tool; 计算模块:根据所述重力获取力传感器的零点值;Calculation module: obtaining the zero point value of the force sensor according to the gravity; 判断模块:判断采样时间是否达到预设的时间T;Judgment module: judge whether the sampling time reaches the preset time T; 判断结果模块:若达到了时间T,则计算所述时间T内的零点值,并取所述零点值的平均值作为力传感器启动的零点值;若否,则重新获取力传感器的零点值;Judgment result module: if the time T is reached, the zero point value within the time T is calculated, and the average value of the zero point value is taken as the zero point value for starting the force sensor; if not, the zero point value of the force sensor is re-obtained; 输出模块:通过所述力传感器的读数减去所述重力和所述力传感器启动的零点值,得到真实的外力值;Output module: obtains the real external force value by subtracting the gravity and the zero value of the force sensor from the reading of the force sensor; 执行模块:机械臂运动执行对应的任务。Execution module: The robotic arm moves to perform the corresponding tasks. 一种设备,其特征在于,所述设备包括处理器、与所述处理器耦接的存储器,其中,A device, characterized in that the device comprises a processor and a memory coupled to the processor, wherein: 所述存储器存储有用于实现权利要求1-6任一项所述的一种机械臂末端工具重力补偿算法的程序指令;The memory stores program instructions for implementing a robot end tool gravity compensation algorithm as described in any one of claims 1 to 6; 所述处理器用于执行所述存储器存储的所述程序指令以一种机械臂末端工具重力补偿算法。The processor is used to execute the program instructions stored in the memory to provide a robot end-of-arm tool gravity compensation algorithm. 一种存储介质,其特征在于,存储有处理器可运行的程序指令,所述程序指令用于执行权利要求1-6任一项所述的一种机械臂末端工具重力补偿算法。A storage medium, characterized in that it stores program instructions executable by a processor, and the program instructions are used to execute a robot arm end tool gravity compensation algorithm as described in any one of claims 1-6.
PCT/CN2023/137235 2023-07-18 2023-12-07 Gravity compensation algorithm for tail end tool of robotic arm, and system, device and storage medium Pending WO2025015815A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202310884849.9A CN119328736A (en) 2023-07-18 2023-07-18 A robot arm end tool gravity compensation algorithm, system, device and storage medium
CN202310884849.9 2023-07-18

Publications (1)

Publication Number Publication Date
WO2025015815A1 true WO2025015815A1 (en) 2025-01-23

Family

ID=94270385

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/137235 Pending WO2025015815A1 (en) 2023-07-18 2023-12-07 Gravity compensation algorithm for tail end tool of robotic arm, and system, device and storage medium

Country Status (2)

Country Link
CN (1) CN119328736A (en)
WO (1) WO2025015815A1 (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20000021209A (en) * 1998-09-28 2000-04-25 박호군 Automatic compensation method of force and torque sensor for gravity weight
US6459990B1 (en) * 1999-09-23 2002-10-01 American Gnc Corporation Self-contained positioning method and system thereof for water and land vehicles
CN107433590A (en) * 2017-07-31 2017-12-05 上海宇航系统工程研究所 Mechanical arm load quality and the gravitational compensation method of sensor fluctating on-line identification
CN110125936A (en) * 2019-05-15 2019-08-16 清华大学深圳研究生院 A kind of the Shared control method and ground experiment verifying system of robot for space
CN110666799A (en) * 2019-10-15 2020-01-10 吉林大学 A compliant control method for a six-degree-of-freedom serial robot based on gravity compensation
CN110802585A (en) * 2019-11-20 2020-02-18 山东大学 Compensation method for end-of-manipulator sensor and contact force/torque measurement method
CN111230879A (en) * 2020-02-20 2020-06-05 佛山科学技术学院 A method and system for compensating robot end contact force based on force sensor
CN111531533A (en) * 2020-04-14 2020-08-14 佛山市南海区广工大数控装备协同创新研究院 A zero point correction and gravity compensation method for a six-dimensional force sensor
CN115157260A (en) * 2022-07-27 2022-10-11 北京航空航天大学 Gravity and inertia force compensation method for six-dimensional force sensor at tail end of mechanical arm

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20000021209A (en) * 1998-09-28 2000-04-25 박호군 Automatic compensation method of force and torque sensor for gravity weight
US6459990B1 (en) * 1999-09-23 2002-10-01 American Gnc Corporation Self-contained positioning method and system thereof for water and land vehicles
CN107433590A (en) * 2017-07-31 2017-12-05 上海宇航系统工程研究所 Mechanical arm load quality and the gravitational compensation method of sensor fluctating on-line identification
CN110125936A (en) * 2019-05-15 2019-08-16 清华大学深圳研究生院 A kind of the Shared control method and ground experiment verifying system of robot for space
CN110666799A (en) * 2019-10-15 2020-01-10 吉林大学 A compliant control method for a six-degree-of-freedom serial robot based on gravity compensation
CN110802585A (en) * 2019-11-20 2020-02-18 山东大学 Compensation method for end-of-manipulator sensor and contact force/torque measurement method
CN111230879A (en) * 2020-02-20 2020-06-05 佛山科学技术学院 A method and system for compensating robot end contact force based on force sensor
CN111531533A (en) * 2020-04-14 2020-08-14 佛山市南海区广工大数控装备协同创新研究院 A zero point correction and gravity compensation method for a six-dimensional force sensor
CN115157260A (en) * 2022-07-27 2022-10-11 北京航空航天大学 Gravity and inertia force compensation method for six-dimensional force sensor at tail end of mechanical arm

Also Published As

Publication number Publication date
CN119328736A (en) 2025-01-21

Similar Documents

Publication Publication Date Title
TWI766282B (en) Calibration method, electronic equipment and storage medium
US11265414B2 (en) Method and device for waking up voice recognition function in mobile terminal, and computer readable storage medium
CN109719728B (en) Method and device for adjusting charging pose of robot
JP2016503495A (en) Estimation of gravity vector in world coordinate system using accelerometer in mobile device
WO2021035645A1 (en) Sensing system, sensing device and control method therefor, movable platform, and storage medium
CN113188505B (en) Attitude angle measuring method and device, vehicle and intelligent arm support
CN105783900B (en) A kind of calibration method and device of sensing data
CN108759892A (en) Sensor calibrating method, electronic device and computer readable storage medium
CN112720460A (en) Robot control method, device, computer readable storage medium and robot
CN111473887A (en) Shell temperature acquisition method and device, storage medium and electronic equipment
CN114564014A (en) Object information determination method, mobile robot system, and electronic device
WO2025015815A1 (en) Gravity compensation algorithm for tail end tool of robotic arm, and system, device and storage medium
CN114339020A (en) Photographic gesture prompting method, apparatus, device, and computer-readable storage medium
WO2022135070A1 (en) Inertial navigation method and device
CN118642537A (en) Gimbal attitude control method, system and aircraft
WO2022000996A1 (en) Step counting determining method and device, and computer readable storage medium
CN117226853B (en) Robot kinematics calibration method, device, storage medium and equipment
CN117906790A (en) Temperature detection calibration method, device, equipment and medium
CN116166502A (en) Processor temperature monitoring method and device, storage medium, electronic equipment
CN115990883B (en) Robot control method and device
CN117387834A (en) Force sensor calibration method, system, electronic equipment and storage medium
EP4414663A1 (en) Calibration method and apparatus
WO2023179440A1 (en) Shooting apparatus control method and apparatus, shooting apparatus and electronic device
CN114815279A (en) Polarization imaging method and device based on light field structure, polarization camera and medium
JP2021157413A (en) Production system, data transmission method, and program

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23945694

Country of ref document: EP

Kind code of ref document: A1