Visual perception device based spatial calibration method and apparatus for robot body coordinate system, and storage medium
Abstract
This disclosure relates to a spatial calibration method and apparatus of a robot ontology coordinate system based on a visual perception device and a storage medium. The method includes: obtaining first transformation relationships; obtaining second transformation relationships; using a transformation relationship between a visual perception coordinate system and an ontology coordinate system as an unknown variable; and resolving the unknown variable based on an equivalence relationship between a transformation relationship obtained according to the first transformation relationships and the unknown variable and a transformation relationship obtained according to the second transformation relationships and the unknown variable, to obtain the transformation relationship between the visual perception coordinate system and the ontology coordinate system.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 15 · Forward citations: 0.
Claims (20 — 4 Independent, 16 Dependent)
- Claim 1Independent Claim
A spatial calibration method of a robot ontology coordinate system based on a visual perception device, performed by a computer device, the method comprising: obtaining first transformation relationships, the first transformation relationships including: a transformation relationship between a calibration object coordinate system and a visual perception coordinate system when a target motion mechanism of a robot is located at a first sampling point, and a transformation relationship between a motion mechanism coordinate system and an ontology coordinate system when the target motion mechanism of the robot is located at the first sampling point; obtaining second transformation relationships, the second transformation relationships including: a transformation relationship between the calibration object coordinate system and the visual perception coordinate system when the target motion mechanism is located at a second sampling point, and a transformation relationship between the motion mechanism coordinate system and the ontology coordinate system when the target motion mechanism is located at the second sampling point; and deriving a target transformation relationship based on an equivalence relationship between a transformation relationship obtained according to the first transformation relationships and the target transformation relationship and a transformation relationship obtained according to the second transformation relationships and the target transformation relationship, the target transformation relationship being a transformation relationship between the visual perception coordinate system and the ontology coordinate system, and a target calibration object corresponding to the calibration object coordinate system being disposed on the target motion mechanism.
- Claim 2Depends on #1
The method according to claim 1, wherein deriving the target transformation relationship comprises: obtaining a first calculation result based on the transformation relationships between the calibration object coordinate system and the visual perception coordinate system when the target motion mechanism is located respectively at the first sampling point and the second sampling point; obtaining a second calculation result based on the transformation relationships between the motion mechanism coordinate system and the ontology coordinate system when the target motion mechanism is located respectively at the first sampling point and the second sampling point; and deriving the target transformation relationship based on an equivalence relationship between a first value calculated according to the first calculation result and the target transformation relationship and a second value calculated according to the second calculation result and the target transformation relationship.
- Claim 3Depends on #2
The method according to claim 2, wherein deriving the target transformation relationship based on the first value and the second value comprises: obtaining a current solution corresponding to the target transformation relationship; obtaining a first current value through calculation according to the current solution and the first calculation result; obtaining a second current value through calculation according to the current solution and the second calculation result; obtaining a difference calculation result according to a difference between the first current value and the second current value and adjusting the current solution in a direction of making the difference calculation result smaller to obtain an updated current solution; and repeating to the operation of obtaining the first current value, obtaining the second current value, and adjusting the current solution until the difference calculation result is less than a first threshold, which current solution is used as the transformation relationship between the visual perception coordinate system and the ontology coordinate system.
- Claim 4Depends on #2
The method according to claim 2, wherein obtaining the second calculation result comprises: obtaining a transformation relationship from the motion mechanism coordinate system to the ontology coordinate system when the target motion mechanism is located at the first sampling point, the transformation relationship being a first known value; obtaining a transformation relationship from the ontology coordinate system to the motion mechanism coordinate system when the target motion mechanism is located at the second sampling point, and the transformation relationship being a second known value; and multiplying the first known value by the second known value to obtain the second calculation result.
- Claim 5Depends on #1
The method according to claim 1, wherein obtaining the first transformation relationships comprises: obtaining a projection matrix corresponding to a visual perception device; and performing calculation according to the projection matrix and a transformation relationship between the calibration object coordinate system and an image coordinate system when the target motion mechanism is located at the first sampling point to obtain the transformation relationship between the calibration object coordinate system and the visual perception coordinate system when the target motion mechanism is located at the first sampling point.
- Claim 6Depends on #5
The method according to claim 5, wherein obtaining the first transformation relationships further comprises: moving the target motion mechanism to the first sampling point and controlling the visual perception device to perform image acquisition on the target calibration object to obtain a target image; and obtaining, according to coordinates of the target calibration object in the target image and a size parameter corresponding to the target calibration object, the transformation relationship between the calibration object coordinate system and the image coordinate system when the target motion mechanism is located at the first sampling point.
- Claim 7Depends on #1
The method according to claim 1, wherein obtaining the first transformation relationships comprises: obtaining a transformation relationship between coordinate systems of adjacent joints in a joint sequence corresponding to the target motion mechanism when the target motion mechanism is located at the first sampling point to obtain an adjacent transformation relationship set; and performing multiplication on transformation relationships in the adjacent transformation relationship set according to an arrangement sequence of joints in the joint sequence to obtain the transformation relationship between the motion mechanism coordinate system and the ontology coordinate system when the target motion mechanism is located at the first sampling point.
- Claim 8Independent Claim
A robot control method, performed by a computer device, the method comprising: obtaining visual pose information of a target object in a visual perception coordinate system corresponding to a robot; obtaining a target transformation relationship between the visual perception coordinate system and an ontology coordinate system of the robot, the transformation relationship between the visual perception coordinate system and the ontology coordinate system being resolved according to an equivalence relationship between transformation relationships obtained through calculation respectively according to first transformation relationships and second transformation relationships; obtaining target pose information corresponding to the target object according to the visual pose information and the transformation relationship between the visual perception coordinate system and the ontology coordinate system; and controlling, according to the target pose information, a target motion mechanism of the robot to move, the first transformation relationships and the second transformation relationships respectively including: transformation relationships between a calibration object coordinate system and the visual perception coordinate system; and transformation relationships between a motion mechanism coordinate system and the ontology coordinate system when the target motion mechanism is located at different sampling points.
- Claim 9Depends on #8
The method according to claim 8, wherein obtaining the transformation relationship between the visual perception coordinate system and the ontology coordinate system of the robot comprises: obtaining the first transformation relationships, the first transformation relationships including a transformation relationship between the calibration object coordinate system and the visual perception coordinate system and a transformation relationship between the motion mechanism coordinate system and the ontology coordinate system when the target motion mechanism is located at a first sampling point; obtaining the second transformation relationships, the second transformation relationships including a transformation relationship between the calibration object coordinate system and the visual perception coordinate system and a transformation relationship between the motion mechanism coordinate system and the ontology coordinate system when the target motion mechanism is located at a second sampling point; obtaining the target transformation relationship based on an equivalence relationship between a transformation relationship obtained according to the first transformation relationships and the target transformation relationship and a transformation relationship obtained according to the second transformation relationships and the target transformation relationship; and a target calibration object corresponding to the calibration object coordinate system being disposed on the target motion mechanism during calibration.
- Claim 10Depends on #9
The method according to claim 9, wherein obtaining the target transformation relationship comprises: obtaining a first calculation result through calculation according to transformation relationships between the calibration object coordinate system and the visual perception coordinate system when the target motion mechanism is located respectively at the first sampling point and the second sampling point; obtaining a second calculation result through calculation according to transformation relationships between the motion mechanism coordinate system and the ontology coordinate system when the target motion mechanism is located respectively at the first sampling point and the second sampling point; and obtaining the target transformation relationship based on an equivalence relationship between a value calculated according to the first calculation result and the target transformation relationship and a value calculated according to the second calculation result and the target transformation relationship.
- Claim 11Depends on #10
The method according to claim 10, wherein obtaining the second calculation result comprises: obtaining a transformation relationship, as a first known value, from the motion mechanism coordinate system to the ontology coordinate system when the target motion mechanism is located at the first sampling point; obtaining a transformation relationship, as a second know value, from the ontology coordinate system to the motion mechanism coordinate system when the target motion mechanism is located at the second sampling point; and multiplying the first known value by the second known value to obtain the second calculation result.
- Claim 12Independent Claim
A computer device, comprising a memory and a processor, the memory storing computer-readable instructions, the processor, when executing the computer-readable instructions, causing the computer device to perform steps comprising: obtaining first transformation relationships, the first transformation relationships including: a transformation relationship between a calibration object coordinate system and a visual perception coordinate system when a target motion mechanism of a robot is located at a first sampling point, and a transformation relationship between a motion mechanism coordinate system and an ontology coordinate system when the target motion mechanism of the robot is located at the first sampling point; obtaining second transformation relationships, the second transformation relationships including: a transformation relationship between the calibration object coordinate system and the visual perception coordinate system when the target motion mechanism is located at a second sampling point, and a transformation relationship between the motion mechanism coordinate system and the ontology coordinate system when the target motion mechanism is located at the second sampling point; and deriving a target transformation relationship based on an equivalence relationship between a transformation relationship obtained according to the first transformation relationships and the target transformation relationship and a transformation relationship obtained according to the second transformation relationships and the target transformation relationship, the target transformation relationship being a transformation relationship between the visual perception coordinate system and the ontology coordinate system, and a target calibration object corresponding to the calibration object coordinate system being disposed on the target motion mechanism.
- Claim 13Depends on #12
The computer device of claim 12, wherein the processor is further configured to execute the computer-readable instructions to cause the computer device to deriving the target transformation relationship by: obtaining a first calculation result through calculation according to the transformation relationships between the calibration object coordinate system and the visual perception coordinate system when the target motion mechanism is located respectively at the first sampling point and the second sampling point; obtaining a second calculation result through calculation according to the transformation relationships between the motion mechanism coordinate system and the ontology coordinate system when the target motion mechanism is located respectively at the first sampling point and the second sampling point; and deriving the target transformation relationship based on an equivalence relationship between a first value calculated according to the first calculation result and the target transformation relationship and a second value calculated according to the second calculation result and the target transformation relationship.
- Claim 14Depends on #13
The computer device of claim 13, wherein the processor is further configured to execute the computer-readable instructions to cause the computer device to derive the target transformation relationship based on the first value and the second value by: obtaining a current solution corresponding to the target transformation relationship; obtaining a first current value through calculation according to the current solution and the first calculation result; obtaining a second current value through calculation according to the current solution and the second calculation result; obtaining a difference calculation result according to a difference between the first current value and the second current value and adjusting the current solution in a direction of making the difference calculation result smaller to obtain an updated current solution; and repeating to the operation of obtaining the first current value, obtaining the second current value, and adjusting the current solution until the difference calculation result is less than a first threshold, which current solution is used as the transformation relationship between the visual perception coordinate system and the ontology coordinate system.
- Claim 15Depends on #13
The computer device of claim 13, wherein the processor is further configured to execute the computer-readable instructions to cause the computer device to obtain the second calculation result by: obtaining a transformation relationship from the motion mechanism coordinate system to the ontology coordinate system when the target motion mechanism is located at the first sampling point, the transformation relationship being a first known value; obtaining a transformation relationship from the ontology coordinate system to the motion mechanism coordinate system when the target motion mechanism is located at the second sampling point, and using the transformation relationship as a second known value; and multiplying the first known value by the second known value to obtain the second calculation result.
- Claim 16Depends on #12
The computer device of claim 12, wherein the processor is further configured to execute the computer-readable instructions to cause the computer device to obtain the first transformation relationships by: obtaining a projection matrix corresponding to a visual perception device; and performing calculation according to the projection matrix and a transformation relationship between the calibration object coordinate system and an image coordinate system when the target motion mechanism is located at the first sampling point to obtain the transformation relationship between the calibration object coordinate system and the visual perception coordinate system when the target motion mechanism is located at the first sampling point.
- Claim 17Independent Claim
A robot, comprising a memory and a processor, the memory storing computer-readable instructions that, when executed by the processor, configure the robot to perform: obtaining visual pose information of a target object in a visual perception coordinate system corresponding to the robot; obtaining a target transformation relationship between the visual perception coordinate system and an ontology coordinate system of the robot, the transformation relationship between the visual perception coordinate system and the ontology coordinate system being resolved according to an equivalence relationship between transformation relationships obtained through calculation respectively according to first transformation relationships and second transformation relationships; obtaining target pose information corresponding to the target object according to the visual pose information and the transformation relationship between the visual perception coordinate system and the ontology coordinate system; and controlling, according to the target pose information, a target motion mechanism of the robot to move, the first transformation relationships and the second transformation relationships respectively including: transformation relationships between a calibration object coordinate system and the visual perception coordinate system; and transformation relationships between a motion mechanism coordinate system and the ontology coordinate system when the target motion mechanism is located at different sampling points.
- Claim 18Depends on #17
The robot of claim 17, wherein the processor is further configured to execute the computer-readable instructions to obtain the transformation relationship between the visual perception coordinate system and the ontology coordinate system of the robot by: obtaining the first transformation relationships, the first transformation relationships including a transformation relationship between the calibration object coordinate system and the visual perception coordinate system and a transformation relationship between the motion mechanism coordinate system and the ontology coordinate system when the target motion mechanism is located at a first sampling point; obtaining the second transformation relationships, the second transformation relationships including a transformation relationship between the calibration object coordinate system and the visual perception coordinate system and a transformation relationship between the motion mechanism coordinate system and the ontology coordinate system when the target motion mechanism is located at a second sampling point; and obtain the target transformation relationship based on an equivalence relationship between a transformation relationship obtained according to the first transformation relationships and the target transformation relationship and a transformation relationship obtained according to the second transformation relationships and the target transformation relationship, a target calibration object corresponding to the calibration object coordinate system being disposed on the target motion mechanism during calibration.
- Claim 19Depends on #18
The robot of claim 18, wherein the processor is further configured to execute the computer-readable instructions to obtain the target transformation relationship by: obtaining a first calculation result through calculation according to transformation relationships between the calibration object coordinate system and the visual perception coordinate system when the target motion mechanism is located respectively at the first sampling point and the second sampling point; obtaining a second calculation result through calculation according to transformation relationships between the motion mechanism coordinate system and the ontology coordinate system when the target motion mechanism is located respectively at the first sampling point and the second sampling point; and obtaining the target transformation relationship based on an equivalence relationship between a value calculated according to the first calculation result and the target transformation relationship and a value calculated according to the second calculation result and the target transformation relationship.
- Claim 20Depends on #19
The robot of claim 19, wherein the processor is further configured to execute the computer-readable instructions to the second calculation result by: obtaining a transformation relationship, as a first known value, from the motion mechanism coordinate system to the ontology coordinate system when the target motion mechanism is located at the first sampling point; obtaining a transformation relationship, as a second know value, from the ontology coordinate system to the motion mechanism coordinate system when the target motion mechanism is located at the second sampling point; and multiplying the first known value by the second known value to obtain the second calculation result.
Technical Overview & Description
RELATED DISCLOSURE This application is a continuation of International Application No. PCT/CN2021/084229, filed Mar. 31, 2021, which claims priority to Chinese Patent Disclosure No. 202010351422.9, entitled “ METHOD AND APPARATUS FOR DETERMINING ROBOT COORDINATE SYSTEM TRANSFORMATION RELATIONSHIP, DEVICE, AND STORAGE MEDIUM ” and filed with the China National Intellectual Property Administration on Apr. 28, 2020. The disclosures above are incorporated herein by reference in their entireties. TECHNICAL FIELD This disclosure relates to the field of robot technologies, and in particular, to a spatial calibration method and apparatus of a robot ontology coordinate system based on a visual perception device and a storage medium. BACKGROUND With the development of science and technologies, robots are increasingly common in daily life and industries, for example, industrial robots may be used to replace human for manual labor. Currently, during operation, a robot usually perceives the external environment by using a visual perception device, and controls, by using a control system according to the perceived external environment, a motion mechanism to move. However, a coordinate system used by the visual perception device to perceive the environment is different from an ontology coordinate system referenced when the control system controls the motion mechanism of the robot to move. Therefore, the ontology coordinate system of the robot needs to be calibrated, so as to determine a transformation relationship between the coordinate system corresponding to the visual perception device and the ontology coordinate system. However, there is often a problem that the calibration efficiency is relatively low. SUMMARY The embodiments of this disclosure provide a spatial calibration method and apparatus of a robot ontology coordinate system based on a visual perception device, a device, and a storage medium. A spatial calibration method of a robot ontology coordinate system based on a
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (15)
| Patent | Title | Year | Citations |
|---|
Non-Patent Literature (10)
- Automatic work objects calibration, Schmidt et al, 2014 (Year: 2014).
- Search Report for Chinse application No. 202010351422.9 dated Apr. 16, 2021, 3p, in Chinese language.
- First Office Action for Chinese application No. 202010351422.9 dated Apr. 26, 2021, 12p, in Chinese language.
- Second Office Action for Chinese application No. 202010351422.9 dated Nov. 15, 2021, 17p, in Chinese language.
- International Search Report and Written Opinion for priority application No. PCT/CN2021/084229 dated Jun. 3, 2021, 11p, in Chinese language.
- English language translation of the International Search Report for priority application No. PCT/CN2021/084229 dated Jun. 3, 2021, 3p.
- Concise Explanation of Relevancy for A15, A16, A17, A18, A21, and A22.
- Chen, Bao-cun et al.,
- “
- Automatic Hand-Eye Calibration System of Robot based on ROS