A mechanical arm positioning method, device, electronic equipment and storage medium

By combining the camera and acceleration sensor, adjusting the rotation matrix and Euler angle, the accuracy problem of the robotic arm in long-distance grabbing is solved, and a higher position relationship determination accuracy and the accurate grasping ability of the robotic arm are achieved.

CN118357932BActive Publication Date: 2024-09-24SUZHOU ELITE ROBOTICS CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202410796864.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-20
Publication Date
2024-09-24
Estimated Expiration
2044-06-20

AI Technical Summary

Technical Problem

During the long-distance grabbing process of existing robotic arms, it is difficult to provide an accurate relative relationship between the calibration object and the robotic arm base through a 2D camera. Especially when the calibration object is far away from the object to be grasped, the accuracy is insufficient.

Method used

Using the robot arm positioning method, combined with the camera and acceleration sensor, the rotation matrix is ​​determined by obtaining the camera image and the acceleration sensor detection result, and the Euler angle is adjusted through the gravity projection relationship to generate the target rotation matrix, thereby accurately determining the calibration plate to the robot arm The relative position of the base.

Benefits of technology

This improves the accuracy of determining the relative positional relationship of the robotic arm when grabbing long distances, ensuring the robotic arm's ability to accurately grasp objects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118357932B
    Figure CN118357932B
Patent Text Reader

Abstract

The present invention discloses a method, device, electronic device and storage medium for positioning a mechanical arm. The method comprises: a mechanical arm, a camera, an end fixture, a mechanical arm base and an acceleration sensor: obtaining a camera shot image and a detection result of the acceleration sensor; determining a first rotation matrix according to the camera shot image; converting the first rotation matrix according to a predetermined second rotation matrix and a predetermined third rotation matrix to obtain a fourth rotation matrix; adjusting at least one Euler angle in the fourth rotation matrix according to the detection result of the acceleration sensor and the gravity projection relationship between the fourth rotation matrix to generate a target fourth rotation matrix; determining an adjusted first rotation matrix according to the target fourth rotation matrix, the second rotation matrix and the third rotation matrix; determining the relative position relationship between the calibration plate and the mechanical arm base according to the adjusted first rotation matrix.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of robot arm positioning, and in particular to a robot arm positioning method, device, electronic equipment and storage medium. Background Art

[0002] In the existing scheme of grasping by a robotic arm, a 2D camera is installed at the end of the robotic arm, and some calibration objects with special templates are photographed by the 2D camera, and the relative position of the calibration object and the camera is calculated based on the photographed pictures and the camera's internal parameters. Then, the relative relationship between the calibration object and the robotic arm base is calculated based on the external parameter relationship between the camera and the end of the robotic arm.

[0003] However, during long-distance grasping, when the distance between the calibration object and the object to be grasped is far, the accuracy requirements for the overall solution are high. Existing solutions are difficult to provide a more accurate relative relationship between the calibration object and the robot arm base when the distance between the calibration object and the object to be grasped is far. Summary of the invention

[0004] The present invention provides a robot arm positioning method, device, electronic equipment and storage medium to solve the problem that when grasping an object by a robot arm, relatively accurate grasping cannot be performed only by a 2D camera.

[0005] According to one aspect of the present invention, a robot arm positioning method is provided, which is applied to a robot arm positioning device, wherein the robot arm positioning device includes a robot arm, a camera, an end fixture, a robot arm base, and an acceleration sensor:

[0006] Obtain the image captured by the camera and the detection result of the acceleration sensor;

[0007] Determine a first rotation matrix according to the image captured by the camera; wherein the first rotation matrix is ​​a rotation matrix from the robot base to the calibration plate;

[0008] According to a predetermined second rotation matrix and a predetermined third rotation matrix, the first rotation matrix is ​​transformed to obtain a fourth rotation matrix; wherein the second rotation matrix is ​​a rotation matrix from the manipulator base to the acceleration sensor; the third rotation matrix is ​​a rotation matrix from the calibration plate to the world coordinate system; and the fourth rotation matrix is ​​a rotation matrix from the acceleration sensor to the world coordinate system;

[0009] According to the detection result of the acceleration sensor and the gravity projection relationship between the fourth rotation matrix, at least one Euler angle in the fourth rotation matrix is ​​adjusted to generate a target fourth rotation matrix;

[0010] Determine an adjusted first rotation matrix according to the target fourth rotation matrix, the second rotation matrix, and the third rotation matrix;

[0011] Determine the relative position relationship between the calibration plate and the robot arm base according to the adjusted first rotation matrix;

[0012] Among them, the camera and the acceleration sensor are located on the end fixture, and the robotic arm is used to control the end fixture and is connected to the robotic arm base.

[0013] According to another aspect of the present invention, a robot arm positioning device is provided, the device comprising a robot arm, a camera, an end fixture, a robot arm base and an acceleration sensor:

[0014] A data acquisition module is used to acquire the images captured by the camera and the detection results of the acceleration sensor;

[0015] A first matrix determination module, used to determine a first rotation matrix according to an image captured by the camera; wherein the first rotation matrix is ​​a rotation matrix from a robot arm base to a calibration plate;

[0016] The fourth matrix conversion module is used to convert the first rotation matrix according to the predetermined second rotation matrix and the predetermined third rotation matrix to obtain a fourth rotation matrix; wherein the second rotation matrix is ​​the rotation matrix from the manipulator base to the acceleration sensor; the third rotation matrix is ​​the rotation matrix from the calibration plate to the world coordinate system; and the fourth rotation matrix is ​​the rotation matrix from the acceleration sensor to the world coordinate system;

[0017] A fourth matrix adjustment module, used to adjust at least one Euler angle in the fourth rotation matrix according to the detection result of the acceleration sensor and the gravity projection relationship between the fourth rotation matrix, so as to generate a target fourth rotation matrix;

[0018] A first matrix adjustment module, used to determine an adjusted target first rotation matrix according to the target fourth rotation matrix, the second rotation matrix and the third rotation matrix;

[0019] A position relationship determination module, used to determine the relative position relationship between the calibration plate and the robot arm base according to the adjusted first rotation matrix;

[0020] Among them, the camera and the acceleration sensor are located on the end fixture, and the robotic arm is used to control the end fixture and is connected to the robotic arm base.

[0021] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:

[0022] at least one processor; and

[0023] a memory communicatively connected to at least one processor; wherein,

[0024] The memory stores a computer program that can be executed by at least one processor. The computer program is executed by at least one processor so that the at least one processor can execute the robot arm positioning method of any embodiment of the present invention.

[0025] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the robot arm positioning method of any embodiment of the present invention when executed.

[0026] The technical solution of the embodiment of the present invention obtains the captured image of the camera and the detection result of the acceleration sensor, determines the first rotation matrix according to the captured image of the camera, transforms the first rotation matrix according to a predetermined second rotation matrix and a predetermined third rotation matrix to obtain a fourth rotation matrix, adjusts at least one Euler angle in the fourth rotation matrix according to the detection result of the acceleration sensor and the gravity projection relationship between the fourth rotation matrix, and generates a target fourth rotation matrix; determines the adjusted first rotation matrix according to the target fourth rotation matrix, the second rotation matrix and the third rotation matrix; determines the relative position relationship between the calibration plate and the robot arm base according to the adjusted first rotation matrix, so that when the relative position relationship between the calibration plate and the robot arm base is determined by the camera, the preliminarily determined relative position relationship can be adjusted according to the detection result of the acceleration sensor, thereby improving the accuracy of the relative position relationship determination result, and providing a guarantee for the robot arm to accurately clamp objects.

[0027] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0029] Figure 1 is a flow chart of a robot arm positioning method provided according to Embodiment 1 of the present invention;

[0030] Figure 2 is a structural schematic diagram of a mechanical arm positioning device provided according to Embodiment 3 of the present invention;

[0031] Figure 3 It is a structural schematic diagram of an electronic device for implementing the robot arm positioning method according to an embodiment of the present invention. DETAILED DESCRIPTION

[0032] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0033] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0034] Embodiment 1

[0035] Figure 1 A flowchart of a robot arm positioning method is provided for the first embodiment of the present invention. This embodiment is applicable to the case where an object is accurately grasped by a robot arm. The method can be performed by a robot arm positioning device. The robot arm positioning device can be implemented in the form of hardware and / or software. The robot arm positioning device can be configured in an electronic device with data processing capabilities. Figure 1 As shown, the method is applied to a robotic arm positioning device, which includes a robotic arm, a camera, an end fixture, a robotic arm base, and an acceleration sensor:

[0036] S110, acquiring the captured image of the camera and the detection result of the acceleration sensor.

[0037] The calibration plate is photographed by a camera on the end fixture to obtain a photographed image. In addition, the acceleration sensor is used for monitoring to obtain a detection result of the acceleration sensor.

[0038] The positions of the camera, acceleration sensor, robotic arm, and end fixture are fixed.

[0039] S120: Determine a first rotation matrix according to the image captured by the camera.

[0040] Among them, the first rotation matrix is ​​the rotation matrix from the robot base to the calibration plate.

[0041] The world coordinate system of this application can be expressed as the northeast celestial coordinate system, and this application does not impose any restrictions on this.

[0042] The general calculation formula of the rotation matrix can be expressed as .

[0043] Here, i, j, and k refer to general space i, space j, and space k, and are used to represent the transformation relationship from space i to space j. For each rotation matrix, there is a corresponding ZYX Euler angle expression: , the Euler angle expressions involved in this application, unless otherwise specified, use the rotation order of ZYX. The corresponding conversion formula is: .

[0044] in, represents the general rotation matrix j, The corresponding ZYX Euler angle expression is .

[0045] There are many calculation methods for capturing an image of the calibration plate with a camera and determining the rotation matrix between the robot base and the calibration plate based on the captured image, and this application does not limit this.

[0046] S130: transform the first rotation matrix according to a predetermined second rotation matrix and a predetermined third rotation matrix to obtain a fourth rotation matrix.

[0047] Among them, the second rotation matrix is ​​the rotation matrix from the robot arm base to the acceleration sensor; the third rotation matrix is ​​the rotation matrix from the calibration plate to the world coordinate system; and the fourth rotation matrix is ​​the rotation matrix from the acceleration sensor to the world coordinate system.

[0048] The relative position relationship between the acceleration sensor, the end fixture and the camera has been fixed. After the position of the calibration plate is installed and fixed, it will no longer change. Therefore, the position of the calibration plate in the world coordinate system has been fixed.

[0049] Due to the conversion relationship between the rotation matrices, after obtaining the first rotation matrix, the first rotation matrix can be converted by the second rotation matrix and the third rotation matrix to generate a fourth rotation matrix.

[0050] To facilitate understanding of the conversion relationship between rotation matrices, this application records the first rotation matrix as , the second rotation matrix is ​​recorded as , the third rotation matrix is ​​recorded as , the fourth rotation matrix is ​​recorded as , at this time, the transformation relationship between the first rotation matrix, the second rotation matrix, the third rotation matrix and the fourth rotation matrix can be expressed as follows: .

[0051] In an optional solution, the process of determining the third rotation matrix may include A1-A4:

[0052] Step A1: adjust the robotic arm and re-shoot at least two candidate images using a camera.

[0053] Among them, the angles of the robotic arm are different when the candidate images are taken.

[0054] Step A2: Determine a candidate first rotation matrix according to the candidate captured image.

[0055] Step A3: transform the candidate first rotation matrix according to the predetermined third rotation matrix, the preset fourth rotation matrix, the fifth rotation matrix and the sixth rotation matrix to obtain a candidate third rotation matrix.

[0056] Among them, the preset fourth rotation matrix is ​​determined by the acceleration sensor; the fifth rotation matrix is ​​the rotation matrix from the robot base to the end fixture; and the sixth rotation matrix is ​​the rotation matrix from the end fixture to the acceleration sensor.

[0057] Step A4: Calculate the average value of each candidate third rotation matrix to obtain the third rotation matrix.

[0058] The candidate first rotation matrix can be determined by the candidate captured image of the camera. Since the rotation matrix from the acceleration sensor to the calibration board does not have the heading angle information, the heading angle of the second rotation matrix is ​​used as the heading angle of the rotation matrix from the acceleration sensor to the calibration board.

[0059] Based on the known heading angle, according to the detection results of the acceleration sensor , and according to the following formula, the complete preset fourth rotation matrix is ​​obtained.

[0060] .

[0061] in, Represents the preset fourth rotation matrix.

[0062] At this time, the robot arm is adjusted and a plurality of candidate captured images are re-shot by the camera, and a first rotation matrix corresponding to each candidate captured image is determined as a candidate first rotation matrix.

[0063] According to a predetermined third rotation matrix, a preset fourth rotation matrix, a fifth rotation matrix and a sixth rotation matrix, the candidate first rotation matrix is ​​transformed to obtain a plurality of candidate third rotation matrices; and the mean of each candidate third rotation matrix is ​​calculated to obtain a third rotation matrix.

[0064] To facilitate understanding of the conversion relationship between rotation matrices, this application records the fifth rotation matrix as , the sixth rotation matrix is ​​recorded as , and the candidate third rotation matrix is ​​recorded as , the candidate first rotation matrix is ​​recorded as ; Can be as well as to confirm.

[0065] according to The expression can be used to obtain multiple third rotation matrices through multiple calculations. , for multiple Calculate the average value and get the third rotation matrix .

[0066] S140: Adjust at least one Euler angle in the fourth rotation matrix according to the detection result of the acceleration sensor and the gravity projection relationship between the fourth rotation matrices to generate a target fourth rotation matrix.

[0067] After obtaining the fourth rotation matrix, the specific relationship between the detection result of the acceleration sensor and the fourth rotation matrix can be established according to the gravity projection relationship. The relationship expression is:

[0068] .

[0069] Will The corresponding ZYX Euler angle expression is At this time, according to the detection result of the acceleration sensor, the fourth rotation matrix Adjustment is performed to obtain the target fourth rotation matrix.

[0070] In an optional solution, adjusting at least one Euler angle in the fourth rotation matrix according to the detection result of the acceleration sensor and the gravity projection relationship between the fourth rotation matrices to generate a target fourth rotation matrix may include steps B1-B3:

[0071] Step B1: Determine candidate Euler angles corresponding to the fourth rotation matrix according to the detection result of the acceleration sensor and the gravity projection relationship between the fourth rotation matrix.

[0072] Step B2: According to the Levenberg-Marquardt algorithm, the candidate Euler angles are adjusted to obtain the target Euler angles.

[0073] Step B3: Generate a target fourth rotation matrix according to the target Euler angle and the gravity projection relationship.

[0074] Sure The corresponding ZYX Euler angle expression is , and use it as a candidate Euler angle.

[0075] By using the Levenberg-Marquardt algorithm, at a fixed Based on this, other candidate Euler angles are optimized, and the optimization expression is:

[0076] .

[0077] At this time, according to the final optimization result, the specific value of the fourth rotation matrix is ​​adjusted to obtain the target fourth rotation matrix.

[0078] S150: Determine an adjusted first rotation matrix according to the target fourth rotation matrix, the second rotation matrix, and the third rotation matrix.

[0079] After the target fourth rotation matrix is ​​obtained, the adjusted first rotation matrix can be generated according to the matrix conversion relationship among the target fourth rotation matrix, the second rotation matrix and the third rotation matrix.

[0080] S160. Determine the relative position relationship between the calibration plate and the robot arm base according to the adjusted first rotation matrix.

[0081] Finally, the relative position relationship between the calibration plate and the robot arm base can be determined according to the adjusted first rotation matrix, thereby improving the accuracy of the relative position relationship between the calibration plate and the robot arm base.

[0082] According to the technical solution of the embodiment of the present invention, by acquiring the captured image of the camera and the detection result of the acceleration sensor, a first rotation matrix is ​​determined according to the captured image of the camera, and the first rotation matrix is ​​transformed according to a predetermined second rotation matrix and a predetermined third rotation matrix to obtain a fourth rotation matrix, and at least one Euler angle in the fourth rotation matrix is ​​adjusted according to the detection result of the acceleration sensor and the gravity projection relationship between the fourth rotation matrix to generate a target fourth rotation matrix. According to the target fourth rotation matrix, the second rotation matrix and the third rotation matrix, the adjusted first rotation matrix is ​​determined, and according to the adjusted first rotation matrix, the relative position relationship between the calibration plate and the robot arm base is determined, so that when the relative position relationship between the calibration plate and the robot arm base is determined by the camera, the preliminarily determined relative position relationship can be adjusted according to the detection result of the acceleration sensor, thereby improving the accuracy of the relative position relationship determination result, and providing a guarantee for the robot arm to accurately clamp objects.

[0083] Embodiment 2

[0084] Since the present application involves too many rotation matrices, to facilitate the understanding of the present application, the second embodiment will be used as an example for illustrative explanation.

[0085] The transformation relationship between the two coordinate systems is represented by a matrix T (4*4 size is used as an example). T is called a transformation matrix and can be written as , where R is called the rotation matrix. In this application, R is the rotation matrix and t is the translation vector. In general, the transformation relationship between multiple coordinate systems can be expressed as Substituting the expression of T, we can determine that the calculation formula of the corresponding rotation matrix can be expressed as .and It represents the transposed matrix corresponding to the rotation matrix R.

[0086] In this case, It is represented as the rotation matrix from the calibration plate to the camera. Represents the rotation matrix from the end fixture to the base of the robot arm; Represents the rotation matrix from the robot base to the world coordinate system; Represents the rotation matrix from the accelerometer to the end fixture. This value can be determined based on the external parameter calibration of the accelerometer and camera. Represents the rotation matrix from the camera to the end fixture. This value can be obtained based on the camera hand-eye calibration. Represents the rotation matrix from the calibration plate to the world coordinate system. After the calibration plate is installed, it will no longer move.

[0087] According to the conversion relationship, it can be determined ,and .

[0088] according to , we can calculate ,in Can be as well as Since the acceleration sensor does not have information about the heading angle, it will be considered The heading angle is When the heading angle is known, the detection data of the acceleration sensor is determined to be , then we can use ,right At this point, change the position of the end fixture to drive the camera to shoot at multiple angles and calculate the different angles. , for different angles Calculate the mean and record the mean result as .

[0089] When moving the device equipped with the robot base, the image captured by the camera is calculated. , at this time will Recorded as On the one hand, the value of the acceleration sensor is recorded as According to the gravity projection, .remember The corresponding ZYX Euler angle expression is ,then At this time, the Levenberg-Marquardt (LM) algorithm is used to fix the angle optimization:

[0090] . After optimization , to replace the previous Euler angle ,accomplish According to the updated , we can use the formula Back-calculate the updated , thereby determining the relative position relationship between the calibration plate and the robot arm base.

[0091] Embodiment 3

[0092] Figure 2 This is a schematic diagram of the structure of a mechanical arm positioning device provided in the second embodiment of the present invention. This embodiment can be applied to the situation where an object is accurately grasped by a mechanical arm. The mechanical arm positioning device can be implemented in the form of hardware and / or software, and the mechanical arm positioning device can be configured in an electronic device with data processing capabilities. Figure 2As shown, the robot arm positioning device of this embodiment may include: a data acquisition module 210, a first matrix determination module 220, a fourth matrix conversion module 230, a fourth matrix adjustment module 240, a first matrix adjustment module 250 and a position relationship determination module 260. Among them:

[0093] The data acquisition module 210 is used to acquire the image captured by the camera and the detection result of the acceleration sensor;

[0094] A first matrix determination module 220 is used to determine a first rotation matrix according to the image captured by the camera; wherein the first rotation matrix is ​​a rotation matrix from the robot base to the calibration plate;

[0095] The fourth matrix conversion module 230 is used to convert the first rotation matrix according to the predetermined second rotation matrix and the predetermined third rotation matrix to obtain a fourth rotation matrix; wherein the second rotation matrix is ​​the rotation matrix from the manipulator base to the acceleration sensor; the third rotation matrix is ​​the rotation matrix from the calibration plate to the world coordinate system; and the fourth rotation matrix is ​​the rotation matrix from the acceleration sensor to the world coordinate system;

[0096] The fourth matrix adjustment module 240 is used to adjust at least one Euler angle in the fourth rotation matrix according to the detection result of the acceleration sensor and the gravity projection relationship between the fourth rotation matrix to generate a target fourth rotation matrix;

[0097] A first matrix adjustment module 250, configured to determine an adjusted target first rotation matrix according to the target fourth rotation matrix, the second rotation matrix and the third rotation matrix;

[0098] A position relationship determination module 260, used to determine the relative position relationship between the calibration plate and the robot arm base according to the adjusted first rotation matrix;

[0099] Among them, the camera and the acceleration sensor are located on the end fixture, and the robotic arm is used to control the end fixture and is connected to the robotic arm base.

[0100] Based on the above embodiment, optionally, the process of determining the third rotation matrix includes:

[0101] The robotic arm is adjusted, and at least two candidate images are re-photographed by a camera; wherein the angles of the robotic arm are different when the candidate images are photographed;

[0102] Determine a candidate first rotation matrix according to the candidate captured image;

[0103] According to a predetermined third rotation matrix, a preset fourth rotation matrix, a fifth rotation matrix and a sixth rotation matrix, the candidate first rotation matrix is ​​transformed to obtain a candidate third rotation matrix; wherein the preset fourth rotation matrix is ​​determined by an acceleration sensor; the fifth rotation matrix is ​​a rotation matrix from the base of the robot arm to the end fixture; and the sixth rotation matrix is ​​a rotation matrix from the end fixture to the acceleration sensor;

[0104] The average value of each candidate third rotation matrix is ​​calculated to obtain the third rotation matrix.

[0105] Based on the above embodiment, optionally, the fourth matrix adjustment module 240 is specifically used to:

[0106] Determine candidate Euler angles corresponding to the fourth rotation matrix according to the detection result of the acceleration sensor and the gravity projection relationship between the fourth rotation matrix;

[0107] According to the Levenberg-Marquardt algorithm, the candidate Euler angles are adjusted to obtain the target Euler angles;

[0108] Generate the target fourth rotation matrix according to the target Euler angle and gravity projection relationship.

[0109] The robot arm positioning device provided in the embodiment of the present invention can execute the robot arm positioning method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0110] Embodiment 4

[0111] Figure 3 A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0112] like Figure 3As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. The input / output (I / O) interface 15 is also connected to the bus 14.

[0113] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0114] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a robot arm positioning method.

[0115] In some embodiments, the robot positioning method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the robot positioning method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the robot positioning method in any other appropriate manner (e.g., by means of firmware).

[0116] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0117] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0118] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, device, or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0119] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0120] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0121] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0122] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0123] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for positioning a robotic arm, characterized in that: Applied to a robotic arm positioning device, the robotic arm positioning device includes a robotic arm, a camera, an end fixture, a robotic arm base and an acceleration sensor: Acquire the captured image of the camera and the detection result of the acceleration sensor; Determine a first rotation matrix according to the image captured by the camera; wherein the first rotation matrix is ​​a rotation matrix from the calibration plate to the base of the robotic arm; According to a predetermined second rotation matrix and a predetermined third rotation matrix, the first rotation matrix is ​​transformed to obtain a fourth rotation matrix; wherein the second rotation matrix is ​​a rotation matrix from the manipulator base to the acceleration sensor; the third rotation matrix is ​​a rotation matrix from the calibration plate to the world coordinate system; and the fourth rotation matrix is ​​a rotation matrix from the acceleration sensor to the world coordinate system; According to the detection result of the acceleration sensor and the gravity projection relationship between the fourth rotation matrix, at least one Euler angle in the fourth rotation matrix is ​​adjusted to generate a target fourth rotation matrix; Determine an adjusted first rotation matrix according to the target fourth rotation matrix, the second rotation matrix and the third rotation matrix; Determining the relative position relationship between the calibration plate and the robotic arm base according to the adjusted first rotation matrix; Wherein, the camera and the acceleration sensor are located on the end fixture, and the mechanical arm is used to control the end fixture and is connected to the mechanical arm base; According to the detection result of the acceleration sensor and the gravity projection relationship between the fourth rotation matrix, at least one Euler angle in the fourth rotation matrix is ​​adjusted to generate a target fourth rotation matrix, including: Determine candidate Euler angles corresponding to the fourth rotation matrix according to the detection result of the acceleration sensor and the gravity projection relationship between the fourth rotation matrix; According to the Levenberg-Marquardt algorithm, the candidate Euler angles are adjusted to obtain target Euler angles; A target fourth rotation matrix is ​​generated according to the target Euler angles and the gravity projection relationship.

2. The method according to claim 1, characterized in that The process of determining the third rotation matrix includes: The mechanical arm is adjusted, and at least two candidate shooting images are retaken by the camera; wherein the angles of the mechanical arm are different when the candidate shooting images are taken; Determining a candidate first rotation matrix according to the candidate captured image; According to the predetermined third rotation matrix, the preset fourth rotation matrix, the fifth rotation matrix and the sixth rotation matrix, the candidate first rotation matrix is ​​transformed to obtain a candidate third rotation matrix; wherein the preset fourth rotation matrix is ​​determined by an acceleration sensor; the fifth rotation matrix is ​​a rotation matrix from the robot base to the end fixture; and the sixth rotation matrix is ​​a rotation matrix from the end fixture to the acceleration sensor; An average value is calculated for each of the candidate third rotation matrices to obtain a third rotation matrix.

3. The method according to claim 2, characterized in that The sixth rotation matrix is ​​determined by extrinsic calibration of the acceleration sensor and the camera.

4. The method according to claim 3, characterized in that The first rotation matrix is ​​determined by the camera intrinsic parameters.

5. The method according to claim 4, characterized in that The heading angle of the acceleration sensor is determined by the heading angle of the second rotation matrix.

6. The method according to claim 5, characterized in that The world coordinate system is expressed in the northeast celestial coordinate system.

7. A mechanical arm positioning device, characterized in that: Includes robotic arm, camera, end fixture, robotic arm base and acceleration sensor: A data acquisition module, used to acquire the image captured by the camera and the detection result of the acceleration sensor; A first matrix determination module, used to determine a first rotation matrix according to the image captured by the camera; wherein the first rotation matrix is ​​a rotation matrix from a calibration plate to the base of the robotic arm; A fourth matrix conversion module, used to convert the first rotation matrix according to a predetermined second rotation matrix and a predetermined third rotation matrix to obtain a fourth rotation matrix; wherein the second rotation matrix is ​​a rotation matrix from the manipulator base to the acceleration sensor; the third rotation matrix is ​​a rotation matrix from the calibration plate to the world coordinate system; and the fourth rotation matrix is ​​a rotation matrix from the acceleration sensor to the world coordinate system; A fourth matrix adjustment module, configured to adjust at least one Euler angle in the fourth rotation matrix according to the detection result of the acceleration sensor and the gravity projection relationship between the fourth rotation matrix, so as to generate a target fourth rotation matrix; A first matrix adjustment module, used to determine an adjusted first rotation matrix according to the target fourth rotation matrix, the second rotation matrix and the third rotation matrix; A position relationship determination module, used to determine the relative position relationship between the calibration plate and the robot arm base according to the adjusted first rotation matrix; Wherein, the camera and the acceleration sensor are located on the end fixture, and the mechanical arm is used to control the end fixture and is connected to the mechanical arm base; Wherein, the fourth matrix adjustment module is specifically used for: Determine candidate Euler angles corresponding to the fourth rotation matrix according to the detection result of the acceleration sensor and the gravity projection relationship between the fourth rotation matrix; According to the Levenberg-Marquardt algorithm, the candidate Euler angles are adjusted to obtain target Euler angles; A target fourth rotation matrix is ​​generated according to the target Euler angles and the gravity projection relationship.

8. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the robot arm positioning method according to any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the robot arm positioning method according to any one of claims 1 to 6 when executed.

Citation Information

Patent Citations

  • Robot curved-surface motion positioning method and system

    CN109676604A

  • Calibration method and device for relative postures of camera and inertial measurement unit

    CN110378968A

  • Hand-eye calibration method of bag opening robot

    CN117428777A

  • Calibration method and device based on double mechanical arms

    CN117782152A

  • Mobile robot and robot arm alignment method thereof

    WO2020171527A1