Calibration device, chess playing robot and calibration method thereof

By designing a calibration device in the chess robot, using the camera module and positioning needle combined with the posture adjustment of the robot's arm, the problem of inaccurate calibration of the chess robot is solved, ensuring the accuracy of the move and the quality of the game experience.

CN119077732AActive Publication Date: 2024-12-06IFLYTEK CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202411258529.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-09
Publication Date
2024-12-06
Estimated Expiration
2044-09-09

AI Technical Summary

Technical Problem

During use, existing chess robots are prone to changes in internal parameters due to collision or reassembly, which affects the accuracy of the move and is difficult to ensure the quality of the game experience.

Method used

A calibration device is designed, including a housing, a positioning needle and an image camera module. The camera module collects chessboard images and compares them with standard images, combines the posture adjustment of the robotic arm to determine the calibration coordinates of the chess point, and calibrate the position through the positioning needle. , ensure the accuracy of the move.

Benefits of technology

It effectively solves the problem of inaccurate calibration of chess robots, ensures the accuracy of moves and the quality of chess experience, and improves the reliability of robots in practical applications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119077732A_ABST
    Figure CN119077732A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of chess playing robots, and provides a calibration device, a chess playing robot and a calibration method of the chess playing robot. The calibration device comprises a shell, a positioning pin and a camera module. The shell is detachably connected with the mechanical arm; the positioning needle extends in the chess piece falling direction of the chess playing robot and is provided with an inner cavity and a light passing opening communicated with the inner cavity, and the light passing opening is formed in the needle head of the positioning needle; the camera module is arranged in the inner cavity and is in communication connection with the host; a lens of the camera module is arranged opposite to the light passing opening; the camera module collects an image of a chess playing point position on the chessboard, so that the host determines the chess playing point position to be calibrated according to a comparison result of the image and a standard picture; and the needle head is in contact with the chess playing point position to be calibrated, so that the host determines the calibration coordinate of the chess playing point position according to the posture of the mechanical arm. According to the method, the to-be-calibrated chess playing point position is conveniently determined, the calibration coordinates of the chess playing point position are obtained based on calibration of the to-be-calibrated chess playing point position, operation is convenient, and accurate calibration of the chess playing robot is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of chess-playing robots, and in particular to a calibration device, a chess-playing robot and a calibration method thereof. Background Art

[0002] Currently, chess-playing robots are widely used in chess teaching and entertainment. During the game, the robot usually relies on vision to recognize the user's moves, and after calculation, it uses a robotic arm to perform the move operation, thus realizing the game between machine and human.

[0003] The chess-playing robot is mainly calibrated for the coordinates of each chess-playing point on the chessboard before leaving the factory. In actual applications, if a calibrated chess-playing robot is hit or reassembled, the internal parameters of the chess-playing robot will change, making it difficult to ensure the accuracy of the chess-playing robot's placement, affecting the user's chess-playing experience. Summary of the invention

[0004] The present invention provides a calibration device, a chess-playing robot and a calibration method thereof, which are used to at least solve or improve the problem in the prior art that it is difficult to calibrate the chess-playing robot in actual use.

[0005] In a first aspect, the present invention provides a calibration device, which is applied to a chess-playing robot, wherein the chess-playing robot comprises a host and a mechanical arm, wherein the mechanical arm is arranged on the host, and the calibration device comprises: a housing, which is used to be detachably connected to the mechanical arm; A positioning needle is arranged on the housing and extends along the direction of the chess-playing robot to place a chess piece; the positioning needle has an inner cavity and a light-through hole connected to the inner cavity, and the light-through hole is arranged on the needle head of the positioning needle; A camera module is disposed in the inner cavity and is in communication connection with the host; a lens of the camera module is disposed opposite to the light opening; The camera module is used to capture images of chess points on the chessboard, so that the host can determine the chess points to be calibrated according to the comparison results between the images and the standard pictures; The needle is used to contact the chess-playing point to be calibrated, so that the host can determine the calibration coordinates of the chess-playing point according to the posture of the mechanical arm.

[0006] According to a calibration device provided by the present invention, the housing has a receiving cavity and a pinhole communicating with the receiving cavity; The positioning needle comprises a needle seat and a needle body. The needle seat is movably arranged in the accommodating cavity along the optical axis direction of the camera module. The needle body is connected to the needle seat and penetrates the needle hole.

[0007] According to a calibration device provided by the present invention, the needle seat is provided with a contact, and the needle seat is rotatably arranged in the accommodating cavity relative to the optical axis of the camera module; The inner wall of the accommodating cavity is provided with a guiding groove, the guiding groove extends along a spiral track relative to the optical axis of the camera module, and the contact is movably arranged in the guiding groove along the extending direction of the guiding groove.

[0008] A calibration device according to the present invention further includes: The elastic member is arranged in the accommodating cavity and abuts between the inner wall of the accommodating cavity and the needle seat along the optical axis direction of the camera module.

[0009] A calibration device according to the present invention further includes: A trigger switch, disposed on the housing and electrically connected to the camera module; Wherein, when the shell is connected to the mechanical arm, the trigger switch is triggered by the mechanical arm to control the camera module to start working.

[0010] A calibration device according to the present invention further includes: A control module, electrically connected to the trigger switch; An indicator light and a wireless communication module are electrically connected to the control module respectively. The indicator light is used to indicate the working status of the calibration device. The wireless communication module is used to send the image captured by the camera module to the host.

[0011] In a second aspect, the present invention further provides a chess-playing robot, comprising: A host and a mechanical arm, wherein the mechanical arm is arranged on the host, and the host and the mechanical arm are in communication connection; A picking component is detachably connected to the mechanical arm and is used to pick up chess pieces; As described above, the calibration device, the shell of the calibration device is detachably connected to the robotic arm, and the camera module of the calibration device is communicatively connected to the host.

[0012] In a third aspect, the present invention further provides a calibration method for the chess-playing robot as described above, comprising: determining a chess-playing point on a chessboard to be calibrated; Receiving a user's posture adjustment of the robotic arm until the tip of the positioning needle contacts the chess point to be calibrated; The angle information of each joint of the robot arm is obtained, and the calibration coordinates of the chess point to be calibrated are determined according to the angle information.

[0013] According to a calibration method provided by the present invention, the step of determining the chess point to be calibrated on the chessboard includes: Receiving a first input to the chess-playing robot; In response to the first input, according to the preset coordinate information, the mechanical arm is controlled to drive the calibration device to move to the position corresponding to each chess-playing point on the chessboard, and the camera module is controlled to capture images of each chess-playing point; The image captured by the camera module is compared with the standard image to obtain the chess-playing points to be calibrated among the chess-playing points.

[0014] According to a calibration method provided by the present invention, the step of comparing the image captured by the camera module with a standard picture to obtain the chess playing points to be calibrated among the chess playing points includes: superimposing the image captured by the camera module with the standard picture; In the case where the "cross" mark on at least part of the standard image is outside the area where the "cross" pattern in the image is located, the chess-playing point corresponding to the image is determined as the chess-playing point to be calibrated.

[0015] According to a calibration method provided by the present invention, after determining the calibration coordinates of the chess point to be calibrated, the method further comprises: Acquire position coordinates of a plurality of chess-playing points around the calibration coordinates, wherein the position coordinates of the plurality of chess-playing points are sequentially connected to form a square area; Determine the coordinates of the geometric center of the square area; In the case where the distance that the calibration coordinate deviates from the coordinate of the geometric center exceeds a preset value, the calibration coordinate of the chess point to be calibrated is re-determined.

[0016] According to a calibration method provided by the present invention, after determining the calibration coordinates of the chess point to be calibrated, the method further comprises: receiving a second input to the chess-playing robot; In response to the second input, the calibration coordinates of each of the chess playing points that have been calibrated are reviewed and calibrated according to the calibration method described above.

[0017] The calibration device and the calibration method for the chess-playing robot provided by the present invention, by setting a positioning pin and a camera module based on the shell of the calibration device, and setting the camera module inside the positioning pin, can not only ensure that the camera module takes pictures facing the chess-playing point along the direction of chess-playing, so that the host can accurately determine the chess-playing point to be calibrated according to the image taken by the camera module, but also ensure that the positioning pin calibrates the chess-playing point to be calibrated along the direction of chess-playing, so that the calibrated position of the positioning pin is consistent with the position where the chess-playing robot places the chess, which is convenient for the host to accurately obtain the calibration coordinates of the chess-playing point according to the posture of the mechanical arm when the positioning pin performs calibration, thereby ensuring the accuracy of the calibration of the chess-playing robot. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0019] Figure 1 It is a structural schematic diagram of the calibration device provided by the present invention; Figure 2 is a cross-sectional schematic diagram of the calibration device provided by the present invention when the positioning pin is in a recovered state; Figure 3 is a cross-sectional schematic diagram of the calibration device provided by the present invention when the positioning pin is in an extended state; Figure 4 is a cross-sectional schematic diagram of a housing provided by the present invention; Figure 5 It is a schematic diagram of the structure of the positioning pin provided by the present invention; Figure 6 It is a structural schematic diagram of the assembly of the mechanical arm and calibration device of the chess playing robot provided by the present invention; Figure 7 It is a structural schematic diagram of the assembly of the mechanical arm and the suction nozzle of the chess playing robot provided by the present invention; Figure 8 It is a structural schematic diagram of the mechanical arm provided by the present invention being assembled with the calibration device or the suction nozzle in a threaded connection manner; Fig. 9 It is a flow chart of a calibration method for a chess-playing robot based on a calibration device provided by the present invention; Fig.10 It is a schematic diagram of comparing the image captured by the camera module provided by the present invention with a standard image; Fig.11 It is one of the schematic diagrams that the "cross" mark on the standard picture provided by the present invention is located in the area where the "cross" pattern is located in the image captured by the camera module; Fig.12 This is a second schematic diagram of a cross mark on a standard picture provided by the present invention being located within a region where a cross pattern is located in an image captured by a camera module; Fig.13 It is a schematic diagram that the "cross" mark on the standard picture provided by the present invention is outside the area where the "cross" pattern is located in the image captured by the camera module; Fig.14 This is an example diagram of the calibration check of the calibration coordinates of the chess point provided by the present invention; Fig.15 is a schematic diagram of the structure of an electronic device provided by the present invention; Reference numerals: 1. Calibration device; 2. Host; 3. Robotic arm; 4. Pick up parts; 5. Chessboard; 100. Image; 200. Standard picture; 11. Shell; 111. Accommodating cavity; 112. Needle hole; 1101. Guide groove; 1102. Threaded hole; 12. Positioning pin; 1201. Contact; 121. Needle seat; 122. Needle body; 1221. Inner cavity; 1222. Light port; 13. Camera module; 14. Elastic member; 15. Trigger switch; 16. Control module; 17. Indicator light; 18. Charging port. DETAILED DESCRIPTION

[0020] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are 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 are within the scope of protection of the present invention.

[0021] Combine the following Figure 1-Figure 15 , the calibration device and the calibration method of the chess-playing robot provided by the embodiments of the invention are explained in detail through specific embodiments and their application scenarios.

[0022] In the first aspect, Figures 1 to 3 As shown, an embodiment of the present invention provides a calibration device 1, which is applied to a chess-playing robot. The chess-playing robot includes a host 2 and a mechanical arm 3. The mechanical arm 3 is arranged on the host 2. The calibration device 1 includes: a housing 11, a positioning pin 12 and a camera module 13; The housing 11 is used for detachably connecting with the robot arm 3; the positioning pin 12 is arranged on the housing 11 and is extended along the direction of the chess robot to place the chess pieces; the positioning pin 12 has an inner cavity 1221 and a light opening 1222 connected with the inner cavity 1221; the light opening 1222 is arranged at the needle head of the positioning pin 12; the camera module 13 is arranged in the inner cavity 1221 and is connected to the host 2 for communication; the lens of the camera module 13 is arranged opposite to the light opening 1222; The camera module 13 is used to collect images of chess positions on the chessboard 5, so that the host 2 can determine the chess positions to be calibrated according to the comparison results between the images and the standard pictures; The needle is used to contact the chess-playing point to be calibrated, so that the host 2 can determine the calibration coordinates of the chess-playing point according to the posture of the robot arm 3.

[0023] It is understandable that the chess-playing robot is used to play chess, go or five-in-a-row with household personnel; when playing chess, the chess-playing point is the center of each square on the chessboard 5; when playing go or five-in-a-row, the chess-playing point is each "cross" intersection on the chessboard 5.

[0024] The shell 11 has a first end and a second end, and the first end and the second end are arranged relatively to each other along the optical axis direction of the camera module 13; the first end of the shell 11 can be detachably connected to the execution end of the robot arm 3 by means of threaded connection, snap-on connection, etc., and the second end of the shell 11 is connected to the positioning pin 12.

[0025] The execution end of the robot arm 3 is provided with a connecting portion, which extends in the vertical direction and is configured to be selectively detachably connected to the picking component 4 for picking up chess pieces or the first end of the shell 11. The extending direction of the connecting portion is the direction in which the chess robot places the chess pieces.

[0026] The positioning pin 12 can be configured to extend along the optical axis direction of the camera module 13. By setting the camera module 13 in the inner cavity 1221 of the positioning pin 12 and performing image acquisition based on the light opening 1222 at the needle head, it can be ensured that the camera module 13 shoots the chess-playing point vertically downward along the direction of chess-playing, thereby avoiding the influence of the deviation of the shooting angle of the camera module 13 on the determination of the chess-playing point to be calibrated. When it is determined that the coordinates corresponding to the current chess-playing point need to be calibrated, the positioning pin 12 coaxially arranged with the camera module 13 can be directly used to calibrate the chess-playing point along the direction of chess-playing, so that the calibrated position of the positioning pin 12 is consistent with the position of the chess-playing robot, thereby ensuring the accuracy of the calibration of the chess-playing robot.

[0027] In actual applications, the shell 11 of the calibration device 1 is connected to the execution end of the robotic arm 3, and the host 2 of the chess-playing robot stores coordinate information corresponding to each chess-playing point on the chessboard 5. The host 2 can adjust the posture of the robotic arm 3 according to the coordinate information, so that the robotic arm 3 controls the calibration device 1 to reach the position corresponding to each chess-playing point, and then the camera module 13 captures the image of the chess-playing point.

[0028] At the same time, after the camera module 13 transmits the captured image to the host 2, the host 2 compares and analyzes the image captured by the camera module 13 with the pre-stored standard picture. When the image captured by the camera module 13 is misaligned relative to the standard picture, it can be determined that the chess-playing point photographed by the camera module 13 is the chess-playing point to be calibrated.

[0029] Then, the operator can manually change the posture of the robot arm 3 to control the needle head of the positioning needle 12 to contact the chess point to be calibrated, so as to calibrate the chess point to be calibrated. Since the coordinates of the chess point correspond to the angle information of each joint of the robot arm 3 in the current posture, the host 2 can determine the calibration coordinates of the chess point according to the posture of the robot arm 3.

[0030] As can be seen from the above, by setting a positioning pin 12 and a camera module 13 based on the shell 11 of the calibration device 1, and setting the camera module 13 in the positioning pin 12, it can not only ensure that the camera module 13 takes pictures along the direction of the chess-playing position, so that the host 2 can accurately determine the chess-playing position to be calibrated according to the image taken by the camera module 13, but also ensure that the positioning pin 12 calibrates the chess-playing point to be calibrated along the direction of the chess-playing position, so that the calibrated position of the positioning pin 12 is consistent with the position where the chess-playing robot drops the chess, which is convenient for the host 2 to accurately obtain the calibration coordinates of the chess-playing point according to the posture of the robot arm 3 when the positioning pin 12 is calibrated, thereby ensuring the accuracy of the calibration of the chess-playing robot.

[0031] In some embodiments, Figure 2 and Figure 3 As shown, the housing 11 has a receiving cavity 111 and a needle hole 112 communicating with the receiving cavity 111; The positioning needle 12 includes a needle seat 121 and a needle body 122 . The needle seat 121 is movably disposed in the accommodating cavity 111 along the optical axis direction of the camera module 13 . The needle body 122 is connected to the needle seat 121 and penetrates the needle hole 112 .

[0032] It is understandable that by arranging the needle seat 121 movably disposed in the accommodating cavity 111, the positioning needle 12 can have an extended state and a retracted state relative to the shell 11; wherein the first end of the needle body 122 is connected to the needle seat 121, the second end of the needle body 122 serves as a needle head, and an inner cavity 1221 for accommodating the camera module 13 is formed in the needle body 122.

[0033] The peripheral wall of the needle seat 121 and the inner wall of the accommodating cavity 111 may be configured to be connected in a threaded or sliding manner, so that the needle seat 121 can be movably disposed in the accommodating cavity 111 along the optical axis direction of the camera module 13 .

[0034] like Figure 2 As shown, when it is necessary to take a picture of the chess-playing position so that the host 2 can judge whether the chess-playing position needs to be calibrated based on the photographed image, the positioning pin 12 is in a retracted state. This design can prevent the needle tip of the positioning pin 12 from contacting the chessboard 5 when the robotic arm 3 drives the calibration device 1 to move.

[0035] like Figure 3As shown, when the chess-playing point needs to be calibrated, the positioning needle 12 is in an extended state so that the needle head of the positioning needle 12 can accurately contact the chess-playing point to be calibrated.

[0036] Furthermore, if Figure 4 and Figure 5 As shown, the needle seat 121 is provided with a contact 1201, and the needle seat 121 is rotatably disposed in the accommodating cavity 111 relative to the optical axis of the camera module 13; The inner wall of the accommodating cavity 111 is provided with a guide groove 1101 . The guide groove 1101 extends along a spiral track relative to the optical axis of the camera module 13 . The contact 1201 is movably disposed in the guide groove 1101 along the extension direction of the guide groove 1101 .

[0037] It is understandable that the needle seat 121 can be configured as a cylindrical structure, and the accommodating cavity 111 can be configured as a cylindrical inner cavity 1221. The diameter of the needle seat 121 matches the inner diameter of the accommodating cavity 111, that is, the peripheral wall of the needle seat 121 fits the inner wall of the accommodating cavity 111.

[0038] The contact 1201 is arranged on the peripheral wall of the needle seat 121. By rotating the positioning needle 12, the needle seat 121 will drive the contact 1201 to rotate relative to the housing 11. Since the guide groove 1101 extends along a spiral track, under the guidance of the guide groove 1101 to the contact 1201, the positioning needle 12 will rotate relative to the optical axis of the camera module 13 and move along the optical axis direction of the camera module 13, so as to realize the switching of the positioning needle 12 between the extended state and the retracted state relative to the housing 11.

[0039] Optionally, two contacts 1201 may be provided, and the two contacts 1201 are located at opposite sides of the needle seat 121 ; and two guide slots 1101 may be provided, and the two contacts 1201 are movably provided in the two guide slots 1101 in a one-to-one correspondence.

[0040] Specifically, the guide groove 1101 includes a first horizontal section, a spiral section, and a second horizontal section, which are connected in sequence. When the contact 1201 is in the first horizontal section, the positioning pin 12 will be stably in an extended state; when the contact 1201 is in the second horizontal section, the positioning pin 12 will be stably in a retracted state.

[0041] In some embodiments, Figure 2 and Figure 3 As shown, the calibration device 1 further includes an elastic member 14 , which is disposed in the accommodating cavity 111 and abuts between the inner wall of the accommodating cavity 111 and the needle seat 121 along the optical axis direction of the camera module 13 .

[0042] It is understandable that when the telescopic position of the positioning pin 12 relative to the housing 11 is adjusted, the stability of the arrangement of the positioning pin 12 relative to the housing 11 can be ensured based on the elastic force provided by the elastic member 14 .

[0043] Optionally, the elastic member 14 can be a spring, a first positioning groove is provided at one end of the needle seat 121 away from the needle body 122, a second positioning groove is provided at the end of the accommodating cavity 111 opposite to the needle seat 121, one end of the spring is inserted in the first positioning groove, and the other end is inserted in the second positioning groove.

[0044] In some embodiments, Figure 2 and Figure 3 As shown, the calibration device 1 also includes: a trigger switch 15, which is arranged in the shell 11 and electrically connected to the camera module 13; wherein, when the shell 11 is connected to the robotic arm 3, the trigger switch 15 is triggered by the robotic arm 3 to control the camera module 13 to start working.

[0045] Specifically, the trigger switch 15 can be a proximity switch or a travel switch. The trigger switch 15 can be configured to be electrically connected to the control module 16, and the control module 16 is electrically connected to the camera module 13. Among them, the control module 16 can be a circuit board, and the circuit board is arranged on the needle seat 121 of the positioning needle 12.

[0046] Furthermore, a threaded hole 1102 is provided at the first end of the shell 11, and the trigger switch 15 is provided at the bottom of the threaded hole 1102; the connecting part located at the execution end of the robot arm 3 can be configured as a threaded joint, which is used for threaded connection with the threaded hole 1102.

[0047] In actual application, when the housing 11 is not connected to the robot arm 3 through the threaded hole 1102 and the threaded joint, the trigger switch 15 will not be triggered, and the calibration device 1 will not start working, and the camera module 13 is in the off state. When the housing 11 is connected to the robot arm 3 through the threaded hole 1102 and the threaded joint, the trigger switch 15 will be triggered, and the calibration device 1 will start working, and the camera module 13 will be in the on state.

[0048] In some embodiments, Figure 1 and Figure 2 As shown, the calibration device 1 also includes: a control module 16, an indicator light 17 and a wireless communication module; the control module 16 is electrically connected to the trigger switch 15; the indicator light 17 and the wireless communication module are electrically connected to the control module 16 respectively, the indicator light 17 is used to indicate the working status of the calibration device 1, and the wireless communication module is used to send the image captured by the camera module 13 to the host 2.

[0049] Specifically, the indicator light 17 may be an RGB light; when the trigger switch 15 is not triggered, the indicator light 17 emits a blue light to indicate that the calibration device 1 is not started; when the trigger switch 15 is triggered, the indicator light 17 emits a green light to indicate that the calibration device 1 is started; when the calibration device 1 is working abnormally or the remaining power of the power module in the calibration device 1 is lower than the set value, the indicator light 17 emits a red light. According to the three-color light emitted by the indicator light 17, the user can accurately know the current working status of the calibration device 1.

[0050] At the same time, the wireless communication module can be any one of a Bluetooth module and a WiFi module; the calibration device 1 establishes a wireless communication connection with the host 2 of the chess-playing robot through the wireless communication module.

[0051] like Figure 1 As shown, the calibration device 1 also includes: a charging interface 18; the charging interface 18 is arranged on the surface of the shell 11 and is electrically connected to the power module, the power module is arranged in the shell 11, and is configured to be electrically connected to the control module 16 and the camera module 13 respectively.

[0052] Among them, the charging interface 18 can be a Type-c interface, and the power module can be a lithium battery pack.

[0053] In the second aspect, Figure 6 and Figure 7 As shown, the present invention also provides a chess-playing robot, comprising: a host 2 and a mechanical arm 3, wherein the mechanical arm 3 is arranged on the host 2, and the host 2 and the mechanical arm 3 are in communication connection; A picking component 4 is detachably connected to the mechanical arm 3 and is used to pick up chess pieces; As described above, the calibration device 1 has a housing 11 detachably connected to the robot arm 3 , and a camera module 13 of the calibration device 1 is communicatively connected to the host 2 .

[0054] It is understandable that the host 2 serves as a carrying platform for the robot 3, the base of the robot 3 is rotatably disposed on the host 2, and the execution end of the robot 3 is detachably connected to the picking component 4 or the calibration device 1 respectively.

[0055] like Figure 8 As shown, the picking component 4 can be a negative pressure suction nozzle, which is used to absorb or release chess pieces. The threaded joint on the robot arm 3 can be threadedly connected to the negative pressure suction nozzle or to the calibration device 1.

[0056] The robot arm 3 may be a multi-degree-of-freedom robot arm, such as a six-axis robot arm. Optionally, the robot arm 3 includes a large arm and a small arm, wherein the first end of the large arm is rotatably disposed on the host 2, the second end of the large arm is rotatably connected to the first end of the small arm, and the second end of the small arm is detachably connected to the picking component 4 or the calibration device 1.

[0057] At the same time, each joint of the robotic arm 3 is equipped with an angle sensor, and each angle sensor is respectively communicated with the host 2. The host 2 can control the rotation angle of each joint according to the angle information fed back by each angle sensor, thereby adjusting the posture of the robotic arm 3.

[0058] In practical applications, when the chess-playing robot needs to be calibrated, the execution end of the robot arm 3 is connected to the calibration device 1; when it is necessary to play chess based on the chess-playing robot, the execution end of the robot arm 3 is connected to the picking component 4.

[0059] Since the chess-playing robot includes a calibration device 1, and the specific structure of the calibration device 1 refers to the above embodiment, the chess-playing robot of this embodiment includes all the technical solutions of the above embodiment, and therefore has at least all the beneficial effects achieved by all the technical solutions of the above embodiment, which will not be described one by one here.

[0060] In the third aspect, Fig. 9 As shown, the present invention also provides a calibration method using the chess-playing robot as described above. The execution subject of the calibration method can be a server or a host of the chess-playing robot. The calibration method includes the following steps: Step 910, determining the chess point to be calibrated on the chessboard; It is understandable that the host of the chess-playing robot is usually equipped with a camera, which is used to capture pictures of the chess game on the chessboard; based on the pictures of the chess game, the host can understand that the chess-playing robot cannot accurately place the pieces at one or more chess-playing points, for example, the chess pieces are not accurately placed at the chess-playing points, then these chess-playing points can be determined as chess-playing points to be calibrated.

[0061] Of course, the user can also actively input selection instructions to the host according to actual needs to select the chess points that need to be calibrated.

[0062] Step 920, receiving the user's posture adjustment of the robotic arm until the needle tip of the positioning needle contacts the chess point to be calibrated.

[0063] It is understandable that a touch screen is provided on the host, which is used to display the chess-playing points to be calibrated; the user can send control instructions to the touch screen, and the host of the chess-playing robot responds to the control instructions to control the robotic arm to adjust its posture until the needle tip of the positioning needle contacts the chess-playing point to be calibrated.

[0064] Of course, the user can also manually adjust the posture of the robotic arm. When the calibration device is located above the chess-playing point to be calibrated, the positioning pin is controlled to be in an extended state, that is, the positioning pin extends downward and contacts the chess-playing point to be calibrated, so as to realize the calibration of the chess-playing point to be calibrated.

[0065] Step 930, obtaining the angle information of each joint of the robot arm, and determining the calibration coordinates of the chess point to be calibrated according to the angle information.

[0066] It is understandable that, since the coordinates of the chess-playing points correspond to the angle information of each joint of the robotic arm in the current posture, the host can determine the calibration coordinates of the chess-playing points according to the posture of the robotic arm.

[0067] From the above, it can be seen that the calibration method shown in the present invention can, with the assistance of the user, use a positioning pin to calibrate the chess-playing points to be calibrated, so that the calibrated position of the positioning pin is consistent with the position where the chess-playing robot places the pieces, which makes it convenient for the host to accurately obtain the calibration coordinates of the chess-playing points according to the posture of the robotic arm when the positioning pin performs calibration, thereby ensuring the accuracy of the calibration of the chess-playing robot.

[0068] Furthermore, the step of determining the chess point to be calibrated on the chessboard shown in this embodiment includes: S1, receiving a first input of the chess-playing robot; S2, in response to the first input, according to the preset coordinate information, controlling the mechanical arm to drive the calibration device to move to the position of each chess point on the chessboard, and controlling the camera module to capture images of each chess point; S3, comparing the image captured by the camera module with the standard image, and obtaining the chess-playing points to be calibrated among the chess-playing points.

[0069] It is understandable that the user can give a first input to the touch screen on the host by pressing a virtual button or sliding input; in response to the first input, the host will change the angles of each joint of the robotic arm according to the coordinate information stored when the chess-playing robot leaves the factory, so as to control the working state of the robotic arm, and then the robotic arm drives the calibration device to move to the position of each chess-playing point on the corresponding chessboard, so as to verify the coordinates of each chess-playing point based on the calibration device.

[0070] If the image captured by the camera module is compared with the standard picture and it is determined that the image captured by the camera module completely overlaps with the standard picture, the current chess position verification is passed.

[0071] After the previous chess-playing point is verified, the robotic arm drives the calibration device to move to the position corresponding to the next chess-playing point, and controls the camera module to capture the image of the current chess-playing point; the host continues to compare the image captured by the camera module with the standard picture. If the current chess-playing point fails the verification, the current chess-playing point is determined to be the chess-playing point to be calibrated, and the positioning is used to calibrate the chess-playing point to be calibrated.

[0072] like Fig.10As shown, for Go, the image 100 of each chess position captured by the camera module is an image with a "cross" pattern, and the standard image 200 is a picture with a "cross" mark pre-stored by the host.

[0073] Specifically, the step of comparing the image captured by the camera module with the standard picture to obtain the chess playing points to be calibrated among the various chess playing points includes: superimposing the image captured by the camera module with the standard picture; In the case where the "cross" mark on at least part of the standard image is outside the area where the "cross" pattern is located in the image, the chess-playing point corresponding to the image is determined to be the chess-playing point to be calibrated.

[0074] like Fig.11 As shown, the image 100 captured by the camera module completely overlaps with the standard image 200, and at this time, it is determined that the calibration coordinates of the current chess point have been verified.

[0075] like Fig.12 As shown, the "cross" mark on the standard image 200 is within the area where the "cross" pattern is located in the image 100, but the "cross" mark deviates from the center of the "cross" pattern. At this time, it can also be determined that the calibration coordinates of the current chess point have been verified.

[0076] like Fig.13 As shown, a portion of the "cross" mark on the standard image 200 is outside the area where the "cross" pattern in the image 100 is located. At this time, it is determined that the calibration coordinate verification of the current chess point has failed.

[0077] It should be pointed out here that when the chess-playing robot is turned on for the first time and it is determined that the calibration device is installed at the execution end of the robot arm, the verification method shown in this embodiment can use the above steps to calibrate the chess-playing robot.

[0078] Of course, even if the chess-playing robot is not turned on and running for the first time, the user can input control instructions to the host according to actual needs to control the chess-playing robot to start the calibration program; in actual applications, the coordinates of all chess points (361) on the chessboard can be calibrated, and the coordinates of some chess points can also be calibrated.

[0079] In some embodiments, after determining the calibration coordinates of the chess point to be calibrated, the method further includes: Obtaining the position coordinates of multiple chess points around the calibration coordinates, where the position coordinates of the multiple chess points are connected in sequence to form a square area; Determine the coordinates of the geometric center of the square area; When the calibration coordinates deviate from the coordinates of the geometric center by a distance exceeding a preset value, the calibration coordinates of the chess point to be calibrated are re-determined.

[0080] It is understandable that when the user determines that the calibrated chess point needs to be recalibrated, the calibration procedure will be started. The host will display the chess point that failed the verification in the previous step, guide the user to position the positioning needle to the chess point, and click the confirmation button; the host will convert the angle information of each joint of the robot arm into the coordinate information corresponding to the chess point.

[0081] In order to avoid users from calibrating the chess-playing points incorrectly, after obtaining the calibration coordinates of the chess-playing points, the chess-playing robot will check the accuracy of the calibration coordinates.

[0082] For example, for Fig.14 There is a chess point at the center of the image. There are 8 chess points around it. The coordinates of these 8 chess points are (1, 1), (1, 2), (1, 3), (2, 1), (2, 3), (3, 1), (3, 2) and (3, 3). The coordinates of the geometric center of the square area formed by these 8 chess points are (2, 2).

[0083] If the calibration coordinates calculated according to the posture of the robot arm are distributed near the coordinates (2, 2), for example, the calibration coordinates are (2.1, 2.2) or (2, 2.1), then the result of the calibration coordinates can be judged to be normal; if the calibration coordinates appear to be (2, 4) or (1, 2), then the result of the calibration coordinates can be judged to be abnormal, and the calibration method of steps 910 to 930 needs to be used to recalibrate the coordinates of the chess-playing points. When all the marked chess-playing points are recalibrated, the calibration is completed.

[0084] The preset value of the distance by which the calibration coordinate deviates from the coordinate of the geometric center can be set to 0.5-1 times the width of a chess grid on the chessboard.

[0085] In some embodiments, after determining the calibration coordinates of the chess point to be calibrated, the method further includes: receiving a second input from the chess-playing robot; In response to the second input, the calibration coordinates of each calibrated chess position are reviewed and calibrated according to the calibration method as described above.

[0086] It is understandable that the user can give the second input to the touch screen on the host by pressing a virtual key or sliding input; the host responds to the second input and starts a review and calibration procedure for the calibration coordinates of each calibrated chess point.

[0087] After calibrating the chess-playing points to be calibrated and obtaining the corresponding calibration coordinates, the calibration method of steps S1 to S3 above can be used to review the coordinates of each chess-playing point, and recalibrate the chess-playing points whose calibration coordinates show abnormalities, until the calibration coordinates of all chess-playing points show normal results.

[0088] Fig.15 An example of a physical structure diagram of an electronic device is shown in FIG. Fig.15 As shown, the electronic device may include: a processor 151, a communications interface 152, a memory 153 and a communication bus 154, wherein the processor 151, the communications interface 152 and the memory 153 communicate with each other through the communication bus 154. The processor 151 may call the logic instructions in the memory 153 to execute a calibration method for a chess-playing robot, the calibration method comprising: determining a chess-playing point to be calibrated on a chessboard; receiving a posture adjustment of the robot arm by a user until the needle of the positioning needle contacts the chess-playing point to be calibrated; obtaining the angle information of each joint of the robot arm, and determining the calibration coordinates of the chess-playing point to be calibrated according to the angle information.

[0089] In addition, the logic instructions in the above-mentioned memory 153 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the 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 method described in 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.

[0090] On the other hand, the present invention also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the calibration method of the chess-playing robot provided by the above methods. The calibration method includes: determining the chess-playing points to be calibrated on the chessboard; receiving the user's posture adjustment of the robotic arm until the needle tip of the positioning pin contacts the chess-playing points to be calibrated; obtaining the angle information of each joint of the robotic arm, and determining the calibration coordinates of the chess-playing points to be calibrated based on the angle information.

[0091] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, it is implemented to execute the calibration method of the chess-playing robot provided by the above-mentioned methods. The calibration method includes: determining the chess-playing points to be calibrated on the chessboard; receiving the user's posture adjustment of the robotic arm until the needle tip of the positioning pin contacts the chess-playing points to be calibrated; obtaining the angle information of each joint of the robotic arm, and determining the calibration coordinates of the chess-playing points to be calibrated based on the angle information.

[0092] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0093] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0094] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A calibration device, applied to a chess-playing robot, the chess-playing robot comprising a host and a mechanical arm, the mechanical arm being arranged on the host, characterized in that: The calibration device comprises: A housing, used for detachably connecting with the mechanical arm; A positioning needle is arranged on the housing and extends along the direction of the chess-playing robot to place a chess piece; the positioning needle has an inner cavity and a light-through hole connected to the inner cavity, and the light-through hole is arranged on the needle head of the positioning needle; A camera module is disposed in the inner cavity and is in communication connection with the host; a lens of the camera module is disposed opposite to the light opening; The camera module is used to capture images of chess points on the chessboard, so that the host can determine the chess points to be calibrated according to the comparison results between the images and the standard pictures; The needle is used to contact the chess-playing point to be calibrated, so that the host can determine the calibration coordinates of the chess-playing point according to the posture of the mechanical arm.

2. The calibration device according to claim 1, characterized in that: The shell has a receiving cavity and a needle hole communicating with the receiving cavity; The positioning needle comprises a needle seat and a needle body. The needle seat is movably arranged in the accommodating cavity along the optical axis direction of the camera module. The needle body is connected to the needle seat and penetrates the needle hole.

3. The calibration device according to claim 2, characterized in that: The needle seat is provided with a contact, and the needle seat is rotatably arranged in the accommodating cavity relative to the optical axis of the camera module; The inner wall of the accommodating cavity is provided with a guiding groove, the guiding groove extends along a spiral track relative to the optical axis of the camera module, and the contact is movably arranged in the guiding groove along the extending direction of the guiding groove.

4. The calibration device according to claim 3, characterized in that: Also includes: The elastic member is arranged in the accommodating cavity and abuts between the inner wall of the accommodating cavity and the needle seat along the optical axis direction of the camera module.

5. The calibration device according to any one of claims 1 to 4, characterized in that: Also includes: A trigger switch, disposed on the housing and electrically connected to the camera module; Wherein, when the shell is connected to the mechanical arm, the trigger switch is triggered by the mechanical arm to control the camera module to start working.

6. The calibration device according to claim 5, characterized in that: Also includes: A control module, electrically connected to the trigger switch; An indicator light and a wireless communication module are electrically connected to the control module respectively. The indicator light is used to indicate the working status of the calibration device. The wireless communication module is used to send the image captured by the camera module to the host.

7. A chess-playing robot, characterized in that: include: A host and a mechanical arm, wherein the mechanical arm is arranged on the host, and the host and the mechanical arm are in communication connection; A picking component is detachably connected to the mechanical arm and is used to pick up chess pieces; According to the calibration device as described in any one of claims 1 to 6, the shell of the calibration device is detachably connected to the robotic arm, and the camera module of the calibration device is communicatively connected to the host.

8. A method for calibrating a chess-playing robot as claimed in claim 7, characterized in that: The mechanical arm is connected to a housing of the calibration device, and the calibration method comprises: Determine the chess point to be calibrated on the chessboard; Receiving a user's posture adjustment of the robotic arm until the tip of the positioning needle contacts the chess point to be calibrated; The angle information of each joint of the robot arm is obtained, and the calibration coordinates of the chess point to be calibrated are determined according to the angle information.

9. The calibration method according to claim 8, characterized in that: The step of determining the chess point to be calibrated on the chessboard comprises: Receiving a first input to the chess-playing robot; In response to the first input, according to the preset coordinate information, the mechanical arm is controlled to drive the calibration device to move to the position corresponding to each chess-playing point on the chessboard, and the camera module is controlled to capture images of each chess-playing point; The image captured by the camera module is compared with the standard image to obtain the chess-playing points to be calibrated among the chess-playing points.

10. The calibration method according to claim 9, characterized in that: The step of comparing the image captured by the camera module with the standard image to obtain the chess playing points to be calibrated among the chess playing points includes: Overlaying the image captured by the camera module with a standard image; In the case where the "cross" mark on at least part of the standard image is outside the area where the "cross" pattern in the image is located, the chess-playing point corresponding to the image is determined as the chess-playing point to be calibrated.

11. The calibration method according to claim 8, characterized in that: After determining the calibration coordinates of the chess point to be calibrated, the method further includes: Acquire position coordinates of a plurality of chess-playing points around the calibration coordinates, wherein the position coordinates of the plurality of chess-playing points are sequentially connected to form a square area; Determine the coordinates of the geometric center of the square area; In the case where the distance that the calibration coordinate deviates from the coordinate of the geometric center exceeds a preset value, the calibration coordinate of the chess point to be calibrated is re-determined.

12. The calibration method according to claim 9 or 10, characterized in that: After determining the calibration coordinates of the chess point to be calibrated, the method further includes: receiving a second input to the chess-playing robot; In response to the second input, the calibration coordinates of each of the chess positions that have been calibrated are reviewed and calibrated according to the calibration method according to claim 9 or 10.

Citation Information

Patent Citations

  • Chess playing robot

    CN103252077A

  • Computer vision-based human-computer gobang game solution

    CN106484081A

  • Control method of gobang robot

    CN107813321A

  • Global vision-based chess playing robot and control method thereof

    CN111136669A

  • Chess placing method and device, chess playing robot and computer storage medium

    CN113878579A