Control method and device of mechanical arm, electronic device and storage medium
Through the robotic arm control method, high-definition cameras and pressure sensors are used to determine the coordinate information of the container, realizing efficient and safe loading and unloading of containers at the port terminal, and solving the problems of low loading and unloading accuracy and efficiency in the existing technology.
Patent Information
- Application Number
- CN202410371619.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-29
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-03-29
AI Technical Summary
It is difficult to load and unload containers at port terminals efficiently and safely with existing technology, and there are problems with low accuracy and efficiency.
The robot arm control method is used to obtain the overall image and top image of the container through the combination of high-definition cameras and pressure sensors, determine the corner point coordinate information, and control the grabbing device to accurately grab and move based on this information to ensure safe loading and unloading of the container.
It has improved the accuracy and efficiency of container loading and unloading operations and ensured the safety and intelligence of the loading and unloading process.
Smart Images

Figure CN118163103B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of robotic arms, and in particular to a control method for a robotic arm, a control device for a robotic arm, an electronic device and a storage medium. Background Art
[0002] With the development of the Internet of Things, the robotic arm industry will be more affected. This technology can effectively reduce the operating costs of machinery and equipment, greatly reduce the investment risks of enterprises, improve the efficiency of enterprises, and has great market potential and development prospects. Therefore, how to use robotic arms to load and unload containers at port terminals is a technical problem that needs to be solved urgently. Summary of the invention
[0003] The present invention aims to solve at least one of the technical problems existing in the prior art or related art.
[0004] To this end, a first aspect of the present invention proposes a control method for a robotic arm.
[0005] A second aspect of the present invention provides a control device for a robot arm.
[0006] A third aspect of the present invention provides an electronic device.
[0007] A fourth aspect of the present invention provides a storage medium.
[0008] In view of this, according to the first aspect of the present invention, a control method for a robotic arm is proposed, wherein the robotic arm includes a grasping device, a first camera device and a second camera device; the control method for the robotic arm includes: obtaining first image information taken by the second camera device; determining first coordinate information of a corner point of a container based on the first image information, wherein the corner point is located at the top of the container; controlling the grasping device to move to the top of the container based on the first coordinate information; obtaining second image information taken by the first camera device; determining second coordinate information of the corner point based on the second image information; controlling the grasping device to grasp the container based on the second coordinate information; obtaining third coordinate information of a target area; and controlling the robotic arm to move the container to the target area based on the third coordinate information.
[0009] The control method of the mechanical arm provided by the present invention, wherein the mechanical arm includes a grasping device, the grasping device can grasp the container, specifically, the grasping device can be 4 grippers. The mechanical arm also includes a first camera device, the first camera device is arranged on the grasping device, specifically, the first camera device can be a high-definition camera, which can be arranged at the end of the gripper, and can vertically shoot the ground. Further, the mechanical arm also includes a second camera device, which is arranged on the side of the mechanical arm. The control method of the mechanical arm includes: firstly obtaining the first image information taken by the second camera device, since the second camera device is located on the side of the mechanical arm, the image information taken by the second camera device is the overall image of the container, that is, the first image information is the overall image information of the container. Then, according to the obtained first image information, the first coordinate information of the corner point of the container is determined, wherein the corner point refers to the angle located at the top of the container, that is, after obtaining the first image information, the first coordinate information of the four corner points on the top of the container is analyzed by processing and analyzing the first image information, and since the first image information is the overall image of the container, the obtained first coordinate information of the corner point is rough coordinate information. Furthermore, after obtaining the first coordinate information, the grasping device is controlled to move according to the first coordinate information, thereby moving the grasping device to the top of the container, thereby facilitating the subsequent grasping of the container. Furthermore, the second image information taken by the first camera device is obtained. The first camera device is located at the end of the grasping device, and since the grasping device is located at the top of the container, the second image information is the image information of the top of the container, and then the second image information is analyzed and processed to determine the second coordinate information of the corner point. Since the second image information is the image information of the top of the container, it can be similar to the top view of the container. Therefore, the second coordinate information of the corner point obtained at this time is fine coordinate information, and then the grasping device is controlled to start grasping the container according to the second coordinate information. Furthermore, it is also necessary to obtain the third coordinate information of the target area. The target area refers to the area where the container is placed after being grasped. It can be set by the user or automatically divided by the robotic arm. Finally, the robotic arm is controlled according to the third coordinate information to place the container in the target area, thereby achieving the technical effect of using the robotic arm to load and unload containers at the port terminal. The robotic arm control method provided by the present invention determines the coordinate information of the corner point through the first image information and the second image information, and then controls the robotic arm to perform corresponding container loading and unloading tasks according to the obtained coordinate information, thereby making the loading and unloading operations more precise, efficient and intelligent.
[0010] The control method of the above-mentioned robot arm according to the present invention may also have the following technical features:
[0011] In some technical solutions, optionally, the robotic arm also includes a pressure sensor; the step of controlling the grasping device to grasp the container according to the second coordinate information includes: controlling the grasping device to move to the corner point of the container according to the second coordinate information; obtaining the pressure value of the pressure sensor; and controlling the grasping device to grasp the container when the pressure value reaches a preset pressure threshold.
[0012] In this technical solution, the robotic arm also includes a pressure sensor, and the pressure sensor is located in the gripping device. Specifically, when the gripping device is a gripper, the pressure sensor is embedded in the side of the gripper. The step of controlling the gripping device to grip the container according to the second coordinate information includes: first, controlling the gripping device to move to the corner point of the container according to the second coordinate information, and then obtaining the pressure value output by the pressure sensor because the pressure sensor is arranged in the gripping device, and when the pressure value reaches a preset pressure threshold, controlling the gripping device to start gripping the container. The preset threshold can be determined by ensuring the maximum weight of a fully loaded container to be safely gripped. The present invention ensures the safety of the robotic arm during loading and unloading of containers by starting to grip the container only when the pressure value reaches the preset threshold.
[0013] In some technical solutions, optionally, the step of determining first coordinate information of corner points of the container based on the first image information includes: acquiring a corner point detection model; and determining the first coordinate information of the corner points of the container based on the first image information and the corner point detection model.
[0014] In this technical solution, the step of determining the first coordinate information of the corner point of the container according to the first image information includes: first obtaining a corner point detection model, the corner point detection model is used to detect and locate the coordinate information of the four top corner points of the container, and the corner point detection model is a trained neural network model, which is obtained by training the neural network model and a large amount of labeled container corner point data. Further, after obtaining the corner point detection model, the first image information is input into the corner point detection model, so as to finally obtain the first coordinate information of the corner point. Further, in the process of determining the second coordinate information of the corner point according to the second image information, the corner point detection model is also first obtained, and then the second image is input into the corner point detection model, so as to obtain the second coordinate information. By combining the robotic arm with the corner point detection model, the operation is made more accurate.
[0015] In some technical schemes, optionally, the control method of the robotic arm also includes: obtaining a cargo number recognition model; determining the cargo number of the container based on the first image information and the cargo number recognition model; determining the fourth coordinate information of the container based on the first coordinate information of the corner point; and recording the cargo number, fourth coordinate information and third coordinate information of the container.
[0016] In the technical solution, the control method of the robot arm also includes: obtaining a cargo number recognition model, which is obtained by collecting and annotating a large number of Chinese characters, English, numbers, symbols and other data to train a neural network model. The cargo number recognition model can recognize the cargo number of the container in the first image information. Specifically, the first image information can be input into the cargo number recognition model, thereby obtaining the cargo number of the captured container. Further, the fourth coordinate information of the container is determined according to the first coordinate information of the corner point, and the position of the container before being captured is obtained by calculating the first coordinate information. Finally, the cargo number, the fourth coordinate information and the third coordinate information of the container are recorded, that is, the cargo number of the container, the position before being captured, and the position after being captured are stored. By storing the cargo number of the container, the position before being captured, and the position after being captured, subsequent inquiries are facilitated.
[0017] According to a second aspect of the present invention, a control device for a robotic arm is proposed, the robotic arm includes a grasping device, a first camera device and a second camera device; the control device for the robotic arm includes: a first acquisition module, the first acquisition module is used to acquire first image information taken by the second camera device; a first determination module, the first determination module is used to determine first coordinate information of a corner point of a container according to the first image information, wherein the corner point is located at the top of the container; a first control module, the first control module is used to control the grasping device to move to the top of the container according to the first coordinate information; a second acquisition module, the second acquisition module is used to acquire second image information taken by the first camera device; a second determination module, the second determination module is used to determine second coordinate information of a corner point of the container according to the second image information; a second control module, the second control module is used to control the grasping device to grasp the container according to the second coordinate information; a third acquisition module, the third acquisition module is used to acquire third coordinate information of a target area; a third control module, the third control module is used to control the robotic arm to move the container to the target area according to the third coordinate information.
[0018] The present invention provides a robot arm control device, wherein the robot arm includes a gripping device, and the gripping device can grip the container. Specifically, the gripping device can be 4 grippers. The robot arm also includes a first camera device, and the first camera device is arranged on the gripping device. Specifically, the first camera device can be a high-definition camera, which can be arranged at the end of the gripper and can vertically shoot the ground. Further, the robot arm also includes a second camera device, which is arranged on the side of the robot arm. The control device of the robot arm mainly includes: a first acquisition module, a first determination module, a first control module, a second acquisition module, a second determination module, a second control module, a third acquisition module and a third control module. Among them, the first acquisition module first acquires the first image information taken by the second camera device. Since the second camera device is located on the side of the robot arm, the image information taken by the second camera device is the overall image of the container, that is, the first image information is the overall image information of the container. Then the first determination module determines the first coordinate information of the corner point of the container according to the obtained first image information, wherein the corner point refers to the angle located at the top of the container, that is, after obtaining the first image information, the first coordinate information of the four corner points at the top of the container is analyzed by processing and analyzing the first image information, and since the first image information is the overall image of the container, the obtained first coordinate information of the corner points is rough coordinate information. Further, after obtaining the first coordinate information, the first control module controls the grabbing device to move according to the first coordinate information, thereby moving the grabbing device to the top of the container, thereby facilitating the subsequent grabbing of the container. Further, the second acquisition module acquires the second image information taken by the first camera device, the first camera device is located at the end of the grabbing device, and since the grabbing device is located at the top of the container, the second image information is the image information of the top of the container, and then the second image information is analyzed and processed to determine the second coordinate information of the corner point, since the second image information is the image information of the top of the container, it can be similar to the top view of the container, so the second coordinate information of the corner point obtained at this time is fine coordinate information, and then the second control module controls the grabbing device to start grabbing the container according to the second coordinate information. Further, the third acquisition module also needs to acquire the third coordinate information of the target area, the target area refers to the area where the container is placed after being grabbed, which can be set by the user or can be automatically divided by the robot arm. Finally, the third control module controls the robot arm to place the container in the target area according to the third coordinate information, thereby realizing the technical effect of using the robot arm to load and unload the container at the port terminal, and the robot arm control method provided by the present invention determines the coordinate information of the corner point through the first image information and the second image information, and then controls the robot arm to perform the corresponding container loading and unloading work according to the obtained coordinate information, so that the loading and unloading operation is more accurate, efficient and intelligent.
[0019] In some technical solutions, optionally, the robotic arm also includes a pressure sensor; the second control module includes: a fourth control module, the fourth control module is used to control the grasping device to move to the corner point of the container according to the second coordinate information; a fourth acquisition module, the fourth acquisition module is used to obtain the pressure value of the pressure sensor; the fifth control module, the fifth control module is used to control the grasping device to grasp the container based on when the pressure value reaches a preset pressure threshold.
[0020] In this technical solution, the robotic arm also includes a pressure sensor, and the pressure sensor is located in the gripping device. Specifically, when the gripping device is a gripper, the pressure sensor is embedded in the side of the gripper. Among them, the second control module includes: a fourth control module, a fourth acquisition module and a fifth control module. Specifically, the fourth control module first controls the gripping device to move to the corner point of the container according to the second coordinate information, and then because the pressure sensor is arranged in the gripping device, the fourth acquisition module obtains the pressure value output by the pressure sensor, and the fifth control module is used to control the gripping device to start gripping the container when the pressure value reaches a preset pressure threshold. Among them, the preset threshold can be determined by ensuring the maximum weight of a fully loaded container to be safely gripped. The present invention ensures the safety of the robotic arm in the process of loading and unloading containers by starting to grip the container only when the pressure value reaches the preset threshold.
[0021] In some technical solutions, optionally, the first determination module includes: a fifth acquisition module, the fifth acquisition module is used to acquire a corner point detection model; and a third determination module, the third determination module is used to determine first coordinate information of a corner point of the container based on the first image information and the corner point detection model.
[0022] In this technical solution, the first determination module includes: a fifth acquisition module and a third determination module. Among them, the fifth acquisition module first obtains the corner point detection model, which is used to detect and locate the coordinate information of the four top corner points of the container. The corner point detection model is a trained neural network model, which is obtained by training the neural network model and a large amount of labeled container corner point data. Further, after obtaining the corner point detection model, the third determination module inputs the first image information into the corner point detection model, thereby finally obtaining the first coordinate information of the corner point. Furthermore, in the process of determining the second coordinate information of the corner point according to the second image information, the corner point detection model is also first obtained, and then the second image is input into the corner point detection model to obtain the second coordinate information. By combining the robotic arm with the corner point detection model, the operation is made more accurate.
[0023] In some technical schemes, optionally, the control device of the robotic arm also includes: a sixth acquisition module, which is used to acquire a cargo number recognition model; a fourth determination module, which is used to determine the cargo number of the container based on the first image information and the cargo number recognition model; a fifth determination module, which is used to determine the fourth coordinate information of the container based on the first coordinate information of the corner point; and a recording module, which is used to record the cargo number, fourth coordinate information and third coordinate information of the container.
[0024] In this technical solution, the control device of the mechanical arm also includes: a sixth acquisition module, a fourth determination module, a fifth determination module and a recording module. Among them, the sixth acquisition module acquires a cargo number recognition model, which is obtained by training a neural network model by collecting and annotating a large number of Chinese characters, English, numbers and symbols. The cargo number recognition model can recognize the cargo number of the container in the first image information. Specifically, the fourth determination module inputs the first image information into the cargo number recognition model, thereby obtaining the cargo number of the captured container. Further, the fifth determination module determines the fourth coordinate information of the container according to the first coordinate information of the corner point, and obtains the position of the container before being captured by calculating the first coordinate information. Finally, the recording module records the cargo number, the fourth coordinate information and the third coordinate information of the container, that is, the cargo number of the container, the position before being captured and the position after being captured are stored. By storing the cargo number, the position before being captured and the position after being captured, subsequent inquiries are facilitated.
[0025] According to a third aspect of the present invention, an electronic device is proposed, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the steps of a method for controlling a robotic arm as described above are implemented.
[0026] The electronic device provided by the present invention, in which the processor implements the steps of the above-mentioned method for controlling the robotic arm when executing a computer program, can achieve the technical effects of any of the above-mentioned technical solutions, which will not be repeated here.
[0027] According to a fourth aspect of the present invention, a storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the method for controlling a robotic arm as described above are implemented.
[0028] The storage medium provided by the present invention implements the steps of the above-mentioned method for controlling the robotic arm when the computer program is executed by the processor, and can achieve the technical effects of any of the above-mentioned technical solutions, which will not be repeated here.
[0029] Additional aspects and advantages of the present invention will become apparent from the following description or may be learned by practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:
[0031] Figure 1 One of the flow charts of a method for controlling a robot arm according to an embodiment of the present invention is shown;
[0032] Figure 2 A schematic diagram showing a process of controlling a grasping device to grasp a container according to second coordinate information in a method for controlling a mechanical arm according to an embodiment of the present invention;
[0033] Figure 3 A schematic diagram showing a flow chart of determining first coordinate information of a corner point of a container according to first image information in a method for controlling a mechanical arm according to an embodiment of the present invention;
[0034] Figure 4 A second flow chart of a method for controlling a robot arm according to an embodiment of the present invention is shown;
[0035] Figure 5 One of the schematic block diagrams of a control device for a robot arm according to an embodiment of the present invention is shown;
[0036] Figure 6 A schematic block diagram of a second control module according to an embodiment of the present invention is shown;
[0037] Figure 7 A schematic block diagram of a first determination module according to an embodiment of the present invention is shown;
[0038] Figure 8 A second schematic block diagram showing a control device for a robot arm according to an embodiment of the present invention;
[0039] Fig. 9 One of the working process schematic diagrams of a high-definition camera module according to an embodiment of the present invention is shown;
[0040] Fig.10 A top view of a container showing one embodiment of the present invention;
[0041] Fig.11 A second schematic diagram showing the working process of a high-definition camera module according to an embodiment of the present invention;
[0042] Fig.12 An overall view of a container showing an embodiment of the present invention;
[0043] Fig.13A schematic diagram showing the working process of the intelligent terminal module and the display terminal module according to an embodiment of the present invention is shown;
[0044] Fig.14 A schematic block diagram of an electronic device according to an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0045] In order to more clearly understand the above-mentioned purpose, features and advantages of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that the embodiments of the present invention and the features in the embodiments can be combined with each other without conflict.
[0046] In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention may also be implemented in other ways different from those described herein. Therefore, the protection scope of the present invention is not limited to the specific embodiments disclosed below.
[0047] Figure 1 One of the flow charts of a control method of a robotic arm according to an embodiment of the present invention is shown. The robotic arm includes a grasping device, a first camera device and a second camera device; the control method of the robotic arm includes:
[0048] Step 102: Acquire first image information captured by a second camera device;
[0049] Step 104: determining first coordinate information of a corner point of the container according to the first image information, wherein the corner point is located at the top of the container;
[0050] Step 106: Control the grabbing device to move to the top of the container according to the first coordinate information;
[0051] Step 108: Acquire second image information captured by the first camera device;
[0052] Step 110: Determine second coordinate information of the corner point according to the second image information;
[0053] Step 112: Controlling the grabbing device to grab the container according to the second coordinate information;
[0054] Step 114: Obtain the third coordinate information of the target area;
[0055] Step 116: Control the robotic arm to move the container to the target area according to the third coordinate information.
[0056] The control method of the mechanical arm provided by the present invention, wherein the mechanical arm includes a grasping device, the grasping device can grasp the container, specifically, the grasping device can be 4 grippers. The mechanical arm also includes a first camera device, the first camera device is arranged on the grasping device, specifically, the first camera device can be a high-definition camera, which can be arranged at the end of the gripper, and can vertically shoot the ground. Further, the mechanical arm also includes a second camera device, which is arranged on the side of the mechanical arm. The control method of the mechanical arm includes: firstly obtaining the first image information taken by the second camera device, since the second camera device is located on the side of the mechanical arm, the image information taken by the second camera device is the overall image of the container, that is, the first image information is the overall image information of the container. Then, according to the obtained first image information, the first coordinate information of the corner point of the container is determined, wherein the corner point refers to the angle located at the top of the container, that is, after obtaining the first image information, the first coordinate information of the four corner points on the top of the container is analyzed by processing and analyzing the first image information, and since the first image information is the overall image of the container, the obtained first coordinate information of the corner point is rough coordinate information. Furthermore, after obtaining the first coordinate information, the grasping device is controlled to move according to the first coordinate information, thereby moving the grasping device to the top of the container, thereby facilitating the subsequent grasping of the container. Furthermore, the second image information taken by the first camera device is obtained. The first camera device is located at the end of the grasping device, and since the grasping device is located at the top of the container, the second image information is the image information of the top of the container, and then the second image information is analyzed and processed to determine the second coordinate information of the corner point. Since the second image information is the image information of the top of the container, it can be similar to the top view of the container. Therefore, the second coordinate information of the corner point obtained at this time is fine coordinate information, and then the grasping device is controlled to start grasping the container according to the second coordinate information. Furthermore, it is also necessary to obtain the third coordinate information of the target area. The target area refers to the area where the container is placed after being grasped. It can be set by the user or automatically divided by the robotic arm. Finally, the robotic arm is controlled according to the third coordinate information to place the container in the target area, thereby achieving the technical effect of using the robotic arm to load and unload containers at the port terminal. The robotic arm control method provided by the present invention determines the coordinate information of the corner point through the first image information and the second image information, and then controls the robotic arm to perform corresponding container loading and unloading tasks according to the obtained coordinate information, thereby making the loading and unloading operations more precise, efficient and intelligent.
[0057] Figure 2A schematic diagram of a process of controlling a grabbing device to grab a container according to second coordinate information in a control method of a mechanical arm according to an embodiment of the present invention is shown. The mechanical arm further includes a pressure sensor; the step of controlling the grabbing device to grab a container according to the second coordinate information includes:
[0058] Step 202: Control the grabbing device to move to a corner point of the container according to the second coordinate information;
[0059] Step 204: Obtain the pressure value of the pressure sensor;
[0060] Step 206: When the pressure value reaches a preset pressure threshold, the grabbing device is controlled to grab the container.
[0061] In this embodiment, the robotic arm further includes a pressure sensor, and the pressure sensor is located in the gripping device. Specifically, when the gripping device is a gripper, the pressure sensor is embedded in the side of the gripper. The step of controlling the gripping device to grip the container according to the second coordinate information includes: first, controlling the gripping device to move to the corner point of the container according to the second coordinate information, and then obtaining the pressure value output by the pressure sensor because the pressure sensor is arranged in the gripping device, and when the pressure value reaches a preset pressure threshold, controlling the gripping device to start gripping the container. The preset threshold can be determined by ensuring the maximum weight of a fully loaded container to be gripped safely. The present invention ensures the safety of the robotic arm in the process of loading and unloading containers by starting to grip the container only when the pressure value reaches the preset threshold.
[0062] Figure 3 A schematic diagram of a process of determining first coordinate information of a corner point of a container according to first image information in a control method of a mechanical arm according to an embodiment of the present invention is shown. The step of determining first coordinate information of a corner point of a container according to first image information includes:
[0063] Step 302: Obtain a corner point detection model;
[0064] Step 304: Determine first coordinate information of the corner points of the container according to the first image information and the corner point detection model.
[0065] In this embodiment, the step of determining the first coordinate information of the corner point of the container according to the first image information includes: first obtaining a corner point detection model, the corner point detection model is used to detect and locate the coordinate information of the four top corner points of the container, and the corner point detection model is a trained neural network model, which is obtained by training the neural network model and a large amount of labeled container corner point data. Further, after obtaining the corner point detection model, the first image information is input into the corner point detection model, so as to finally obtain the first coordinate information of the corner point. Further, in the process of determining the second coordinate information of the corner point according to the second image information, the corner point detection model is also first obtained, and then the second image is input into the corner point detection model, so as to obtain the second coordinate information. By combining the robotic arm with the corner point detection model, the operation is made more accurate.
[0066] Figure 4 The second flow chart of the control method of the robot arm according to an embodiment of the present invention is shown. The control method of the robot arm further includes:
[0067] Step 402: Obtain a product number recognition model;
[0068] Step 404: determining the cargo number of the container according to the first image information and the cargo number recognition model;
[0069] Step 406: determining the fourth coordinate information of the container according to the first coordinate information of the corner point;
[0070] Step 408: Record the cargo number, fourth coordinate information and third coordinate information of the container.
[0071] In this embodiment, the control method of the mechanical arm also includes: obtaining a cargo number recognition model, which is obtained by training a neural network model by collecting and labeling a large number of Chinese characters, English, numbers, symbols and other data, and the cargo number recognition model can recognize the cargo number of the container in the first image information. Specifically, the first image information can be input into the cargo number recognition model, so as to obtain the cargo number of the grabbed container. Further, the fourth coordinate information of the container is determined according to the first coordinate information of the corner point, and the position of the container before being grabbed is obtained by calculating the first coordinate information. Finally, the cargo number, the fourth coordinate information and the third coordinate information of the container are recorded, that is, the cargo number of the container, the position before being grabbed and the position after being grabbed are stored. By storing the cargo number of the container, the position before being grabbed and the position after being grabbed, subsequent queries are facilitated.
[0072] Figure 5One of the schematic block diagrams of a control device for a robot arm according to an embodiment of the present invention is shown; wherein the robot arm includes a grasping device, a first camera device and a second camera device; the control device 50 of the robot arm includes:
[0073] A first acquisition module 502, used to acquire first image information captured by a second camera device;
[0074] A first determination module 504 is used to determine first coordinate information of a corner point of the container according to the first image information, wherein the corner point is located at the top of the container;
[0075] A first control module 506, configured to control the grabbing device to move to the top of the container according to the first coordinate information;
[0076] A second acquisition module 508, used to acquire second image information captured by the first camera device;
[0077] A second determination module 510, configured to determine second coordinate information of a corner point of the container according to the second image information;
[0078] A second control module 512, configured to control the grabbing device to grab the container according to the second coordinate information;
[0079] A third acquisition module 514 is used to acquire third coordinate information of the target area;
[0080] The third control module 516 is used to control the robot arm to move the container to the target area according to the third coordinate information.
[0081] The present invention provides a mechanical arm control device 50, wherein the mechanical arm includes a gripping device, and the gripping device can grip the container. Specifically, the gripping device can be 4 grippers. The mechanical arm also includes a first camera device, which is arranged on the gripping device. Specifically, the first camera device can be a high-definition camera, which can be arranged at the end of the gripper and can vertically shoot the ground. Further, the mechanical arm also includes a second camera device, which is arranged on the side of the mechanical arm. The control device 50 of the mechanical arm mainly includes: a first acquisition module 502, a first determination module 504, a first control module 506, a second acquisition module 508, a second determination module 510, a second control module 512, a third acquisition module 514 and a third control module 516. Among them, the first acquisition module 502 first acquires the first image information captured by the second camera device. Since the second camera device is located on the side of the mechanical arm, the image information captured by the second camera device is the overall image of the container, that is, the first image information is the overall image information of the container. Then the first determination module 504 determines the first coordinate information of the corner point of the container according to the obtained first image information, wherein the corner point refers to the angle located at the top of the container, that is, after obtaining the first image information, the first coordinate information of the four corner points at the top of the container is analyzed by processing and analyzing the first image information, and since the first image information is the overall image of the container, the obtained first coordinate information of the corner point is rough coordinate information. Further, after obtaining the first coordinate information, the first control module 506 controls the grabbing device to move according to the first coordinate information, thereby moving the grabbing device to the top of the container, thereby facilitating the subsequent grabbing of the container. Further, the second acquisition module 508 acquires the second image information taken by the first camera device. The first camera device is located at the end of the grasping device, and since the grasping device is located at the top of the container, the second image information is the image information of the top of the container, and then the second image information is analyzed and processed to determine the second coordinate information of the corner point. Since the second image information is the image information of the top of the container, it can be similar to the top view of the container, so the second coordinate information of the corner point obtained at this time is fine coordinate information, and then the second control module 512 controls the grasping device to start grasping the container according to the second coordinate information. Further, the third acquisition module 514 also needs to acquire the third coordinate information of the target area. The target area refers to the area where the container is placed after being grasped, which can be set by the user or automatically divided by the robot arm.Finally, the third control module 516 controls the robotic arm to place the container in the target area according to the third coordinate information, thereby achieving the technical effect of using the robotic arm to load and unload containers at the port terminal. The robotic arm control method provided by the present invention determines the coordinate information of the corner point through the first image information and the second image information, and then controls the robotic arm to perform the corresponding container loading and unloading tasks according to the obtained coordinate information, thereby making the loading and unloading operations more precise, efficient and intelligent.
[0082] Figure 6 A schematic block diagram of a second control module of an embodiment of the present invention is shown; wherein the mechanical arm further includes a pressure sensor; the second control module 512 includes:
[0083] The fourth control module 5122 is used to control the grabbing device to move to the corner point of the container according to the second coordinate information;
[0084] A fourth acquisition module 5124 is used to acquire a pressure value of the pressure sensor;
[0085] The fifth control module 5126 is used to control the grabbing device to grab the container when the pressure value reaches a preset pressure threshold.
[0086] In this embodiment, the mechanical arm also includes a pressure sensor, and the pressure sensor is located in the gripping device. Specifically, when the gripping device is a gripper, the pressure sensor is embedded in the side of the gripper. Among them, the second control module 512 includes: a fourth control module 5122, a fourth acquisition module 5124 and a fifth control module 5126. Specifically, the fourth control module 5122 first controls the gripping device to move to the corner point of the container according to the second coordinate information, and then because the pressure sensor is set in the gripping device, the fourth acquisition module 5124 obtains the pressure value output by the pressure sensor, and the fifth control module 5126 is used to control the gripping device to start grabbing the container when the pressure value reaches a preset pressure threshold. Among them, the preset threshold can be determined by ensuring the maximum weight of the fully loaded container to be safely grabbed. The present invention ensures the safety of the mechanical arm in the process of loading and unloading containers by starting to grab the container only when the pressure value reaches the preset threshold.
[0087] Figure 7 A schematic block diagram of a first determination module according to an embodiment of the present invention is shown; wherein the first determination module 504 includes:
[0088] The fifth acquisition module 5042 is used to acquire a corner point detection model;
[0089] The third determination module 5044 is used to determine first coordinate information of the corner point of the container according to the first image information and the corner point detection model.
[0090] In this embodiment, the first determination module 504 includes: a fifth acquisition module 5042 and a third determination module 5044. Among them, the fifth acquisition module 5042 first obtains a corner point detection model, which is used to detect and locate the coordinate information of the four top corner points of the container. The corner point detection model is a trained neural network model, which is obtained by training the neural network model and a large amount of labeled container corner point data. Further, after obtaining the corner point detection model, the third determination module 5044 inputs the first image information into the corner point detection model, thereby finally obtaining the first coordinate information of the corner point. Further, in the process of determining the second coordinate information of the corner point according to the second image information, the corner point detection model is also first obtained, and then the second image is input into the corner point detection model, thereby obtaining the second coordinate information. By combining the robotic arm with the corner point detection model, the operation is made more accurate.
[0091] Figure 8 The second schematic block diagram of the control device of the robot arm according to an embodiment of the present invention is shown; wherein the control device 50 of the robot arm further includes:
[0092] The sixth acquisition module 518 is used to acquire a product number recognition model;
[0093] A fourth determination module 520, configured to determine the cargo number of the container according to the first image information and the cargo number recognition model;
[0094] A fifth determining module 522, configured to determine fourth coordinate information of the container according to the first coordinate information of the corner point;
[0095] The recording module 524 is used to record the cargo number, the fourth coordinate information and the third coordinate information of the container.
[0096] In this embodiment, the control device 50 of the mechanical arm also includes: a sixth acquisition module 518, a fourth determination module 520, a fifth determination module 522 and a recording module 524. Among them, the sixth acquisition module 518 acquires a cargo number recognition model, which is obtained by collecting and annotating a large number of Chinese characters, English, numbers and symbols and training a neural network model. The cargo number recognition model can recognize the cargo number of the container in the first image information. Specifically, the fourth determination module 520 inputs the first image information into the cargo number recognition model, thereby obtaining the cargo number of the captured container. Further, the fifth determination module 522 determines the fourth coordinate information of the container according to the first coordinate information of the corner point, and obtains the position of the container before being captured by calculating the first coordinate information. Finally, the recording module 524 records the cargo number, the fourth coordinate information and the third coordinate information of the container, that is, the cargo number of the container, the position before being captured and the position after being captured are stored. By storing the cargo number of the container, the position before being captured and the position after being captured, subsequent inquiries are facilitated.
[0097] One embodiment of the present invention proposes a mechanical arm system, which mainly includes: a mechanical arm module, a high-definition camera module, a pressure sensor module, an artificial intelligence recognition module and a mobile terminal module. Each mechanical arm module has four grippers, and a high-definition camera module is installed at the end to vertically shoot the ground. A high-definition camera module is installed on the side of the mechanical arm module to shoot the container number, and a pressure sensor device is embedded in the side of the gripper; further, two neural network models are deployed in the artificial intelligence recognition module, namely a corner point detection model and a cargo number recognition model, wherein the corner point detection model is used to detect and locate the coordinates of the four top corner points of the container, and the corner point detection model is obtained by training with a large amount of labeled container corner point data; the cargo number recognition model is obtained by collecting and training with a large amount of labeled Chinese characters, English, numbers, symbols and other data. During the working process, first, the high-definition camera module on the side of the mechanical arm module shoots data to obtain the coordinates of the four corner points of the container, and the drive motor moves to the top of the container, and then the high-definition camera module installed on the side of the four grippers is used to further locate the gripper position; then after positioning, the drive motor lowers the gripper, and then grabs the container, and the pressure sensor outputs pressure data. When the pressure reaches a pre-set threshold (the threshold can be obtained based on the maximum weight of the fully loaded container to ensure safe grabbing), the container starts to be grabbed; further, the high-definition camera module installed on the side of the mechanical arm module shoots the container number. Furthermore, the mechanical arm system is also equipped with a high-precision map of the wharf or port. The mobile terminal module can manually draw an electronic area, set the grab container area, and place the container area, that is, the target area. At the same time, the mobile terminal module also has a switch or joystick, etc., which can switch between unmanned working mode and manual working mode. Further, the mechanical arm system also includes: a display terminal module that can display the loading and unloading container status, quantity, location, and container number in real time.
[0098] Specifically, Fig. 9 FIG. 1 shows one of the working process diagrams of a high-definition camera module according to an embodiment of the present invention; Fig. 9 The gripper camera in the figure refers to the high-definition camera module located at the end of the gripper. Since the gripper is located directly above the container, the gripper camera will capture the following Fig.10 The top view of the container is then transferred to the corner detection model. The corner detection model calculates the top view and obtains the following Fig.10 After obtaining the refined corner point coordinates, the gripper starts to grab the corner point.
[0099] Fig.11 The second schematic diagram of the working process of the high-definition camera module of one embodiment of the present invention is shown; Fig.11The side camera in the text refers to the high-definition camera module located on the side of the robot arm module. The side camera has two functions. One is to locate the rough position of the container. Specifically, the side camera first takes a picture of the entire container, which will be obtained. Fig.12 The picture of the container is taken, and then the picture is passed to the corner detection model. The corner detection model processes the picture of the container to obtain the rough corner coordinates. Further, the rough corner coordinates are calculated to determine the rough position of the container. Then, the robot arm module can be controlled to move to the position of the container according to the rough position of the container, or the position of the container can be displayed on the display terminal module. Another function of the side camera is to determine the cargo number of the container. Specifically, the side camera passes the overall picture of the container to the cargo number recognition model, which processes the image to obtain the cargo number of the container.
[0100] Fig.13 The schematic diagram of the working process of the intelligent terminal module and the display terminal module of an embodiment of the present invention is shown; wherein, Fig.13 The side camera in the figure refers to the high-definition camera module located on the side of the manipulator module. The smart terminal refers to the smart terminal module, and the display terminal refers to the display terminal module. Among them, the camera, i.e., the high-definition camera module, the manipulator, i.e., the manipulator module, and the pressure sensor are all connected to the smart terminal. The high-definition camera module can send the captured pictures to the artificial intelligence recognition module in the smart terminal module, and use the corner point detection model and the cargo number recognition module in the artificial intelligence recognition module to determine the corner point coordinates and the cargo number of the container respectively. Then the smart terminal module will control the manipulator module to load and unload the container through the corner point coordinates, and at the same time, the pressure sensor located in the gripper will transmit the obtained pressure to the smart terminal module. When the pressure reaches the preset pressure threshold, the gripper in the manipulator arm is controlled to start grabbing the container. After grabbing, since the manipulator module will record the cargo number of the container, the position before being grabbed, and the position after being grabbed, the smart terminal module will send the above data to the display terminal module, and the display terminal module will display the loading and unloading container status, quantity, location, container cargo number and other related information in real time for personnel to view. The present invention provides a novel container intelligent loading and unloading method by combining artificial intelligence recognition means, thereby making container loading and unloading operations more accurate, more efficient and more intelligent.
[0101] Fig.14 A schematic block diagram of an electronic device of an embodiment of the present invention is shown; wherein the electronic device 140 includes a memory 1402, a processor 1404, and a computer program stored in the memory 1402 and executable on the processor 1404, and when the processor 1404 executes the computer program, the steps of the control method of the robotic arm as described above are implemented.
[0102] The electronic device 140 provided by the present invention, in which the processor 1404 implements the steps of the above-mentioned method for controlling the robotic arm when executing a computer program, can achieve the technical effects of any of the above-mentioned embodiments, and will not be described in detail.
[0103] An embodiment of the present invention provides a storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of any of the above-mentioned methods for controlling a robotic arm are implemented.
[0104] The storage medium provided by the present invention, when the computer program is executed by the processor, implements the steps of the above-mentioned method for controlling the robotic arm, which can achieve the technical effects of any of the above-mentioned embodiments and will not be repeated here.
[0105] A storage medium may be a tangible device that can retain and store instructions for use by an instruction execution device. The storage medium may be an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the above devices, but is not limited thereto. A non-exhaustive list of more specific examples of storage media includes: portable computer floppy disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), static random access memory (SRAM), portable compact disk read-only memory (CD-ROM), digital versatile disk (DVD), memory card, floppy disk, encoding mechanical device (such as a punched card or a groove with a raised structure with instructions recorded) and any suitable combination of the above devices. The storage medium used herein should not be understood as a transmission signal itself, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media, or electrical signals transmitted through wires, etc.
[0106] In the description of this specification, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance unless otherwise clearly specified and limited; the terms "connection", "installation", "fixation" and the like should be understood in a broad sense, for example, "connection" can be a fixed connection, a detachable connection, or an integral connection; it can be directly connected or indirectly connected through an intermediate medium. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0107] In the description of this specification, the description of the terms "one embodiment", "some embodiments", "specific embodiments", etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.
[0108] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for controlling a robotic arm, characterized in that: The robotic arm includes a grasping device, a first camera device and a second camera device; and the control method of the robotic arm includes: Acquire first image information captured by the second camera device; the first image information is overall image information of the container; Determine first coordinate information of a corner point of the container according to the first image information, wherein the corner point is located at the top of the container; Controlling the grabbing device to move to the top of the container according to the first coordinate information; Acquire second image information captured by the first camera device; the second image information is top image information of the container; Determine second coordinate information of the corner point according to the second image information; Controlling the grabbing device to grab the container according to the second coordinate information; Get the third coordinate information of the target area; Controlling the robotic arm to move the container to a target area according to the third coordinate information; Get the item number recognition model; Determining the cargo number of the container according to the first image information and the cargo number recognition model; Determine fourth coordinate information of the container according to the first coordinate information of the corner point; The cargo number of the container, the fourth coordinate information and the third coordinate information are recorded.
2. The control method of the robot arm according to claim 1, characterized in that: The mechanical arm further includes a pressure sensor; and the step of controlling the grabbing device to grab the container according to the second coordinate information includes: Controlling the grabbing device to move to the corner point of the container according to the second coordinate information; Obtaining a pressure value of the pressure sensor; When the pressure value reaches a preset pressure threshold, the grabbing device is controlled to grab the container.
3. The control method of the robot arm according to claim 1, characterized in that: The step of determining first coordinate information of a corner point of the container according to the first image information comprises: Get the corner detection model; The first coordinate information of the corner point of the container is determined according to the first image information and the corner point detection model.
4. A control device for a robotic arm, characterized in that: The robotic arm includes a grasping device, a first camera device and a second camera device; the control device of the robotic arm includes: a first acquisition module, the first acquisition module being used to acquire first image information captured by the second camera device; the first image information is the overall image information of the container; a first determining module, the first determining module being used to determine first coordinate information of a corner point of the container according to the first image information, wherein the corner point is located at the top of the container; a first control module, the first control module being used to control the grabbing device to move to the top of the container according to the first coordinate information; A second acquisition module, the second acquisition module is used to acquire second image information taken by the first camera device; the second image information is top image information of the container; A second determination module, the second determination module is used to determine second coordinate information of a corner point of the container according to the second image information; a second control module, the second control module being used to control the grabbing device to grab the container according to the second coordinate information; A third acquisition module, the third acquisition module is used to acquire third coordinate information of the target area; a third control module, the third control module being used to control the mechanical arm to move the container to a target area according to the third coordinate information; A sixth acquisition module, the sixth acquisition module is used to acquire a product number recognition model; a fourth determination module, the fourth determination module being used to determine the cargo number of the container according to the first image information and the cargo number recognition model; a fifth determining module, configured to determine fourth coordinate information of the container according to the first coordinate information of the corner point; A recording module is used to record the cargo number of the container, the fourth coordinate information and the third coordinate information.
5. The control device for a robot arm according to claim 4, characterized in that: The mechanical arm further includes a pressure sensor; the second control module includes: a fourth control module, the fourth control module being used to control the grabbing device to move to the corner point of the container according to the second coordinate information; A fourth acquisition module, the fourth acquisition module is used to acquire the pressure value of the pressure sensor; A fifth control module, wherein the fifth control module is used to control the grabbing device to grab the container when the pressure value reaches a preset pressure threshold.
6. The control device for a robot arm according to claim 4, characterized in that: The first determining module comprises: A fifth acquisition module, wherein the fifth acquisition module is used to acquire a corner point detection model; A third determination module is used to determine the first coordinate information of the corner point of the container according to the first image information and the corner point detection model.
7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method for controlling a robot arm according to any one of claims 1 to 3 are implemented.
8. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method for controlling a robot arm according to any one of claims 1 to 3 are implemented.
