A robot arm control method, device, electronic device and storage medium
Through image acquisition and coordinate system transformation matrix calculation, automatic relative posture adjustment between robotic arms is realized, which solves the problem of manual positioning accuracy of the robotic arms and improves the accuracy of collaborative operations.
Patent Information
- Application Number
- CN202411063397.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-05
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-08-05
AI Technical Summary
In a collaborative operation scenario with multiple robotic arms, the positioning accuracy of the robotic arms relies on manual operation, which is prone to errors and lacks an automated method to adjust relative postures.
Acquire the scene image through the image acquisition device, identify the logo on the robotic arm, calculate the coordinate system transformation matrix, control the movement of the robotic arm to automatically adjust the relative posture, and ensure that the operating parts are aligned with the positioning holes.
It realizes automatic relative posture adjustment between robotic arms, improves positioning accuracy and reduces manual intervention.
Smart Images

Figure CN118596157B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of robot technology, and in particular to a robot arm control method, device, electronic device and storage medium. Background Art
[0002] A robotic arm is an electromechanical device with multiple joints that can perform rotational and translational motions to reach a specified position in three-dimensional space. Robotic arms can be widely used in industrial assembly, logistics, product packaging and other fields.
[0003] With the popularity of robotic arms, there is a need for more than two robotic arms to work together. In related technologies, workers are usually required to place the positions of each robotic arm, but the positioning accuracy of the robotic arm in the above method depends on the personal experience of the workers, which is prone to errors.
[0004] Therefore, how to automatically adjust the relative posture between robotic arms and improve positioning accuracy is a technical problem that technical personnel in this field currently need to solve. Summary of the invention
[0005] The purpose of this application is to provide a robot arm control method, device, electronic device and storage medium, which can automatically adjust the relative posture between robot arms and improve positioning accuracy.
[0006] In order to solve the above technical problems, the present application provides a robot arm control method, which includes:
[0007] If a positioning instruction is received, the first mechanical arm is controlled to maintain the current posture, and the current scene image captured by the image acquisition device is acquired; wherein the image acquisition device is arranged on the first mechanical arm, and a positioning mechanism is installed at the end of the first mechanical arm;
[0008] If there is a first mark set on the second mechanical arm in the current scene image, a first coordinate system transformation matrix is determined according to the position of the first mark in the current scene image; wherein the first coordinate system transformation matrix is used to represent the transformation relationship between the coordinate system of the second mechanical arm and the target coordinate system, and the target coordinate system is the coordinate system of the first mechanical arm;
[0009] Determine the first target position according to the position of the first positioning hole on the positioning mechanism in the target coordinate system; wherein the first positioning hole is used to position the first operating component, the first operating component is a detachable component adapted to the second robotic arm, and the first target position is the position of the end of the component when the first operating component passes through the first positioning hole and is in place;
[0010] The movement of the second robotic arm is controlled according to the first coordinate system transformation matrix so that the first virtual point of the second robotic arm is at the first target position; wherein the first virtual point always maintains a first relative position relationship with the end of the second robotic arm, and the first relative position relationship is the relative position relationship between the end of the component and the end of the second robotic arm when the first operating component is installed at the end of the second robotic arm.
[0011] Optionally, controlling the movement of the second mechanical arm according to the first coordinate system transformation matrix includes:
[0012] generating a corresponding virtual model according to the outline of the first operating component;
[0013] Binding the relative position relationship between the virtual model and the end of the second robot arm; wherein the end of the component of the virtual model is the first virtual point;
[0014] Performing motion planning for the second robotic arm according to the first coordinate system transformation matrix to obtain a motion path that meets constraint conditions; wherein the constraint conditions are that the second robotic arm and the virtual model do not collide with other objects, and that the end of the component of the virtual model reaches the first target position after the second robotic arm moves according to the motion path;
[0015] The second robot arm is controlled to move according to the motion path.
[0016] Optionally, determining a first coordinate system transformation matrix according to a position of the first marker in the current scene image includes:
[0017] Determine a first relative position according to the position of the first marker in the current scene image; wherein the first relative position is used to describe the relative position between the image acquisition device and the first marker;
[0018] Setting the relative position of the image acquisition device and the origin of the target coordinate system to a second relative position;
[0019] Setting the relative position of the first mark and the origin of the coordinate system of the second robotic arm to a third relative position;
[0020] The first coordinate system transformation matrix is determined according to the first relative position, the second relative position and the third relative position.
[0021] Optionally, before controlling the movement of the second mechanical arm according to the first coordinate system transformation matrix, the method further includes:
[0022] Determining an operating mode of the first robotic arm;
[0023] If the first mechanical arm is in the single-component positioning mode, executing an operation of controlling the movement of the second mechanical arm according to the first coordinate system transformation matrix;
[0024] If the first robotic arm is in the dual-component positioning mode, determining whether there is a second marker set on the third robotic arm in the current scene image;
[0025] If the second mark exists in the current scene image, a second coordinate system transformation matrix is determined according to the position of the second mark in the current scene image; wherein the second coordinate system transformation matrix is used to represent the transformation relationship between the coordinate system of the third mechanical arm and the target coordinate system;
[0026] The second target position is determined according to the position of the second positioning hole on the positioning mechanism in the target coordinate system; wherein the second positioning hole is used to position the second operating component, the second operating component is a detachable component adapted to the third mechanical arm, and the second target position is the position of the end of the component when the second operating component passes through the second positioning hole and is in place;
[0027] Execute the operation of controlling the movement of the second robotic arm according to the first coordinate system transformation matrix, and control the movement of the third robotic arm according to the second coordinate system transformation matrix, so that the second virtual point of the third robotic arm is at the second target position; wherein the second virtual point always maintains a second relative position relationship with the end of the third robotic arm, and the second relative position relationship is the relative position relationship between the end of the component and the end of the third robotic arm when the second operating component is installed at the end of the third robotic arm.
[0028] Optionally, after controlling the movement of the second mechanical arm according to the first coordinate system transformation matrix, the method further includes:
[0029] Determining whether the first virtual point reaches the first target position;
[0030] If yes, outputting first in-place prompt information to prompt the user to install the first operating component to the end of the second mechanical arm;
[0031] Correspondingly, after controlling the movement of the third mechanical arm according to the second coordinate system transformation matrix, the method further includes:
[0032] Determining whether the second virtual point reaches the second target position;
[0033] If so, a second in-place prompt message is output to prompt the user to install the second operating component to the end of the third mechanical arm.
[0034] Optionally, a first status indicator light is provided on the second mechanical arm, and a second status indicator light is provided on the third mechanical arm;
[0035] Accordingly, after acquiring the current scene image acquired by the image acquisition device, the method further includes:
[0036] Determine whether the first mark exists in the current scene image; if so, control the first status indicator light to emit light of a first color; if not, control the first status indicator light to emit light of a second color;
[0037] Determine whether the second identifier exists in the current scene image; if so, control the second status indicator light to emit light of the first color; if not, control the second status indicator light to emit light of the second color.
[0038] Optionally, a third status indicator light and a fourth status indicator light are provided on the first mechanical arm;
[0039] Accordingly, after acquiring the current scene image acquired by the image acquisition device, the method further includes:
[0040] Determine whether the first mark exists in the current scene image; if so, control the third status indicator light to emit light of the first color; if not, control the third status indicator light to emit light of the second color;
[0041] Determine whether the second mark exists in the current scene image; if so, control the fourth status indicator light to emit the first color of light; if not, control the fourth status indicator light to emit the second color of light.
[0042] Optionally, the first mechanical arm is installed on a first trolley, the second mechanical arm is installed on a second trolley, and the third mechanical arm is installed on a third trolley;
[0043] Correspondingly, it also includes:
[0044] Determining whether at least one of the first vehicle, the second vehicle, and the third vehicle moves;
[0045] If yes, an abnormal prompt message is generated to remind the user to separate the first robotic arm, the second robotic arm and the third robotic arm from the operation object;
[0046] If a new positioning instruction is received, the preset steps are executed; wherein the preset steps are: controlling the first robotic arm to maintain the current posture, and acquiring the current scene image captured by the image acquisition device.
[0047] Optionally, also include:
[0048] In the process of controlling the movement of the second mechanical arm and / or the third mechanical arm, determining whether at least one of the first mechanical arm, the second mechanical arm and the third mechanical arm is moved by other objects;
[0049] If so, the first target position corresponding to the first positioning hole and the second target position corresponding to the second positioning hole are re-determined.
[0050] The present application also provides a robot arm control device, the device comprising:
[0051] An image acquisition module, configured to control the first mechanical arm to maintain a current posture and acquire a current scene image acquired by an image acquisition device if a positioning instruction is received; wherein the image acquisition device is provided on the first mechanical arm, and a positioning mechanism is installed at the end of the first mechanical arm;
[0052] A relative position determination module, configured to determine a first coordinate system transformation matrix according to the position of the first marker in the current scene image if there is a first marker set on the second mechanical arm in the current scene image; wherein the first coordinate system transformation matrix is used to represent the transformation relationship between the coordinate system of the second mechanical arm and the target coordinate system, and the target coordinate system is the coordinate system of the first mechanical arm;
[0053] a target position determination module, configured to determine a first target position according to a position of a first positioning hole on the positioning mechanism in the target coordinate system; wherein the first positioning hole is used to position a first operating component, the first operating component is a detachable component adapted to the second robotic arm, and the first target position is a position of a component end when the first operating component passes through the first positioning hole and is in place;
[0054] A motion control module, used for controlling the movement of the second robotic arm according to the first coordinate system transformation matrix so that the first virtual point of the second robotic arm is at the first target position; wherein the first virtual point always maintains a first relative position relationship with the end of the second robotic arm, and the first relative position relationship is the relative position relationship between the end of the component and the end of the second robotic arm when the first operating component is installed at the end of the second robotic arm.
[0055] The present application also provides a storage medium on which a computer program is stored, and when the computer program is executed, the steps of the above-mentioned robot arm control method are implemented.
[0056] The present application also provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the above-mentioned robot arm control method when calling the computer program in the memory.
[0057] The present application provides a method for controlling a manipulator, which controls a first manipulator to maintain a current posture when receiving a positioning instruction, so as to collect a current scene image using an image acquisition device on the first manipulator. A first mark is provided on the second manipulator, and if the first mark is present in the current scene image, a first coordinate system transformation matrix is determined in combination with the position of the first mark in the current scene image, and the first coordinate system transformation matrix describes the coordinate system transformation relationship between the first manipulator and the second manipulator. A positioning mechanism is provided at the end of the first manipulator, and a first positioning hole for a first operating component is provided on the positioning mechanism. The present application determines a first target position according to the position of the first positioning hole in the target coordinate system, and the first target position is the position of the end of the component in the target coordinate system when the first operating component is installed and in place. The present application uses the point where the end of the component is located when the first operating component is installed at the end of the second manipulator as the first virtual point. On the basis of obtaining the first coordinate system transformation matrix and the first target position, the present application can control the movement of the second manipulator according to the first coordinate system transformation matrix, so that the first virtual point of the second manipulator is at the first target position. Through the above scheme, the relative posture of the second robotic arm and the first robotic arm can be automatically adjusted without human intervention, so that the first operating component is accurately aligned with the first positioning hole. Therefore, the present application can automatically adjust the relative posture between the robotic arms and improve the positioning accuracy. The present application also provides a robotic arm control device, a storage medium and an electronic device, which have the above beneficial effects and are not repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] In order to more clearly illustrate the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0059] Figure 1 A flowchart of a robot arm control method provided in an embodiment of the present application;
[0060] Figure 2 A schematic diagram of a robotic arm working scenario provided in an embodiment of the present application;
[0061] Figure 3 A schematic diagram of the structure of a robotic arm control device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0062] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0063] See below Figure 1 , Figure 1 A flowchart of a robotic arm control method provided in an embodiment of the present application.
[0064] Specific steps may include:
[0065] S101: If a positioning instruction is received, the first mechanical arm is controlled to maintain a current posture, and an image of a current scene acquired by an image acquisition device is acquired;
[0066] Among them, this embodiment can be applied to a host computer connected to the first robotic arm and the second robotic arm respectively. If there are other robotic arms (such as the third robotic arm) in the current scene, the host computer is also connected to the other robotic arms. The image acquisition device is provided on the first robotic arm, and the image acquisition device is connected to the host computer. A positioning mechanism is installed at the end of the first robotic arm, and the positioning mechanism has a first positioning hole. The first positioning hole is used to position the first operating component. The first operating component is a detachable component adapted to the second robotic arm. The user can install the first operating component to the end of the second robotic arm, and the user can also remove the first operating component from the end of the second robotic arm. In the process of S101~S104 of this embodiment, the first operating component has not yet been installed at the end of the second robotic arm.
[0067] Before this step, there may be an operation of receiving a positioning instruction, which may be a user input or an instruction transmitted by other devices. The positioning instruction is an instruction to control the second mechanical arm to adjust the relative posture with the first mechanical arm so that the first operating component is aligned with the first positioning hole when installed on the second mechanical arm.
[0068] After receiving the positioning instruction, the first mechanical arm can be controlled to maintain the current posture unchanged, and the current scene image captured by the image acquisition device can be obtained. The above operation can ensure that the posture of the first mechanical arm in the world coordinate system does not change during the positioning process, thereby obtaining a stable and reliable current scene image.
[0069] S102: If there is a first marker set on the second robot arm in the current scene image, determine a first coordinate system transformation matrix according to the position of the first marker in the current scene image;
[0070] Before this step, it can be determined whether there is a first marker set on the second robotic arm in the current scene image. If there is no first marker set on the second robotic arm in the current scene image, a new current scene image can be obtained until the first marker set on the second robotic arm exists in the obtained current scene image.
[0071] This step is based on the fact that a first marker set on the second robotic arm exists in the current scene image. At this time, the first coordinate system transformation matrix can be determined according to the position of the first marker in the current scene image.
[0072] The first coordinate system transformation matrix is used to represent the transformation relationship between the coordinate system of the second robotic arm and the target coordinate system, and the target coordinate system is the coordinate system of the first robotic arm; that is, the transformation relationship between the coordinate system of the first robotic arm (that is, the target coordinate system) and the coordinate system of the second robotic arm can be determined according to the first coordinate system transformation matrix. The origin of the coordinate system of the first robotic arm can be the base center of the first robotic arm, and the origin of the coordinate system of the second robotic arm can be the base center of the second robotic arm.
[0073] S103: determining a first target position according to a position of a first positioning hole on the positioning mechanism in the target coordinate system;
[0074] The first positioning hole on the positioning mechanism is used to position the first operating component, and the first positioning hole has a structure that matches the first operating component to achieve accurate positioning and stable connection. For example, the first operating component has a positioning groove, and the first positioning hole has a protruding structure that matches the positioning groove.
[0075] This embodiment can determine the position of the first positioning hole in the target coordinate system, and then calculate the first target position based on the position of the first positioning hole in the target coordinate system. The above-mentioned first target position is the position of the end of the component when the first operating component passes through the first positioning hole and is in the in-place state. The in-place state refers to the state in which the first operating component is correctly installed and fully aligned and matched with the first positioning hole. For example, when the positioning portion (such as the positioning groove) of the first operating component is aligned with the matching portion (such as the protruding structure) of the first positioning hole, the first operating component is in the in-place state. The first target position is the desired position to be reached by the end of the component of the first operating component, and the movement of the second robotic arm can be guided based on the first target position.
[0076] S104: controlling the movement of the second robotic arm according to the first coordinate system transformation matrix so that the first virtual point of the second robotic arm is at the first target position;
[0077] Among them, the first coordinate system transformation matrix can be used to calculate the precise position that the second robotic arm should reach, so that the first virtual point of the second robotic arm coincides with the first target position. The first virtual point is a point with a fixed relative position relative to the end of the second robotic arm, representing the position of the end of the first operating component. In this way, the relative position of the second robotic arm can be automatically adjusted to ensure that the first operating component can be accurately aligned with the first positioning hole.
[0078] Specifically, the first virtual point always maintains a first relative position relationship with the end of the second robotic arm; the first relative position relationship is: when the first operating component is installed at the end of the second robotic arm, the relative position relationship between the component end of the first operating component and the end of the second robotic arm. The component end of the first operating component and the end of the second robotic arm can both be abstracted as a single coordinate point.
[0079] When receiving the positioning instruction, the present embodiment controls the first mechanical arm to maintain the current posture so as to collect the current scene image by using the image acquisition device on the first mechanical arm. The second mechanical arm is provided with a first mark. If the first mark exists in the current scene image, the first coordinate system transformation matrix is determined in combination with the position of the first mark in the current scene image. The first coordinate system transformation matrix describes the coordinate system transformation relationship between the first mechanical arm and the second mechanical arm. A positioning mechanism is provided at the end of the first mechanical arm. There is a first positioning hole for the first operating component on the positioning mechanism. The present embodiment determines the first target position according to the position of the first positioning hole in the target coordinate system. The first target position is the position of the end of the component in the target coordinate system when the first operating component is installed and in place. The present embodiment takes the point where the end of the component is located when the first operating component is installed at the end of the second mechanical arm as the first virtual point. On the basis of obtaining the first coordinate system transformation matrix and the first target position, the present embodiment can control the movement of the second mechanical arm according to the first coordinate system transformation matrix so that the first virtual point of the second mechanical arm is at the first target position. Through the above scheme, the relative position of the second mechanical arm and the first mechanical arm can be automatically adjusted without manual intervention, so that the first operating component is accurately aligned with the first positioning hole. Therefore, this embodiment can automatically adjust the relative positions between the robotic arms and improve the positioning accuracy.
[0080] As for Figure 1 For further introduction of the corresponding embodiment, the movement of the second mechanical arm can be controlled by constructing a virtual model, the virtual model is a virtual model M1 corresponding to the first operating component, and the specific implementation process is as follows:
[0081] Step A1: Generate a corresponding virtual model M1 according to the outline of the first operating component.
[0082] Step A2: Binding the relative posture relationship between the virtual model M1 and the end of the second robot arm.
[0083] The component end of the virtual model M1 (ie, the component end of the first operating component) is the first virtual point.
[0084] Step A3: Perform motion planning for the second robotic arm according to the first coordinate system transformation matrix to obtain a motion path L1 that meets the constraint conditions of the second robotic arm.
[0085] The constraint condition of the second robotic arm is that the second robotic arm and the virtual model M1 do not collide with other objects, and the end of the component of the virtual model M1 reaches the first target position after the second robotic arm moves along the motion path L1;
[0086] Step A4: Control the second robot arm to move along the motion path L1.
[0087] Among them, the above process can create a virtual model M2 that is consistent with the geometric shape of the first operating component, so as to simulate and plan the operation in the software environment. This embodiment also realizes the binding of the two by setting the relative posture relationship between the component end (first virtual point) of the virtual model and the end of the second robotic arm. This embodiment can also use a motion planning algorithm to plan an optimal or feasible motion path L1, so that the component end of the virtual model M1 can safely reach the first target position while avoiding collision with any other objects. This embodiment can convert the planned motion path L1 into a joint angle instruction sequence of the second robotic arm, and send it to the second robotic arm through the control system to drive the second robotic arm to move along the motion path L1, so that the first virtual point is finally at the first target position.
[0088] As for Figure 1 For further description of the corresponding embodiment, the first coordinate system transformation matrix can be determined in the following manner:
[0089] Step B1: determining a first relative position according to the position of the first marker in the current scene image; wherein the first relative position is used to describe the relative position between the image acquisition device and the first marker;
[0090] Step B2: setting the relative position between the image acquisition device and the origin of the target coordinate system to a second relative position;
[0091] Step B3: setting the relative position between the first mark and the origin of the coordinate system of the second robot arm to a third relative position;
[0092] Step B4: Determine the first coordinate system transformation matrix according to the first relative position, the second relative position and the third relative position.
[0093] Among them, this embodiment can utilize linear algebra and transformation matrix theory, take the first relative position, the second relative position and the third relative position as input, and calculate the transformation relationship from the target coordinate system (the coordinate system of the first robotic arm) to the coordinate system of the second robotic arm through the coordinate system transformation formula.
[0094] As for Figure 1 For further description of the corresponding embodiment, if there is a third robotic arm in the working area, the movement of the second robotic arm and the third robotic arm can be controlled in the following manner:
[0095] Step C1: if a positioning instruction is received, the first mechanical arm is controlled to maintain the current posture, and the current scene image captured by the image acquisition device is acquired;
[0096] Step C2: if there is a first marker set on the second mechanical arm in the current scene image, determining a first coordinate system transformation matrix according to the position of the first marker in the current scene image;
[0097] Step C3: determining a first target position according to a position of a first positioning hole on the positioning mechanism in the target coordinate system;
[0098] Step C4: determining the working mode of the first robotic arm;
[0099] Step C5: if the first robotic arm is in the single-component positioning mode, controlling the second robotic arm to move according to the first coordinate system transformation matrix so that the first virtual point of the second robotic arm is at the first target position;
[0100] Step C6: if the first mechanical arm is in the dual-component positioning mode, determining whether there is a second mark set on the third mechanical arm in the current scene image;
[0101] Among them, a second mark is provided on the third robotic arm, and the positioning mechanism also has a second positioning hole. The second positioning hole is used to position the second operating component, and the second operating component is a detachable component adapted to the third robotic arm. The user can install the second operating component to the end of the third robotic arm, and the user can also remove the second operating component from the end of the third robotic arm. During steps C1 to C9 of this embodiment, the second operating component has not yet been installed at the end of the third robotic arm. The positioning instruction can also be an instruction to control the third robotic arm to adjust its relative posture with the first robotic arm so that the second operating component is aligned with the second positioning hole when installed on the third robotic arm. The above-mentioned first operating component and second operating component can be: a welding device, a discharge component, an endoscope, a surgical instrument, etc.
[0102] If the second identifier does not exist in the current scene image, the current scene image can be reacquired and the process proceeds to step C2.
[0103] Step C7: if the second mark exists in the current scene image, determining a second coordinate system transformation matrix according to the position of the second mark in the current scene image;
[0104] This step is based on the fact that the second mark set on the third mechanical arm exists in the current scene image. At this time, the second coordinate system transformation matrix can be determined according to the position of the second mark in the current scene image. The second coordinate system transformation matrix is used to represent the transformation relationship between the coordinate system of the third mechanical arm and the target coordinate system. The origin of the coordinate system of the third mechanical arm can be the base center of the third mechanical arm.
[0105] Step C8: determining a second target position according to a position of a second positioning hole on the positioning mechanism in the target coordinate system;
[0106] The second positioning hole is used to position the second operating component, the second operating component is a detachable component adapted to the third robotic arm, and the second target position is the position of the end of the component when the second operating component passes through the second positioning hole and is in place.
[0107] The second positioning hole has a structure that matches with the second operating component to achieve accurate positioning and stable connection. For example, the second operating component has a positioning groove, and the second positioning hole has a protruding structure that matches with the positioning groove.
[0108] The second target position is the position of the end of the second operating component when it passes through the second positioning hole and is in the in-place state. The in-place state refers to the state in which the second operating component is correctly installed and fully aligned and matched with the second positioning hole. For example, when the positioning portion (such as the positioning groove) of the second operating component is aligned with the matching portion (such as the protruding structure) of the second positioning hole, the second operating component is in the in-place state. The second target position is the desired position to be reached by the end of the second operating component, and the movement of the third robot arm can be guided based on the second target position.
[0109] Step C9: controlling the second mechanical arm to move according to the first coordinate system transformation matrix so that the first virtual point of the second mechanical arm is at the first target position; controlling the third mechanical arm to move according to the second coordinate system transformation matrix so that the second virtual point of the third mechanical arm is at the second target position;
[0110] Among them, the second coordinate system transformation matrix can be used to calculate the precise position that the third robotic arm should reach, so that the second virtual point of the third robotic arm coincides with the second target position. The second virtual point is a point with a fixed relative position relative to the end of the third robotic arm, representing the position of the end of the second operating component. In this way, the relative position of the third robotic arm can be automatically adjusted to ensure that the second operating component can be accurately aligned with the second positioning hole.
[0111] Specifically, the second virtual point always maintains a second relative position relationship with the end of the third robotic arm, and the second relative position relationship is the relative position relationship between the end of the component and the end of the third robotic arm when the second operating component is installed at the end of the third robotic arm.
[0112] Specifically, in step C9, the movement of the third mechanical arm can be controlled by constructing a virtual model, where the virtual model is a virtual model M2 corresponding to the second operating component. The specific implementation process is as follows:
[0113] Step C91: Generate a corresponding virtual model M2 according to the contour of the second operating component.
[0114] Step C92: Binding the relative posture relationship between the virtual model M2 and the end of the third robot arm.
[0115] The component end of the virtual model M2 (ie, the component end of the second operating component) is the second virtual point.
[0116] Step C93: Perform motion planning for the third robotic arm according to the second coordinate system transformation matrix to obtain a motion path L2 that meets the constraint conditions of the third robotic arm.
[0117] The constraint condition of the third robotic arm is that the third robotic arm and the virtual model M2 do not collide with other objects, and after the third robotic arm moves along the motion path L2, the component end of the virtual model M2 reaches the second target position;
[0118] Step C94: Control the third robot arm to move along the motion path L2.
[0119] As a feasible implementation, the second coordinate system transformation matrix can be determined in the following manner:
[0120] Step C71: determining a fourth relative position according to the position of the second marker in the current scene image; wherein the fourth relative position is used to describe the relative position between the image acquisition device and the second marker;
[0121] Step C72: setting the relative position between the image acquisition device and the origin of the target coordinate system to a second relative position;
[0122] Step C73: setting the relative position between the second mark and the origin of the coordinate system of the third robot arm as a fifth relative position;
[0123] Step C74: Determine the second coordinate system transformation matrix according to the second relative position, the fourth relative position and the fifth relative position.
[0124] As a further introduction to the above embodiment, after controlling the movement of the second robotic arm according to the first coordinate system transformation matrix, it is also possible to determine whether the first virtual point has reached the first target position; if so, output a first in-place prompt message to prompt the user to install the first operating component to the end of the second robotic arm; if not, after a delay of a period of time, determine again whether the first virtual point has reached the first target position.
[0125] Correspondingly, after controlling the movement of the third robotic arm according to the second coordinate system transformation matrix, it is also possible to determine whether the second virtual point has reached the second target position; if so, a second in-place prompt message is output to prompt the user to install the second operating component to the end of the third robotic arm; if not, it is determined again after a delay whether the second virtual point has reached the second target position.
[0126] As a further introduction to the above embodiment, the second robotic arm is provided with a first status indicator light, the third robotic arm is provided with a second status indicator light, and the host computer is connected to the first status indicator light and the second status indicator light respectively.
[0127] Correspondingly, after acquiring the current scene image captured by the image acquisition device, it is also possible to determine whether the first mark exists in the current scene image; if so, the first status indicator light is controlled to emit light of the first color; if not, the first status indicator light is controlled to emit light of the second color. After acquiring the current scene image captured by the image acquisition device, it is also possible to determine whether the second mark exists in the current scene image; if so, the second status indicator light is controlled to emit light of the first color; if not, the second status indicator light is controlled to emit light of the second color.
[0128] As a further introduction to the above embodiment, a third status indicator light and a fourth status indicator light are provided on the first robot arm, and the host computer is connected to the third status indicator light and the fourth status indicator light respectively.
[0129] Correspondingly, after acquiring the current scene image captured by the image acquisition device, it is also possible to determine whether the first identifier exists in the current scene image; if so, the third status indicator light is controlled to emit light of the first color; if not, the third status indicator light is controlled to emit light of the second color.
[0130] After acquiring the current scene image captured by the image acquisition device, it is also possible to determine whether the second identifier exists in the current scene image; if so, the fourth status indicator light is controlled to emit light of the first color; if not, the fourth status indicator light is controlled to emit light of the second color.
[0131] The user may adjust the posture of the second robotic arm and / or the third robotic arm according to the lighting states of the first status prompt light, the second status prompt light, the third status prompt light and the fourth status prompt light.
[0132] As a further introduction to the above embodiment, the first robotic arm is installed on the first trolley, the second robotic arm is installed on the second trolley, and the third robotic arm is installed on the third trolley; accordingly, it can also be determined whether at least one of the first trolley, the second trolley and the third trolley moves; if so, an abnormal prompt message is generated to remind the user to separate the first robotic arm, the second robotic arm and the third robotic arm from the operation object; if a new positioning instruction is received, the preset steps are executed; wherein the preset steps are: controlling the first robotic arm to maintain the current posture, and obtaining the current scene image captured by the image acquisition device.
[0133] As a further introduction to the above embodiment, in the process of controlling the movement of the second robotic arm and / or the third robotic arm, it is determined whether at least one of the first robotic arm, the second robotic arm and the third robotic arm is moved by other objects (such as a user or other equipment); if so, the first target position corresponding to the first positioning hole and the second target position corresponding to the second positioning hole are re-determined so as to control the movement of the second robotic arm and the third robotic arm based on the updated first target position and the second target position.
[0134] The process described in the above embodiment is explained below by using an embodiment of a surgical robot in actual application.
[0135] When using a surgical robot for surgery, an operator (such as a surgeon) is required to manually place each surgical robot in the operating room and rely on experience to find the best surgical position for each surgical robot (a position where each surgical robot will not collide with each other and where each robot arm will not collide during the operation), i.e., the positioning of the surgical robot, which is very inconvenient. Therefore, traditional surgical robots have the problem of requiring operators to position them during specific use.
[0136] See also Figure 2 , Figure 2 A schematic diagram of a robot arm working scenario provided in an embodiment of the present application, Figure 2 1 represents the first trolley, 2 represents the second trolley, 3 represents the third trolley, 4 represents the operating table, 11 represents the first robotic arm, 12 represents the image acquisition device (such as the Natural Digital Imaging Device NDI), 21 represents the second robotic arm, 22 represents the first identifier, 31 represents the third robotic arm, and 32 represents the second identifier. In actual use, medical staff push the first trolley, the second trolley, and the third trolley to the side of the operating table, so the relative position relationship between the first trolley, the second trolley, and the third trolley is different for each operation.
[0137] like Figure 2 As shown, the robotic arm working scene includes a first vehicle, a second vehicle, a third vehicle and an operating table. An image acquisition device is provided on the first vehicle, a first mark is provided on the second robotic arm of the second vehicle, and a second mark is provided on the third robotic arm of the third vehicle. The first mark and the second mark have different shapes (or colors), and the image acquisition device can face the two marks. The second robotic arm and the third robotic arm are also provided with status prompt lights, which send status prompt information to the user through different light colors. Among them, the first robotic arm on the first vehicle holds a surgical lens, the second robotic arm on the second vehicle holds a first surgical instrument, and the robotic arm on the third vehicle holds a second surgical instrument.
[0138] The robot arm positioning solution provided in this embodiment includes the following steps:
[0139] Step D1: drive the three robotic arms to unfold to the initial position, which is the position set by the system in the early stage.
[0140] In this embodiment, a laryngoscope holder (i.e., a positioning mechanism) can be installed on the first mechanical arm, and the first mechanical arm can be manually driven to move to the human throat to install the laryngoscope holder on the human throat. This step is a manually operated step, and each mechanical arm is provided with a manually operated switching button, and after pressing, the mechanical arm can realize manual driving operation.
[0141] Step D2: Start the image acquisition device to acquire images of the two logos. When the image acquisition device acquires images of the two logos at the same time, all status indicator lights emit green light, and the process proceeds to step D4. When the image acquisition device does not acquire images of the first logo and / or the second logo, the status indicator lights on the trolley corresponding to the logo emit blue light, and the blue light prompts the user to adjust the posture of the trolley, and the process proceeds to step D3.
[0142] Step D3: The user adjusts the posture of the second trolley and / or the third trolley (for example, the angle of the moving trolley or the swinging trolley) so that the first identifier and the second identifier both enter the field of view of the image acquisition device. During this process, when the image acquisition device simultaneously captures the images of the first identifier and the second identifier, all status indicator lights emit green light and enter step D4.
[0143] Step D4, identifying the relative positional relationship between the first identifier and the second identifier and the image acquisition device, respectively, based on the acquired images of the first identifier and the second identifier;
[0144] Step D5, based on the relative position relationship between the first identifier and the second identifier and the image acquisition device respectively, and the joint parameters of the robotic arm corresponding to the first identifier and the second identifier, obtain the relative position relationship between each robotic arm coordinate origin and the image acquisition device, the robotic arm coordinate origin is the coordinate origin when the robotic arm moves.
[0145] Step D6, based on the relative position relationship between the coordinate origins of each robotic arm and the image acquisition device, and the relationship between the image acquisition device and the coordinate origin of the first robotic arm, obtain the relative position relationship between the coordinate origins of each robotic arm (equivalent to transferring the coordinate systems of the second robotic arm and the third robotic arm to the coordinate system of the first robotic arm). The relationship between the above-mentioned image acquisition device and the coordinate origin of the first robotic arm is a pre-set value (i.e., the value set before the equipment leaves the factory).
[0146] Step D7: Obtain the position of the end of the first robotic arm instrument through the coordinate origin of the first robotic arm and the joint parameters of each joint on the first robotic arm.
[0147] Step D8, driving the instrument ends of the second and third robotic arms to move toward the position of the instrument end of the first robotic arm to the target position. During the implementation of step D8, the status indicator emits a flashing blue light. After step D8 is completed, the second and third robotic arms move to the target position, and after moving to the target position, the status indicator emits a constant blue light. After that, after installing the surgical instrument on the robotic arm, the doctor can start the surgical operation.
[0148] In the above step D7, a laryngoscope holder is installed on the instrument end of the first mechanical arm, and two instrument holes (i.e., positioning holes) for surgical instruments to pass through are provided on the laryngoscope holder, and the two instrument holes correspond to the instruments installed on the second mechanical arm and the third mechanical arm, respectively. In the above step D7, the position of the instrument hole on the laryngoscope holder is obtained. The position relationship of the instrument hole on the laryngoscope holder is pre-stored in the system, and the position of the instrument hole on the laryngoscope holder can be calculated by superimposing the coordinate origin of the first mechanical arm, the joint parameters of each joint on the first mechanical arm, and the geometric parameters of the instrument hole on the laryngoscope holder. In the above step D8, a virtual instrument tip is provided at the instrument end of the second mechanical arm. In fact, step D8 is to drive the virtual instrument tip on the second mechanical arm to move into the above instrument hole. The real surgical instrument will be installed on the second mechanical arm only after step D8 is completed. The tip position of the surgical instrument is pre-stored in the system, and the position of the virtual instrument tip can be calculated by superimposing the coordinate origin of the second mechanical arm, the joint parameters of each joint on the second mechanical arm, and the tip position of the surgical instrument.
[0149] If any vehicle moves during the operation, the relative position relationship between the robotic arms needs to be re-acquired; the user manually drives the robotic arm to separate the robotic arm from the patient's body; then the user needs to issue a repositioning instruction to the device; after receiving the repositioning instruction, the device executes the above steps D2 to D8.
[0150] If any of the robotic arms is moved manually during the operation, the second and third robotic arms need to be re-controlled to move to the target position, and the user needs to issue a realignment instruction to the device; after receiving the realignment instruction, the device executes the above steps D7 to D8.
[0151] See also Figure 3 , Figure 3 A schematic diagram of the structure of a robot arm control device provided in an embodiment of the present application, the device may include:
[0152] The image acquisition module 301 is used to control the first mechanical arm to maintain the current posture and acquire the current scene image acquired by the image acquisition device if a positioning instruction is received; wherein the image acquisition device is provided on the first mechanical arm, and a positioning mechanism is installed at the end of the first mechanical arm;
[0153] A relative position determination module 302 is used to determine a first coordinate system transformation matrix according to the position of the first marker in the current scene image if there is a first marker set on the second mechanical arm in the current scene image; wherein the first coordinate system transformation matrix is used to represent the transformation relationship between the coordinate system of the second mechanical arm and the target coordinate system, and the target coordinate system is the coordinate system of the first mechanical arm;
[0154] The target position determination module 303 is used to determine the first target position according to the position of the first positioning hole on the positioning mechanism in the target coordinate system; wherein the first positioning hole is used to position the first operating component, the first operating component is a detachable component adapted to the second mechanical arm, and the first target position is the position of the end of the component when the first operating component passes through the first positioning hole and is in place;
[0155] The motion control module 304 is used to control the movement of the second robotic arm according to the first coordinate system transformation matrix so that the first virtual point of the second robotic arm is at the first target position; wherein the first virtual point always maintains a first relative position relationship with the end of the second robotic arm, and the first relative position relationship is the relative position relationship between the end of the component and the end of the second robotic arm when the first operating component is installed at the end of the second robotic arm.
[0156] When receiving the positioning instruction, the present embodiment controls the first mechanical arm to maintain the current posture so as to collect the current scene image by using the image acquisition device on the first mechanical arm. The second mechanical arm is provided with a first mark. If the first mark exists in the current scene image, the first coordinate system transformation matrix is determined in combination with the position of the first mark in the current scene image. The first coordinate system transformation matrix describes the coordinate system transformation relationship between the first mechanical arm and the second mechanical arm. A positioning mechanism is provided at the end of the first mechanical arm. There is a first positioning hole for the first operating component on the positioning mechanism. The present embodiment determines the first target position according to the position of the first positioning hole in the target coordinate system. The first target position is the position of the end of the component in the target coordinate system when the first operating component is installed and in place. The present embodiment takes the point where the end of the component is located when the first operating component is installed at the end of the second mechanical arm as the first virtual point. On the basis of obtaining the first coordinate system transformation matrix and the first target position, the present embodiment can control the movement of the second mechanical arm according to the first coordinate system transformation matrix so that the first virtual point of the second mechanical arm is at the first target position. Through the above scheme, the relative position of the second mechanical arm and the first mechanical arm can be automatically adjusted without manual intervention, so that the first operating component is accurately aligned with the first positioning hole. Therefore, this embodiment can automatically adjust the relative positions between the robotic arms and improve the positioning accuracy.
[0157] Furthermore, the process in which the motion control module controls the movement of the second robotic arm according to the first coordinate system transformation matrix includes: generating a corresponding virtual model according to the outline of the first operating component; binding the relative posture relationship between the virtual model and the end of the second robotic arm; wherein the end of the component of the virtual model is the first virtual point; performing motion planning for the second robotic arm according to the first coordinate system transformation matrix to obtain a motion path that meets the constraint conditions; wherein the constraint conditions are that the second robotic arm and the virtual model do not collide with other objects, and after the second robotic arm moves along the motion path, the end of the component of the virtual model reaches the first target position; and controlling the second robotic arm to move along the motion path.
[0158] Furthermore, the process of the relative position determination module determining the first coordinate system transformation matrix according to the position of the first identifier in the current scene image includes: determining the first relative position according to the position of the first identifier in the current scene image; wherein the first relative position is used to describe the relative position of the image acquisition device and the first identifier; setting the relative position of the image acquisition device and the origin of the target coordinate system to a second relative position; setting the relative position of the first identifier and the origin of the coordinate system of the second robotic arm to a third relative position; and determining the first coordinate system transformation matrix according to the first relative position, the second relative position and the third relative position.
[0159] Furthermore, it also includes:
[0160] The motion control module is also used to determine the working mode of the first robotic arm; if the first robotic arm is in a single-component positioning mode, then execute the operation of controlling the movement of the second robotic arm according to the first coordinate system transformation matrix; if the first robotic arm is in a dual-component positioning mode, then determine whether there is a second identifier set on the third robotic arm in the current scene image; if the second identifier exists in the current scene image, then determine the second coordinate system transformation matrix according to the position of the second identifier in the current scene image; wherein the second coordinate system transformation matrix is used to represent the transformation relationship between the coordinate system of the third robotic arm and the target coordinate system; and is also used to determine the second target position according to the position of the second positioning hole on the positioning mechanism in the target coordinate system. ; wherein, the second positioning hole is used to position the second operating component, the second operating component is a detachable component adapted to the third robotic arm, and the second target position is the position of the end of the component when the second operating component passes through the second positioning hole and is in place; it is also used to perform the operation of controlling the movement of the second robotic arm according to the first coordinate system transformation matrix, and control the movement of the third robotic arm according to the second coordinate system transformation matrix, so that the second virtual point of the third robotic arm is in the second target position; wherein, the second virtual point always maintains a second relative position relationship with the end of the third robotic arm, and the second relative position relationship is the relative position relationship between the end of the component and the end of the third robotic arm when the second operating component is installed at the end of the third robotic arm.
[0161] Furthermore, it also includes:
[0162] A first judgment module is used to judge whether the first virtual point reaches the first target position after controlling the movement of the second mechanical arm according to the first coordinate system transformation matrix; if so, output first in-position prompt information to prompt the user to install the first operating component to the end of the second mechanical arm;
[0163] The second judgment module is used to judge whether the second virtual point reaches the second target position after controlling the movement of the third robotic arm according to the second coordinate system transformation matrix; if so, output a second in-place prompt information to prompt the user to install the second operating component to the end of the third robotic arm.
[0164] Furthermore, the second mechanical arm is provided with a first status indicator light, and the third mechanical arm is provided with a second status indicator light;
[0165] Correspondingly, it also includes:
[0166] A third judgment module is used to determine whether the first mark exists in the current scene image after acquiring the current scene image acquired by the image acquisition device; if so, control the first status prompt light to emit light of the first color; if not, control the first status prompt light to emit light of the second color;
[0167] The fourth judgment module is used to judge whether the second identifier exists in the current scene image after acquiring the current scene image acquired by the image acquisition device; if so, control the second status indicator light to emit the first color of light; if not, control the second status indicator light to emit the second color of light.
[0168] Furthermore, the first mechanical arm is provided with a third status prompt light and a fourth status prompt light;
[0169] Correspondingly, it also includes:
[0170] a fifth judgment module, configured to, after acquiring the current scene image acquired by the image acquisition device, judge whether the first mark exists in the current scene image; if so, control the third status indication light to emit light of the first color; if not, control the third status indication light to emit light of the second color;
[0171] The sixth judgment module is used to judge whether the second identifier exists in the current scene image after acquiring the current scene image acquired by the image acquisition device; if so, control the fourth status indicator light to emit the first color of light; if not, control the fourth status indicator light to emit the second color of light.
[0172] Further, the first mechanical arm is installed on the first trolley, the second mechanical arm is installed on the second trolley, and the third mechanical arm is installed on the third trolley;
[0173] Correspondingly, it also includes:
[0174] The seventh judgment module is used to judge whether at least one of the first trolley, the second trolley and the third trolley moves; if so, an abnormal prompt message is generated to remind the user to separate the first robotic arm, the second robotic arm and the third robotic arm from the operation object; if a new positioning instruction is received, a preset step is executed; wherein the preset step is: controlling the first robotic arm to maintain the current posture and obtaining the current scene image captured by the image acquisition device.
[0175] Furthermore, it also includes:
[0176] The eighth judgment module is used to determine whether at least one of the first robotic arm, the second robotic arm and the third robotic arm is moved by other objects during the process of controlling the movement of the second robotic arm and / or the third robotic arm; if so, re-determine the first target position corresponding to the first positioning hole and the second target position corresponding to the second positioning hole.
[0177] Since the embodiments of the apparatus part correspond to the embodiments of the method part, please refer to the description of the embodiments of the method part for the embodiments of the apparatus part, which will not be repeated here.
[0178] The present application also provides a storage medium on which a computer program is stored, and when the computer program is executed, the steps provided in the above embodiment can be implemented. The storage medium may include: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.
[0179] The present application also provides an electronic device, which may include a memory and a processor, wherein a computer program is stored in the memory, and when the processor calls the computer program in the memory, the steps provided in the above embodiment may be implemented. Of course, the electronic device may also include various network interfaces, power supplies and other components.
[0180] The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same and similar parts between the various embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of this application, several improvements and modifications can be made to this application, and these improvements and modifications also fall within the scope of protection of this application.
[0181] It should also be noted that, in this specification, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprises", "comprising" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprising a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.
Claims
1. A method for controlling a robotic arm, It is characterized in that include: If a positioning instruction is received, the first mechanical arm is controlled to maintain the current posture, and the current scene image captured by the image acquisition device is acquired; wherein the image acquisition device is arranged on the first mechanical arm, and a positioning mechanism is installed at the end of the first mechanical arm; If there is a first mark set on the second mechanical arm in the current scene image, a first coordinate system transformation matrix is determined according to the position of the first mark in the current scene image; wherein the first coordinate system transformation matrix is used to represent the transformation relationship between the coordinate system of the second mechanical arm and the target coordinate system, and the target coordinate system is the coordinate system of the first mechanical arm; Determine the first target position according to the position of the first positioning hole on the positioning mechanism in the target coordinate system; wherein the first positioning hole is used to position the first operating component, the first operating component is a detachable component adapted to the second robotic arm, and the first target position is the position of the end of the component when the first operating component passes through the first positioning hole and is in place; The movement of the second robotic arm is controlled according to the first coordinate system transformation matrix so that the first virtual point of the second robotic arm is at the first target position; wherein the first virtual point always maintains a first relative position relationship with the end of the second robotic arm, and the first relative position relationship is the relative position relationship between the end of the component and the end of the second robotic arm when the first operating component is installed at the end of the second robotic arm.
2. The robot arm control method according to claim 1, It is characterized in that Controlling the movement of the second mechanical arm according to the first coordinate system transformation matrix includes: generating a corresponding virtual model according to the outline of the first operating component; Binding the relative position relationship between the virtual model and the end of the second robot arm; wherein the end of the component of the virtual model is the first virtual point; Performing motion planning for the second robotic arm according to the first coordinate system transformation matrix to obtain a motion path that meets constraint conditions; wherein the constraint conditions are that the second robotic arm and the virtual model do not collide with other objects, and that the end of the component of the virtual model reaches the first target position after the second robotic arm moves according to the motion path; The second robot arm is controlled to move according to the motion path.
3. The robot arm control method according to claim 1, It is characterized in that Determining a first coordinate system transformation matrix according to the position of the first marker in the current scene image includes: Determine a first relative position according to the position of the first marker in the current scene image; wherein the first relative position is used to describe the relative position between the image acquisition device and the first marker; Setting the relative position of the image acquisition device and the origin of the target coordinate system to a second relative position; Setting the relative position of the first mark and the origin of the coordinate system of the second robotic arm to a third relative position; The first coordinate system transformation matrix is determined according to the first relative position, the second relative position and the third relative position.
4. The robot arm control method according to claim 1, It is characterized in that Before controlling the movement of the second mechanical arm according to the first coordinate system transformation matrix, the method further includes: Determining an operating mode of the first robotic arm; If the first mechanical arm is in the single-component positioning mode, executing an operation of controlling the movement of the second mechanical arm according to the first coordinate system transformation matrix; If the first robotic arm is in the dual-component positioning mode, determining whether there is a second marker set on the third robotic arm in the current scene image; If the second mark exists in the current scene image, a second coordinate system transformation matrix is determined according to the position of the second mark in the current scene image; wherein the second coordinate system transformation matrix is used to represent the transformation relationship between the coordinate system of the third mechanical arm and the target coordinate system; The second target position is determined according to the position of the second positioning hole on the positioning mechanism in the target coordinate system; wherein the second positioning hole is used to position the second operating component, the second operating component is a detachable component adapted to the third mechanical arm, and the second target position is the position of the end of the component when the second operating component passes through the second positioning hole and is in place; Execute the operation of controlling the movement of the second robotic arm according to the first coordinate system transformation matrix, and control the movement of the third robotic arm according to the second coordinate system transformation matrix, so that the second virtual point of the third robotic arm is at the second target position; wherein the second virtual point always maintains a second relative position relationship with the end of the third robotic arm, and the second relative position relationship is the relative position relationship between the end of the component and the end of the third robotic arm when the second operating component is installed at the end of the third robotic arm.
5. The robot arm control method according to claim 4, It is characterized in that After controlling the movement of the second mechanical arm according to the first coordinate system transformation matrix, the method further includes: Determining whether the first virtual point reaches the first target position; If yes, outputting first in-place prompt information to prompt the user to install the first operating component to the end of the second mechanical arm; Correspondingly, after controlling the movement of the third mechanical arm according to the second coordinate system transformation matrix, the method further includes: Determining whether the second virtual point reaches the second target position; If so, a second in-place prompt message is output to prompt the user to install the second operating component to the end of the third mechanical arm.
6. The robot arm control method according to claim 4, It is characterized in that The second mechanical arm is provided with a first status prompt light, and the third mechanical arm is provided with a second status prompt light; Accordingly, after acquiring the current scene image acquired by the image acquisition device, the method further includes: Determine whether the first mark exists in the current scene image; if so, control the first status indicator light to emit light of a first color; if not, control the first status indicator light to emit light of a second color; Determine whether the second identifier exists in the current scene image; if so, control the second status indicator light to emit light of the first color; if not, control the second status indicator light to emit light of the second color.
7. The robot arm control method according to claim 4, It is characterized in that The first mechanical arm is provided with a third state prompt light and a fourth state prompt light; Accordingly, after acquiring the current scene image acquired by the image acquisition device, the method further includes: Determine whether the first mark exists in the current scene image; if so, control the third status indicator light to emit light of the first color; if not, control the third status indicator light to emit light of the second color; Determine whether the second mark exists in the current scene image; if so, control the fourth status indicator light to emit the first color of light; if not, control the fourth status indicator light to emit the second color of light.
8. The robot arm control method according to claim 4, It is characterized in that The first mechanical arm is installed on the first trolley, the second mechanical arm is installed on the second trolley, and the third mechanical arm is installed on the third trolley; Accordingly, it also includes: Determining whether at least one of the first vehicle, the second vehicle, and the third vehicle moves; If yes, an abnormal prompt message is generated to remind the user to separate the first robotic arm, the second robotic arm and the third robotic arm from the operation object; If a new positioning instruction is received, the preset steps are executed; wherein the preset steps are: controlling the first robotic arm to maintain the current posture, and acquiring the current scene image captured by the image acquisition device.
9. The robot arm control method according to claim 4, It is characterized in that Also includes: In the process of controlling the movement of the second mechanical arm and / or the third mechanical arm, determining whether at least one of the first mechanical arm, the second mechanical arm and the third mechanical arm is moved by other objects; If so, the first target position corresponding to the first positioning hole and the second target position corresponding to the second positioning hole are re-determined.
10. A robot arm control device, It is characterized in that include: An image acquisition module, configured to control the first mechanical arm to maintain a current posture and acquire a current scene image acquired by an image acquisition device if a positioning instruction is received; wherein the image acquisition device is provided on the first mechanical arm, and a positioning mechanism is installed at the end of the first mechanical arm; A relative position determination module, configured to determine a first coordinate system transformation matrix according to the position of the first marker in the current scene image if there is a first marker set on the second mechanical arm in the current scene image; wherein the first coordinate system transformation matrix is used to represent the transformation relationship between the coordinate system of the second mechanical arm and the target coordinate system, and the target coordinate system is the coordinate system of the first mechanical arm; a target position determination module, configured to determine a first target position according to a position of a first positioning hole on the positioning mechanism in the target coordinate system; wherein the first positioning hole is used to position a first operating component, the first operating component is a detachable component adapted to the second robotic arm, and the first target position is a position of a component end when the first operating component passes through the first positioning hole and is in place; A motion control module, used for controlling the movement of the second robotic arm according to the first coordinate system transformation matrix so that the first virtual point of the second robotic arm is at the first target position; wherein the first virtual point always maintains a first relative position relationship with the end of the second robotic arm, and the first relative position relationship is the relative position relationship between the end of the component and the end of the second robotic arm when the first operating component is installed at the end of the second robotic arm.
11. An electronic device, It is characterized in that It comprises a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the robot arm control method as claimed in any one of claims 1 to 9 when calling the computer program in the memory.
12. A storage medium, It is characterized in that The storage medium stores computer executable instructions, and when the computer executable instructions are loaded and executed by the processor, the steps of the robot arm control method according to any one of claims 1 to 9 are implemented.
