Robot control method, device, control equipment and readable storage medium
By combining a virtual robot model with a physical robot, the problem of low robot control efficiency under fixed point constraints is solved, efficient and real-time motion control is achieved, and the calculation process is simplified.
Patent Information
- Application Number
- CN202410613069.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-17
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2044-05-17
AI Technical Summary
In the existing technology, the robot control efficiency for fixed point constraints is low, difficult to meet real-time control requirements, and relies heavily on the robot model, with poor control scalability and high computational difficulty.
By constructing a virtual robot model, determine the end pose of the virtual robot in the base coordinate system, and combine the coordinate system deviation data to determine the motion instruction set of the physical robot, achieve unconstrained motion control with fixed point constraints, reduce computational difficulty, and Improve control efficiency.
It improves the robot control efficiency under fixed point constraints, meets the real-time control needs in various application scenarios such as industry and medical treatment, reduces the dependence on changes in the robot model, and simplifies the algorithm complexity.
Smart Images

Figure CN118181306B
Abstract
Description
Technical Field
[0001] The present application relates to the field of automatic control technology, and in particular to a robot control method, device, control equipment and readable storage medium. Background Art
[0002] In recent years, industrial robots or surgical robots can assist or replace manual labor in corresponding processing and have been widely used in various fields. Robot motion control technology has also been widely used in various application fields. For example, industrial robots can assist or replace manual labor to help people carry out operations such as handling, stacking, sorting, welding, gluing, spraying, grinding, boring and milling, flaw detection, and testing. Surgical robots can replace or assist manual labor in various surgical operations, such as heart surgery, gallbladder removal, hysterectomy, laparoscopy, and other surgical operations.
[0003] In the existing robot motion control methods, the task space of most application scenarios is unobstructed or the motion control is performed without considering the existence of space obstructions. For the situation where the task space is obstructed, it is often necessary to perform operations through perforation, suturing, etc. For example, the robot needs to perform welding, inspection, spraying, installation, disassembly, grinding, boring and milling tasks on the inside of a thin-walled cavity from the outside, or the robot needs to perform surgical tasks such as cutting, suturing, and inspection on the inside of the human body from the outside. Taking a thin-walled perforated cavity as an example, suppose a robot is arranged outside a cavity, and an execution tool is installed at the end of the robot that can extend into the cavity through the thin-walled perforation to perform operation tasks. The execution tool often has the characteristics of a slender rod, and the axis of the rod is collinear with the rotation joint at the end of the robot. The constraint of the end motion of this type of robot is a fixed point constraint, so the robot needs to perform the movement of the end rod under the fixed point constraint.
[0004] At present, the robot control method for fixed point constraints usually uses redundant manipulators to add the constraint model Jacobian in the Jacobian null space to form an extended Jacobian matrix, and then uses the extended Jacobian inversion method to achieve constrained motion control. However, this method requires that the robot must be a redundant robot, and the robot Jacobian null space has sufficient dimensions to satisfy the addition of the constrained Jacobian model. In addition, when the robot model changes, the extended Jacobian needs to be reconsidered. Therefore, it is highly dependent on the robot model, the scalability of the control is poor, and the calculation difficulty during control is relatively high, resulting in low efficiency of robot control for fixed point constraints and difficulty in meeting the needs of real-time control. Summary of the invention
[0005] In view of this, the purpose of the embodiments of the present application is to provide a robot control method, apparatus, control device and readable storage medium to improve the problem of low robot control efficiency for fixed point constraints existing in the prior art.
[0006] In order to solve the above problems, in a first aspect, an embodiment of the present application provides a robot control method, the method comprising:
[0007] Based on the virtual robot model, determining the first terminal position in the first base coordinate system of the virtual robot;
[0008] Determine the second pose of the terminal in the second base coordinate system of the physical robot according to the first pose of the terminal and the coordinate system deviation data;
[0009] Determine a target joint angle instruction set based on the second position posture of the terminal;
[0010] Among them, the coordinate system deviation data is determined based on the virtual robot model; and the target joint angle instruction set is used to control the physical robot to move.
[0011] In the above implementation process, the first terminal pose in the first base coordinate system corresponding to the virtual robot is obtained through the constructed virtual robot model, and the second terminal pose in the second base coordinate system corresponding to the physical robot is obtained by combining the first terminal pose and the coordinate system deviation data generated by virtual modeling, so as to obtain the target joint angle instruction set for controlling the movement of the physical robot by processing according to the second terminal pose. It is possible to construct and use the corresponding virtual robot model, convert the constrained robot kinematics into unconstrained robot kinematics, and divide the virtual robot and the physical robot into two parts for separate processing. When the virtual robot changes, only the virtual robot model needs to be modified, and the robot can be controlled in layers, which effectively reduces the calculation difficulty during control, improves the robot control efficiency for fixed point constraints, and meets the real-time control requirements in various application scenarios such as industry, medical treatment, and detection.
[0012] Optionally, the virtual robot model is obtained in the following manner:
[0013] Based on the constraint state of the entire physical robot, a virtual joint corresponding to the degree of freedom is abstracted; wherein the constraint state is a feature representing the restricted movement direction of the spatial rod;
[0014] Determine the constrained position on the constrained rod of the physical robot based on position teaching; wherein the constrained position includes the position where the spatial rod is constrained; and the constrained rod includes the robot connecting rod that is constrained;
[0015] Constructing the first base coordinate system of the virtual robot based on the constraint position;
[0016] Based on the first base coordinate system, modeling is performed in combination with the virtual joint corresponding to the constraint state and the physical joint constrained to the end portion of the physical robot to obtain the virtual robot model.
[0017] In the above implementation process, the virtual robot model can be modeled according to the actual conditions of the constrained rod on the physical robot and the physical joint constrained at the end of the physical robot. When modeling, the virtual joint of the corresponding degree of freedom can be obtained based on the constraint state of the constrained rod, so as to construct the fixed point constraint modeling problem of the complex terminal link as a virtual robot joint for processing, and the position teaching of the constraint position on the constrained rod is performed to construct the corresponding first base coordinate system in combination with the actual conditions of the constraint position. On the first base coordinate system, the created virtual joint and the physical joint are combined for modeling to obtain the corresponding virtual robot model. It is possible to construct a corresponding virtual model according to the actual conditions of the robot, realize the fixed point constraint motion through the motion of the virtual robot joint, that is, realize the motion control of the terminal link with fixed point constraint through the unconstrained robot hierarchical motion control, effectively reducing the complexity of the algorithm during motion control, thereby improving the real-time and effectiveness of control.
[0018] Optionally, the virtual robot model is obtained in the following manner:
[0019] Acquiring historical data of a physical joint constrained to a terminal portion of the physical robot in a database according to identity information of the physical joint;
[0020] According to the parameter data of the constrained rod of the physical robot, the constraint position on the constrained rod, the first base coordinate system corresponding to the constraint position, and virtual data of the virtual joints of the corresponding degrees of freedom are obtained in the database; wherein the virtual data includes at least one of the joint type, the number of virtual joints, and the virtual joint configuration sequence; the joint type includes: rotational joints and / or translational joints; the virtual joint configuration sequence includes the modeling sequence of multiple virtual joints;
[0021] Based on the first base coordinate system, the virtual robot model is obtained by combining the historical data and the virtual data.
[0022] In the above implementation process, modeling can also be performed in advance for the tools used in different application scenarios, and the data obtained by modeling can be stored in the corresponding database. When control is required, the identity information of the physical joint constrained by the end part of the physical robot can be queried in the database to obtain historical data matching it, and the corresponding constraint position, the first base coordinate system and the virtual data corresponding to the virtual joint can be matched in the database according to the parameter data of the constrained rod, so that the multiple data obtained by querying in the database can be directly combined and processed to obtain the corresponding virtual robot model. Moreover, if the corresponding data is not queried in the database, modeling can also be performed according to the current actual situation of the robot. The corresponding virtual robot model is obtained by pre-modeling and data query, which effectively improves the acquisition efficiency and effectiveness of the virtual model, thereby improving the efficiency of control.
[0023] Optionally, the method further comprises:
[0024] The coordinate system deviation data is determined based on a first coordinate system and a second coordinate system; wherein the first coordinate system is the coordinate system of the end of the constrained rod in the first base coordinate system, and the second coordinate system is the coordinate system of the end of the constrained rod in the second base coordinate system.
[0025] In the above implementation process, in the process of constructing the virtual robot model, a hierarchical control strategy is used to divide the constrained rod and the robot into two separate modules for processing. In this case, the end of the constrained rod can be processed into two different coordinate systems under different base coordinate systems. In order to facilitate the subsequent posture conversion, the corresponding coordinate system deviation data can be calculated based on the two different coordinate systems. The deviation between the coordinate systems constructed based on different base coordinate systems during the modeling process can be obtained, which effectively reduces the difficulty of subsequent calculations and improves the efficiency of control.
[0026] Optionally, wherein the physical robot is in an operating state;
[0027] The step of determining the first terminal position in the first base coordinate system of the virtual robot based on the virtual robot model includes:
[0028] Determine the end target position of the physical robot in the second base coordinate system;
[0029] Based on the first base coordinate system and the end target pose, determining a third pose of the end of the constrained rod in the first base coordinate system;
[0030] Determine, by a kinematic algorithm, a first joint angle instruction set of the virtual robot in the first base coordinate system based on the third posture of the terminal;
[0031] The first terminal position of the virtual joint part in the virtual robot in the first base coordinate system is determined by the kinematic algorithm based on the first joint angle instruction set.
[0032] In the above implementation process, when the physical robot is in the corresponding operating state such as industrial work or surgical work, it is necessary to control the motion of the physical robot as a whole. The terminal target posture of the physical robot in the second base coordinate system under the desired condition can be obtained to calculate the terminal third posture of the constrained rod corresponding to the terminal target posture in the first base coordinate system, so as to perform inverse solution based on the kinematic algorithm to obtain the first joint angle instruction set of the virtual robot corresponding to the terminal third posture in the first base coordinate system. Then, the forward solution is performed based on the kinematic algorithm to obtain the terminal first posture of the virtual joint part of the virtual robot corresponding to the first joint angle instruction set in the first base coordinate system. It can be processed by base coordinate system conversion, posture conversion, instruction conversion, and kinematic solution, which effectively improves the effectiveness and real-time performance of the terminal first posture obtained in the operating state.
[0033] Optionally, wherein the physical robot is in an adjustment state;
[0034] The step of determining the first terminal position in the first base coordinate system of the virtual robot based on the virtual robot model includes:
[0035] Determine a second joint angle instruction set of a virtual joint in the virtual robot in the first base coordinate system;
[0036] The first terminal pose of the virtual joint part in the virtual robot in the first base coordinate system is determined based on the second joint angle instruction set through a kinematic algorithm.
[0037] In the above implementation process, when the physical robot is in the adjustment state during the change of working state, the control effect can be achieved by controlling the constrained rod. The second joint angle instruction set of the virtual joint in the virtual robot in the first base coordinate system can be directly obtained according to the control requirements of the constrained rod, and the first terminal position of the virtual joint part of the virtual robot corresponding to the second joint angle instruction set in the first base coordinate system can be obtained by performing a positive solution based on the kinematic algorithm. The first terminal position can be effectively improved by processing through posture conversion, instruction conversion, and kinematic solution. The effectiveness and real-time performance of the first terminal position obtained in the adjustment state are effectively improved.
[0038] Optionally, determining the second posture of the terminal in the second base coordinate system of the physical robot according to the first posture of the terminal and the coordinate system deviation data includes:
[0039] Based on the first terminal pose, determining a terminal transformation pose of the constrained rod in a second base coordinate system of the physical robot;
[0040] According to the terminal conversion posture and the coordinate system deviation data, a second posture of the terminal of the physical robot in the second base coordinate system is determined.
[0041] In the above implementation process, the coordinate system conversion and posture conversion can be performed according to the first posture of the terminal in the first base coordinate system to obtain the transformed posture of the terminal constrained rod in the second base coordinate system, and considering the coordinate deviation of the terminal of the constrained rod in the modeling process, the terminal transformed posture and coordinate system deviation data can be combined to obtain the corresponding second posture of the terminal of the physical robot in the second base coordinate system. The calculation can be performed according to the posture conversion between different base coordinate systems and the deviation between different coordinate systems, which effectively improves the effectiveness and accuracy of the second posture of the terminal.
[0042] Optionally, the determining of a target joint angle instruction set based on the second posture of the terminal includes:
[0043] Determine, by a kinematic algorithm, a third joint angle instruction set of the physical robot in the second base coordinate system based on the second posture of the terminal;
[0044] If the physical robot is in an operating state, determining the target joint angle instruction set by combining the third joint angle instruction set and the first joint angle instruction set in the first base coordinate system;
[0045] If the physical robot is in an adjustment state, the target joint angle instruction set is determined by combining the third joint angle instruction set and the second joint angle instruction set in the first base coordinate system.
[0046] In the above implementation process, since the first joint angle instruction set / the second joint angle instruction set are both control instructions in the first base coordinate system of the virtual robot, in order to improve the effectiveness of control, the third joint angle instruction set of the corresponding physical robot can be determined according to the second posture of the terminal in the second base coordinate system, so that in different states of the physical robot, the two corresponding joint angle instruction sets in the two base coordinate systems are combined for calculation to obtain the final target joint angle instruction set. The instruction sets in two different base coordinate systems can be combined for processing to effectively control the robot to complete the desired movement of the fixed point constraint according to the target joint angle instruction set.
[0047] Optionally, the method further comprises:
[0048] Based on the second joint angle instruction set, combined with the current virtual constraint position of the constrained rod of the physical robot and the constraint position, teaching the physical robot the constraint position;
[0049] Wherein, the virtual constraint position includes a preset position on a designated link of the physical robot during the teaching process; and the constraint position teaching includes: overlapping the virtual constraint position with the actual constraint position.
[0050] In the above implementation process, when the constrained rod of the physical robot has not reached the preset constraint position, the physical robot can also be taught the constraint position based on the second joint angle instruction set for controlling the virtual robot in the adjustment state, combined with the actual situation of the virtual constraint position and the actual constraint position of the constrained rod. There is no need to control the actual joints constrained at the end of the physical robot. Only the constrained rod needs to be controlled to make the virtual constraint position coincide with the actual constraint position, thereby facilitating the modeling of the virtual robot. By teaching the constraint position by controlling the constrained rod separately, the control difficulty of the constraint position teaching is effectively reduced, and the control efficiency of the constraint position teaching is improved.
[0051] In a second aspect, an embodiment of the present application further provides a robot control device, the device comprising: a first posture module, a second posture module and an instruction module;
[0052] The first posture module is used to determine the first posture of the terminal in the first base coordinate system of the virtual robot based on the virtual robot model;
[0053] The second posture module is used to determine the second posture of the terminal in the second base coordinate system of the physical robot according to the first posture of the terminal and the coordinate system deviation data;
[0054] The instruction module is used to determine a target joint angle instruction set based on the second posture of the terminal;
[0055] Among them, the coordinate system deviation data is determined based on the virtual robot model; and the target joint angle instruction set is used to control the physical robot to move.
[0056] In the above implementation process, the first pose of the terminal in the first base coordinate system corresponding to the virtual robot is obtained based on the constructed virtual robot model through the first pose module, and the second pose of the terminal in the second base coordinate system corresponding to the physical robot is obtained by combining the first pose of the terminal and the coordinate system deviation data generated by virtual modeling through the second pose module. The target joint angle instruction set for controlling the movement of the physical robot is obtained by processing according to the second pose of the terminal through the quality module. It is possible to construct and use the corresponding virtual robot model, convert the constrained robot kinematics into unconstrained robot kinematics, and divide the virtual robot and the physical robot into two parts for separate processing. When the virtual robot changes, only the virtual robot model needs to be processed, and the robot can be hierarchically controlled, which effectively reduces the calculation difficulty during control, improves the robot control efficiency for fixed point constraints, and meets the real-time control requirements in various application scenarios such as industry, medical treatment, and detection.
[0057] Optionally, the device further comprises: a modeling module;
[0058] The modeling module is used to: abstract virtual joints of corresponding degrees of freedom based on the constraint state of the physical robot as a whole; wherein the constraint state is a feature indicating the restricted movement direction of the spatial rod; determine the constraint position on the constrained rod of the physical robot based on position teaching; wherein the constraint position includes the position where the spatial rod is constrained; the constrained rod includes the robot connecting rod that is constrained; construct the first base coordinate system of the virtual robot based on the constraint position; based on the first base coordinate system, model the virtual joints corresponding to the constraint state and the physical joints constrained to the end part of the physical robot to obtain the virtual robot model.
[0059] In the above implementation process, modeling can be performed according to the actual conditions of the constrained rod on the physical robot and the physical joint constrained at the end of the physical robot. Through the modeling module, the virtual joint of the corresponding degree of freedom is obtained based on the constraint state of the constrained rod, so as to construct the complex fixed point constraint modeling problem of the terminal link as a virtual robot joint for processing, and the position teaching of the constraint position on the constrained rod is performed to construct the corresponding first base coordinate system in combination with the actual conditions of the constraint position. On the first base coordinate system, modeling is performed in combination with the created virtual joint and the physical joint to obtain the corresponding virtual robot model. It is possible to construct a corresponding virtual model according to the actual conditions of the robot, realize the fixed point constraint motion through the motion of the virtual robot joint, that is, realize the motion control of the terminal link with fixed point constraint through the unconstrained robot hierarchical motion control, effectively reducing the complexity of the algorithm during motion control, thereby improving the real-time and effectiveness of the control.
[0060] Optionally, the modeling module is also used to: determine the coordinate system deviation data based on a first coordinate system and a second coordinate system; wherein the first coordinate system is the coordinate system of the end of the constrained rod in the first base coordinate system, and the second coordinate system is the coordinate system of the end of the constrained rod in the second base coordinate system.
[0061] In the above implementation process, in the process of building the virtual robot model, a hierarchical control strategy is used to divide the constrained rod and the robot into two separate modules for processing. In this case, the end of the constrained rod can be processed to obtain two different coordinate systems in different base coordinate systems. In order to facilitate the subsequent posture conversion, the modeling module can also calculate the corresponding coordinate system deviation data based on the two different coordinate systems. The deviation between the coordinate systems constructed based on different base coordinate systems during the modeling process can be obtained, which effectively reduces the difficulty of subsequent calculations and improves the efficiency of control.
[0062] In a third aspect, an embodiment of the present application further provides a control device, comprising a memory and a processor, wherein the memory stores program instructions, and when the processor reads and runs the program instructions, it executes the steps in any implementation of the above-mentioned robot control method.
[0063] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer program instructions, and when the computer program instructions are read and executed by a processor, the steps in any implementation of the above-mentioned robot control method are executed.
[0064] In summary, the embodiments of the present application provide a robot control method, apparatus, control device and readable storage medium, which perform hierarchical control based on a constructed virtual robot model, convert the constrained robot kinematics into unconstrained robot kinematics, and determine the instruction set for controlling the physical joints of the physical robot based on the final posture in the desired coordinate system, thereby effectively improving the robot control efficiency for fixed point constraint situations. BRIEF DESCRIPTION OF THE DRAWINGS
[0065] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0066] Figure 1 A block diagram of a control device provided in an embodiment of the present application;
[0067] Figure 2 A schematic flow chart of a first robot control method provided in an embodiment of the present application;
[0068] Figure 3 A schematic flow chart of a second robot control method provided in an embodiment of the present application;
[0069] Figure 4 A schematic flow chart of a third robot control method provided in an embodiment of the present application;
[0070] Figure 5 A detailed flowchart of the first step S200 provided in the embodiment of the present application;
[0071] Figure 6 A detailed flowchart of the second step S200 provided in the embodiment of the present application;
[0072] Figure 7 A detailed flowchart of step S300 provided in an embodiment of the present application;
[0073] Figure 8 A detailed flowchart of step S400 provided in an embodiment of the present application;
[0074] Fig. 9 A schematic diagram of the structure of a robot control device provided in an embodiment of the present application.
[0075] Icon: 100 - control device; 111 - memory; 112 - storage controller; 113 - processor; 114 - peripheral interface; 115 - input and output unit; 116 - display unit; 600 - robot control device; 610 - first posture module; 620 - second posture module; 630 - instruction module. DETAILED DESCRIPTION
[0076] The technical scheme 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 only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments of the embodiments of the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the embodiments of the present application.
[0077] At present, the robot control method for fixed point constraints usually uses redundant manipulators to add the constraint model Jacobian in the Jacobian null space to form an extended Jacobian matrix, and then uses the extended Jacobian inversion method to achieve constrained motion control. Utilizing the multi-solution characteristics of redundant manipulators, the motion constraints are constructed as a Jacobian matrix based on its original Jacobian matrix, thereby forming an extended Jacobian matrix of the entire robot, and then the Jacobian inversion method is used to solve the joint angles. In essence, it is a method of using the Jacobian expansion method to solve the inverse kinematics of a redundant manipulator with constraints.
[0078] However, the applicant discovered during the research process that the method of using Jacobian expansion for motion control requires that the robot must be a redundant robot and the robot Jacobian null space has sufficient dimensions to satisfy the addition of the constrained Jacobian model. In addition, when the robot model changes, the expanded Jacobian needs to be reconsidered, so the reliance on the robot model is relatively large, the scalability of the control is poor, and the calculation difficulty during control is relatively large, resulting in low efficiency of robot control for fixed point constraints and difficulty in meeting the needs of real-time control.
[0079] In order to solve the above problems, the embodiment of the present application provides a robot control method, which is applied to a control device, which can be a server, a personal computer (PC), a tablet computer, a smart phone, a personal digital assistant (PDA), and other electronic devices with logical computing functions. The control device can be set inside the robot as a corresponding control module, or can be connected to the robot in communication as a corresponding operating console or other equipment, capable of data transmission with the robot and real-time control of the robot's movement.
[0080] Optionally, see Figure 1 , Figure 1 The block diagram of a control device provided in an embodiment of the present application. The control device 100 may include a memory 111, a storage controller 112, a processor 113, a peripheral interface 114, an input and output unit 115, and a display unit 116. A person skilled in the art may understand that Figure 1 The structure shown is only for illustration and does not limit the structure of the control device 100. For example, the control device 100 may also include Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.
[0081] The memory 111, storage controller 112, processor 113, peripheral interface 114, input / output unit 115 and display unit 116 are electrically connected to each other directly or indirectly to achieve data transmission or interaction. For example, these components can be electrically connected to each other via one or more communication buses or signal lines. The processor 113 is used to execute the executable module stored in the memory.
[0082] The memory 111 may be, but is not limited to, a random access memory (RAM), a read only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable read-only memory (EEPROM), etc. The memory 111 is used to store programs, and the processor 113 executes the program after receiving the execution instruction. The method executed by the control device 100 defined by the process disclosed in any embodiment of the present application can be applied to the processor 113, or implemented by the processor 113.
[0083] The processor 113 may be an integrated circuit chip with signal processing capability. The processor 113 may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it may also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application may be implemented or executed. The general-purpose processor may be a microprocessor or any conventional processor.
[0084] The peripheral interface 114 couples various input / output devices to the processor 113 and the memory 111. In some embodiments, the peripheral interface 114, the processor 113 and the memory controller 112 can be implemented in a single chip. In other embodiments, they can be implemented by separate chips.
[0085] The input / output unit 115 is used to provide input data to the user. The input / output unit 115 may be, but is not limited to, a mouse and a keyboard.
[0086] The above-mentioned display unit 116 provides an interactive interface (such as a user operation interface) between the control device 100 and the user or is used to display image data for the user's reference. In this embodiment, the display unit can be a liquid crystal display or a touch display. If it is a touch display, it can be a capacitive touch screen or a resistive touch screen that supports single-point and multi-point touch operations. Supporting single-point and multi-point touch operations means that the touch display can sense touch operations generated simultaneously from one or more positions on the touch display, and the sensed touch operations are handed over to the processor for calculation and processing. In an embodiment of the present application, the display unit 116 can display various data such as the motion trajectory, posture, instructions, etc. of each joint of the robot.
[0087] The control device in this embodiment can be used to execute each step in each robot control method provided in the embodiment of the present application. The implementation process of the robot control method is described in detail below through several embodiments.
[0088] See also Figure 2 , Figure 2 A schematic flow chart of a first robot control method provided in an embodiment of the present application, the method may include steps S200-S400.
[0089] Step S200: determining a first terminal pose in a first base coordinate system of the virtual robot based on the virtual robot model.
[0090] The first base coordinate system is a base coordinate system constructed based on the constructed virtual robot model and taking the constraint position (i.e., fixed point) of the virtual robot as the base point. The pose calculation processing can be performed on the constructed virtual robot model to obtain the first end pose corresponding to the virtual joint of the virtual robot in the first base coordinate system corresponding to the virtual robot.
[0091] It should be noted that the virtual robot model is a model constructed based on virtual joints, and may be a model obtained from a database according to the model and parameters of the physical robot, or may be a model constructed according to the actual conditions of the physical robot.
[0092] Step S300, determining the second pose of the terminal in the second base coordinate system of the physical robot according to the first pose of the terminal and the coordinate system deviation data.
[0093] Among them, the second base coordinate system is a base coordinate system constructed with the base, trolley and other fixed bases of the physical robot as the base point. According to the conversion relationship between the first base coordinate system and the second base coordinate system and combined with the coordinate system deviation data, the second terminal posture of the physical robot in the second base coordinate system corresponding to the physical robot can be obtained.
[0094] It should be noted that the physical robot may include a robotic arm with multiple joints, the end of the robotic arm is connected to a corresponding end tool rod, the end tool rod may be a robot connecting rod that is constrained in the robot, the end of the end tool rod is connected to a corresponding adapter joint, the adapter joint is connected to an instrument joint, the instrument joint may be a corresponding industrial instrument or medical instrument, such as a nozzle, gripper, drill bit in an industrial scenario, or surgical scissors, needle holder, laparoscope and other instruments in a medical scenario, the adapter joint may provide a corresponding connection structure and rotation function for the instrument joint to achieve corresponding operations.
[0095] Optionally, the second terminal posture may be the posture of the connection between the terminal tool rod and the transfer joint of the physical robot.
[0096] It should be noted that the coordinate system deviation data is determined based on the virtual robot model. Since the virtual robot model is modeled based on the constraint position, the end of the robot can establish different coordinate systems under different base coordinate systems. The coordinate system deviation data is the posture difference data between different coordinate systems during the modeling process.
[0097] It should be noted that, based on the processing of the virtual robot model, the end tool rod and the manipulator can be divided into two modules for separate processing, thereby converting the motion control problem of the redundant manipulator with constraints into the kinematic problem of the first-level unconstrained non-redundant virtual robot (instrument joint part) and the kinematic problem of the second-level unconstrained manipulator (excluding the instrument part), that is, converting it into an unconstrained problem for solution. Moreover, when the virtual robot changes (for example, the end tool rod changes, or the end instrument joint changes, etc.), only the virtual robot model needs to be modified, and the modification process can include modifying or replacing the virtual robot model, etc., without considering a new constraint compensation algorithm for the changed virtual robot or building a new constraint Jacobian model for calculation, which effectively reduces the calculation difficulty during control.
[0098] Step S400, determining a target joint angle instruction set based on the second posture of the terminal.
[0099] Among them, in order to achieve control of the physical robot, processing can be performed according to the second posture of the end, and the processing method can include inverse solution calculation of the kinematic algorithm to obtain a target joint angle instruction set for controlling the movement of the physical robot.
[0100] It should be noted that the joint angle instruction is an angle instruction for controlling the movement of the joints in the robot arm.
[0101] exist Figure 2 In the embodiment shown, the robot can be hierarchically controlled based on the virtual robot model, which effectively reduces the computational difficulty during control, improves the robot control efficiency for fixed point constraints, and meets the real-time control needs in various application scenarios such as industry, medical treatment, and detection.
[0102] Optionally, see Figure 3 , Figure 3 This is a flow chart of a second robot control method provided in an embodiment of the present application. The method may further include steps S511-S514.
[0103] Step S511, based on the constraint state of the entire physical robot, abstract the virtual joints corresponding to the degree of freedom.
[0104] Among them, the constraint state is a feature representing the restricted movement direction of the spatial rod, such as being restricted inside an opening of a shell, etc. The virtual joints corresponding to the degrees of freedom can be selected according to the actual situation of the constraint state, and 1-5 virtual joints can be selected. For example, 1 virtual joint can be used for square openings and square connecting rods on a shell with thicker cavity walls in the constraint state; 5 virtual joints can be used for single-slit openings on the shell in the constraint state; or, in the constraint state, the constraint range is characterized by a circular hole, and the circular hole is fitted with the outer surface of the constrained rod (which can be a robot connecting rod constrained by the constraint state in the robot, such as an end tool rod, etc.), then a four-degree-of-freedom SP virtual joint with the intersection of the rotation axes can be set (which can be three orthogonal rotation pairs and translation pairs, or spherical pairs and translation pairs, where four axes intersect), S represents spherical motion, and P represents prismatic motion, which can realize corresponding pitch, yaw, rotation and telescopic motion.
[0105] Step S512, determining the constrained position on the constrained rod of the physical robot based on the position teaching.
[0106] Among them, the constrained position includes the position where the spatial rod is constrained, that is, the fixed point; the constrained rod includes the robot link that is constrained, such as the constrained end tool rod, etc. The constrained position can be recorded as Orcmb.
[0107] Optionally, a point on the rotation axis of the end tool rod can be taken as the constraint position, or the point on the rotation axis of the end tool rod that contacts the shell corresponding to the working scene can be taken as the constraint position, and the constraint position can be completed by teaching the constraint position through the robot arm. The teaching process can include: controlling the robot arm to align the end of the end tool rod (or a specific identification point, the distance between the identification point and the connecting rod length of the end joint of the robot arm is L1) with the constraint position, and the end position of the end tool rod in the second base coordinate system {Orb-XrbYrbZrb} can be obtained by using the kinematics of the robot arm according to the rotation angles of each joint of the robot arm. , and then obtain the position and posture of the constraint position Orcmb relative to the first base coordinate system , and then we can obtain the offset distance d=L2-L1 of the constraint position from the end joint of the robot arm at the current position, that is, the initial moving distance of the virtual moving joint is d, where L2 is the length of the end joint link of the robot arm (including the end tool rod link). It should be noted that when L1 is the same as L2, that is, when the end of the end tool rod is selected to coincide with the constraint position, d=0.
[0108] Step S513: construct a first base coordinate system of the virtual robot based on the constraint position.
[0109] Among them, the corresponding first base coordinate system can be constructed in combination with the actual situation of the constraint position, which is recorded as {Orcmb-XrcmbYrcmbZrcmb}. The first base coordinate system is constructed at the constraint position. The OrcmbZrcmb direction indicates the direction of the constraint position along the end tool rod pointing to the working point (such as the direction of the lesion or the direction of the task point in the industrial task). OrcmbXrcmb is the same as the X direction of the end of the robot arm when the rotation joint is zero degrees; OrcmbYrcmb is determined by the right-hand screw rule.
[0110] Step S514 , based on the first base coordinate system, modeling is performed in combination with the virtual joints corresponding to the constraint state and the physical joints constrained to the end portion of the physical robot to obtain a virtual robot model.
[0111] Wherein, in the first base coordinate system, modeling is performed by combining the created virtual joints and physical joints to obtain a corresponding virtual robot model.
[0112] Optionally, with the first base coordinate system as the initial base coordinate system, one or more virtual joints that move at the constrained position can be combined with the physical joints constrained to the end part of the physical robot, such as the adapter joint and instrument joint connected to the end of the end tool rod, and a virtual robot model can be constructed based on the MDH or DH modeling method.
[0113] Optionally, taking the virtual joint including three rotation pairs (pitch, yaw, and rotation around the fixed point position) as an example, the order of the three rotation pairs can be set arbitrarily. The movement of the end tool bar around the fixed point position can be converted into the movement of the virtual joint, the pitch movement of the end tool bar around the fixed point can be converted into the virtual pitch joint, the yaw movement of the end tool bar around the fixed point can be converted into the virtual yaw joint, the rotation of the end tool bar can be converted into the virtual rotation joint, and the telescopic movement of the end tool bar from the constraint position to the working point can be converted into the virtual translation joint.
[0114] exist Figure 3 In the embodiment shown, a corresponding virtual model can be constructed according to the actual situation of the robot, and the fixed-point constrained motion can be realized through the movement of the virtual robot joints, that is, the motion control of the end link constrained by the fixed point is realized through unconstrained robot hierarchical motion control, which effectively reduces the complexity of the algorithm during motion control, thereby improving the real-time and effectiveness of the control.
[0115] Optionally, see Figure 4 , Figure 4 This is a flow chart of a third robot control method provided in an embodiment of the present application. The method may further include steps S521-S523.
[0116] Step S521, acquiring historical data of the physical joints in a database according to the identity information of the physical joints constrained to the end portion of the physical robot.
[0117] The tools used in different application scenarios can also be modeled in advance, and the modeled data can be stored in the corresponding database. When control is required, the database can be queried based on the identity information of the physical joints constrained by the end part of the physical robot to obtain historical data matching it.
[0118] By way of example, the physical joint may be an adapter joint and an instrument joint connected to the end of a tool rod. The identity information of the physical joint may include the joint number, bar code, QR code, identification signal and other information with identification function. The identity information of the physical joint may be obtained by scanning or signal recognition.
[0119] Step S522, according to the parameter data of the constrained rod of the physical robot, the constraint position on the constrained rod, the first base coordinate system corresponding to the constraint position and the virtual data of the virtual joint of the corresponding degree of freedom are obtained in the database.
[0120] The constrained rod may be a constrained end tool rod, and the corresponding constraint position, the first base coordinate system and virtual data corresponding to the virtual joint may also be matched in a database according to parameter data of the constrained rod.
[0121] Optionally, the parameter data of the constrained rod may include various parameters such as the model, length, shape, width, etc. of the connecting rod, so as to determine the corresponding various data according to the actual situation of the connecting rod and the constraint state. Optionally, the virtual data may include various information such as the joint type, the number of virtual joints, and the virtual joint configuration order; the joint type may include: rotational joints and / or translational joints; the virtual joint configuration order may include the modeling order of multiple virtual joints.
[0122] Step S523, based on the first base coordinate system, combining historical data and virtual data to obtain a virtual robot model.
[0123] Among them, on the basis of the first base coordinate system, a variety of data obtained by querying in the database can be combined and processed to obtain a corresponding virtual robot model.
[0124] It should be noted that the construction methods of various data in the database can refer to Figure 3 The construction method in the above will not be described in detail. If no corresponding data is found in the database, the robot can also be used according to its current actual situation. Figure 3 The modeling process is performed in the manner shown.
[0125] exist Figure 4 In the illustrated embodiment, the corresponding virtual robot model is obtained by means of pre-modeling and data query, which effectively improves the efficiency and effectiveness of obtaining the virtual model, thereby improving the efficiency of control.
[0126] It should be noted that the modeling method may also include: determining coordinate system deviation data based on the first coordinate system and the second coordinate system; the first coordinate system is the coordinate system of the end of the constrained rod in the first base coordinate system, and the second coordinate system is the coordinate system of the end of the constrained rod in the second base coordinate system. For example, the first coordinate system may be the end coordinate system of the virtual joint of the constrained rod in the first base coordinate system, and the second coordinate system may be the end coordinate system of the physical joint of the constrained rod in the second base coordinate system. In the process of constructing the virtual robot model, a hierarchical control strategy is used to divide the constrained rod and the robot into two separate modules for processing. In this case, the end of the constrained rod can be processed to obtain two different coordinate systems in different base coordinate systems. In order to facilitate the subsequent posture conversion, the corresponding coordinate system deviation data can be calculated according to the two different coordinate systems. The deviation between the coordinate systems constructed based on different base coordinate systems in the modeling process can be obtained, which effectively reduces the difficulty of subsequent calculations, thereby improving the efficiency of control.
[0127] For example, taking a virtual joint with four degrees of freedom as an example, the corresponding first coordinate system can be the end position of the fourth joint, which can be recorded as , the second coordinate system can be the end position of the end tool rod, that is, , the two can be transformed based on the corresponding coordinate system deviation data, and the coordinate system deviation data can be a fixed transformation matrix, such as , It can be a 4th-order homogeneous matrix rotated 90 degrees around the Z axis, thus obtaining .
[0128] It should be noted that the axial directions of each base coordinate system can be set according to actual conditions and requirements.
[0129] Optionally, when the physical robot is in a corresponding operating state such as industrial work or surgical work, it is necessary to control the motion of the entire physical robot. For example, spraying a certain area in an industrial scenario, cutting a certain part in a medical scenario, etc. Figure 5 , Figure 5 A detailed flowchart of the first step S200 provided in an embodiment of the present application, step S200 may include steps S211-S214.
[0130] Step S211, determining the terminal target position and posture of the physical robot in the second base coordinate system.
[0131] Among them, the end target posture of the physical robot in the second base coordinate system under the desired situation can be obtained according to the corresponding working point position under the operating state. The end target posture can be a posture vector or a posture matrix, which can be recorded as .
[0132] Step S212: Based on the first base coordinate system and the end target pose, determine the third pose of the end of the constrained rod in the first base coordinate system.
[0133] In order to reach the corresponding working point under the desired situation, the actual situation of the constrained rod and the transformation relationship between the first base coordinate system and the second base coordinate system, that is, the conversion relationship between the first base coordinate system and the second base coordinate system, can be determined during the teaching process. , calculate the third pose of the constrained rod corresponding to the end target pose in the first base coordinate system, recorded as .
[0134] Optionally, the calculation method may include: .
[0135] Step S213, determining a first joint angle instruction set of the virtual robot in the first base coordinate system based on the third posture of the terminal through a kinematic algorithm.
[0136] Among them, the inverse solution can be performed based on the kinematic algorithm to obtain the first joint angle instruction set of the virtual robot corresponding to the third posture of the terminal in the first base coordinate system, which is recorded as .
[0137] Optionally, the first joint angle instruction set may include one or more joint angle instructions for the virtual joint to perform virtual pitch, yaw, rotation or extension.
[0138] Step S214, determining the first terminal pose of the virtual joint part in the virtual robot in the first base coordinate system based on the first joint angle instruction set through a kinematic algorithm.
[0139] Among them, the positive solution can continue to be performed based on the kinematic algorithm to obtain the first terminal position of the virtual joint part of the virtual robot corresponding to the first joint angle instruction set in the first base coordinate system.
[0140] Optionally, the calculation method may include: according to 1. Through the kinematic solution of the virtual robot-physical robot, the constraint position in the first base coordinate system is solved to the corresponding virtual joint end. For example, the end position of the fourth joint can be recorded as the first end position as follows: .
[0141] exist Figure 5 In the illustrated embodiment, processing can be performed through base coordinate system conversion, posture conversion, instruction conversion, and kinematic solution, thereby effectively improving the validity and real-time performance of the first posture of the terminal obtained in the operating state.
[0142] Optionally, when the physical robot is in an adjustment state during a change in working state, the control effect can be achieved by simply controlling the constrained rod. For example, the adjustment state may include: changing the instrument joint from a spray head to a drill head for drilling after spraying in an industrial scenario, or changing the instrument joint from a scissors to a needle holder after cutting in a medical scenario, as well as adjusting the constrained rod in various scenarios. Please refer to Figure 6 , Figure 6 A detailed flowchart of the second step S200 provided in an embodiment of the present application, step S200 may include steps S221-S222.
[0143] Step S221, determining a second joint angle instruction set of a virtual joint in the virtual robot in the first base coordinate system.
[0144] Among them, the second joint angle instruction set of the virtual joint in the virtual robot in the first base coordinate system can be directly obtained according to the control requirements of the constraint rod, which is recorded as .
[0145] Optionally, the second joint angle instruction set may include one or more joint angle instructions for the virtual joint to perform virtual pitch, yaw, rotation or extension.
[0146] Step S222: determining the first terminal pose of the virtual joint part in the virtual robot in the first base coordinate system based on the second joint angle instruction set by using a kinematic algorithm.
[0147] Among them, a positive solution can be performed based on a kinematic algorithm to obtain the first terminal pose of the virtual joint part of the virtual robot corresponding to the second joint angle instruction set in the first base coordinate system.
[0148] Optionally, the calculation method may include: according to 2. Through the kinematic solution of the virtual robot-physical robot, solve the constraint position in the first base coordinate system to the corresponding virtual joint end, such as the end pose of the fourth joint, as the first end pose, that is, .
[0149] exist Figure 6 In the illustrated embodiment, the processing can be performed through posture conversion, instruction conversion, and kinematic solution, thereby effectively improving the validity and real-time performance of the first posture of the terminal obtained in the adjustment state.
[0150] It should be noted that, in the adjustment state system, the control method may further include: based on the second joint angle instruction set, combined with the current virtual constraint position and constraint position of the constrained rod of the physical robot, the constraint position teaching of the physical robot is performed; wherein, the virtual constraint position includes a preset position on the designated connecting rod of the physical robot during the teaching process; the constraint position teaching includes: coinciding the virtual constraint position with the actual constraint position. In the case that the constrained rod of the physical robot does not reach the preset constraint position, the constraint position teaching of the physical robot can also be performed based on the second joint angle instruction set for controlling the virtual robot in the adjustment state, combined with the actual situation of the virtual constraint position and the actual constraint position of the constrained rod. There is no need to control the actual joints constrained at the end of the physical robot. Only the constrained rod needs to be controlled to coincide the virtual constraint position with the actual constraint position, thereby facilitating the modeling process of the virtual robot. By teaching the constraint position by controlling the constrained rod separately, the control difficulty of the constraint position teaching is effectively reduced, and the control efficiency of the constraint position teaching is improved.
[0151] Optionally, see Figure 7 , Figure 7 A detailed flowchart of step S300 is provided for an embodiment of the present application. Step S300 may include steps S310-S320.
[0152] Step S310, based on the first pose of the end, determining the end transformation pose of the constrained rod in the second base coordinate system of the physical robot.
[0153] Among them, the coordinate system transformation and posture transformation can be performed according to the first posture of the end in the first base coordinate system to obtain the transformed posture of the end of the constrained rod in the second base coordinate system.
[0154] Optionally, the calculation method may include: according to the first position of the terminal , calculate the transformed pose of the end of the constrained rod in the second base coordinate system .
[0155] Step S320, determining the second terminal posture of the physical robot in the second base coordinate system according to the terminal transformation posture and the coordinate system deviation data.
[0156] Among them, considering the coordinate deviation of the end of the constrained rod during the modeling process, the corresponding end second pose of the physical robot in the second base coordinate system can be obtained by combining the end transformation pose and the coordinate system deviation data, which is recorded as .
[0157] Optionally, the transformation relationship between the first coordinate system and the second coordinate system is For example, the second pose of the terminal can be obtained .
[0158] exist Figure 7 In the illustrated embodiment, calculations can be performed based on the posture conversion between different base coordinate systems in combination with the deviation between different coordinate systems, thereby effectively improving the validity and accuracy of the second posture of the terminal.
[0159] Optionally, see Figure 8 , Figure 8 A detailed flowchart of step S400 is provided for an embodiment of the present application. Step S400 may include steps S410-S430.
[0160] Step S410: determining a third joint angle instruction set of the physical robot in the second base coordinate system based on the second posture of the terminal through a kinematic algorithm.
[0161] Among them, since the first joint angle instruction set / the second joint angle instruction set are both control instructions in the first base coordinate system of the virtual robot, in order to improve the effectiveness of control, the corresponding third joint angle instruction set of the physical robot can be determined according to the second position of the terminal in the second base coordinate system, which is recorded as .
[0162] Optionally, the third joint angle instruction set may include one or more joint angle instructions for controlling the physical joints.
[0163] Step S420: If the physical robot is in an operating state, a target joint angle instruction set is determined by combining the third joint angle instruction set and the first joint angle instruction set in the first base coordinate system.
[0164] Step S430: If the physical robot is in an adjustment state, a target joint angle instruction set is determined by combining the third joint angle instruction set and the second joint angle instruction set in the first base coordinate system.
[0165] Among them, the calculation can be performed based on the actual working state of the physical robot and the corresponding two joint angle instruction sets in the two base coordinate systems, that is, according to and 1 / 2. Perform conversion calculation to obtain the final target joint angle instruction set, recorded as .
[0166] Optionally, the target joint angle instruction set may include instruction values of one or more joint angle instructions for controlling all physical joints of the physical robot.
[0167] exist Figure 8 In the illustrated embodiment, instruction sets in two different base coordinate systems can be combined for processing to effectively control the robot to complete the desired motion of the fixed point constraint according to the target joint angle instruction set.
[0168] It should be noted that the control method of the present application can be set up periodically. For example, by repeating the above control steps with a cycle of 2 ms, all joint angle instructions of the robot can be periodically obtained based on the desired end posture instructions of the working point corresponding to the end tool rod in the periodically updated second base coordinate system, and the end tool rod can be controlled to complete the desired movement of the fixed point constraint.
[0169] See also Fig. 9 , Fig. 9 A schematic diagram of the structure of a robot control device provided in an embodiment of the present application, the robot control device 600 may include: a first posture module 610, a second posture module 620 and an instruction module 630;
[0170] The first pose module 610 is used to determine the first pose of the terminal in the first base coordinate system of the virtual robot based on the virtual robot model;
[0171] The second posture module 620 is used to determine the second posture of the terminal in the second base coordinate system of the physical robot according to the first posture of the terminal and the coordinate system deviation data;
[0172] The instruction module 630 is used to determine a target joint angle instruction set based on the second posture of the terminal;
[0173] Among them, the coordinate system deviation data is determined based on the virtual robot model; the target joint angle instruction set is used to control the movement of the physical robot.
[0174] In an optional embodiment, the robot control device 600 may also include a modeling module for abstracting virtual joints of corresponding degrees of freedom based on the constraint state of the physical robot as a whole; wherein the constraint state is a feature representing the restricted movement direction of the spatial rod; determining the constraint position on the constrained rod of the physical robot based on position teaching; wherein the constraint position includes the position where the spatial rod is constrained; the constrained rod includes the robot link that is constrained; constructing the first base coordinate system of the virtual robot based on the constraint position; based on the first base coordinate system, modeling is performed in combination with the virtual joints corresponding to the constraint state and the physical joints constrained to the end part of the physical robot to obtain a virtual robot model.
[0175] In an optional embodiment, the modeling module is also used to: obtain historical data of the physical joints constrained to the end part of the physical robot in a database; obtain virtual data of the constraint position on the constrained rod, the first base coordinate system corresponding to the constraint position, and the virtual joints of the corresponding degrees of freedom in the database according to the parameter data of the constrained rod of the physical robot; wherein the virtual data includes at least one of the joint type, the number of virtual joints, and the virtual joint configuration order; the joint type includes: rotational joints and / or mobile joints; the virtual joint configuration order includes the modeling order of multiple virtual joints; based on the first base coordinate system, the virtual robot model is obtained by combining the historical data and the virtual data.
[0176] In an optional embodiment, the modeling module is also used to: determine coordinate system deviation data based on the first coordinate system and the second coordinate system; wherein the first coordinate system is the coordinate system of the end of the constrained rod in the first base coordinate system, and the second coordinate system is the coordinate system of the end of the constrained rod in the second base coordinate system.
[0177] In an optional embodiment, the physical robot is in an operating state; the first posture module 610 is specifically used to: determine the terminal target posture of the physical robot in the second base coordinate system; determine the terminal third posture of the constrained rod in the first base coordinate system based on the first base coordinate system and the terminal target posture; determine the first joint angle instruction set of the virtual robot in the first base coordinate system based on the terminal third posture through a kinematic algorithm; determine the terminal first posture of the virtual joint part in the virtual robot in the first base coordinate system based on the first joint angle instruction set through a kinematic algorithm.
[0178] In an optional embodiment, the physical robot is in an adjustment state; the first posture module 610 is specifically used to: determine the second joint angle instruction set of the virtual joint in the virtual robot in the first base coordinate system; determine the first posture of the end of the virtual joint part in the virtual robot in the first base coordinate system based on the second joint angle instruction set through a kinematic algorithm.
[0179] In an optional embodiment, the second posture module 620 is specifically used to: determine the end transformation posture of the constrained rod in the second base coordinate system of the physical robot based on the end first posture; determine the end second posture of the physical robot in the second base coordinate system according to the end transformation posture and coordinate system deviation data.
[0180] In an optional embodiment, the instruction module 630 is specifically used to: determine the third joint angle instruction set of the physical robot in the second base coordinate system based on the second posture of the terminal through a kinematic algorithm; if the physical robot is in an operating state, determine the target joint angle instruction set by combining the third joint angle instruction set and the first joint angle instruction set in the first base coordinate system; if the physical robot is in an adjustment state, determine the target joint angle instruction set by combining the third joint angle instruction set and the second joint angle instruction set in the first base coordinate system.
[0181] In an optional embodiment, the robot control device 600 may also include a teaching submodule for teaching the physical robot the constraint position based on the second joint angle instruction set in combination with the current virtual constraint position and constraint position of the constrained rod of the physical robot; wherein the virtual constraint position includes a preset position on a designated link of the physical robot during the teaching process; the constraint position teaching includes: overlapping the virtual constraint position with the actual constraint position.
[0182] Since the principle of solving the problem by the robot control device 600 in the embodiment of the present application is similar to that of the embodiment of the aforementioned robot control method, the implementation of the robot control device 600 in this embodiment can refer to the description in the embodiment of the aforementioned robot control method, and the repeated parts will not be repeated.
[0183] An embodiment of the present application further provides a computer-readable storage medium, in which computer program instructions are stored. When the computer program instructions are read and executed by a processor, the steps of any one of the robot control methods provided in the present embodiment are executed.
[0184] In several embodiments provided in the present application, it should be understood that the disclosed device can also be implemented in other ways. The device embodiments described above are merely schematic, for example, the block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices according to the multiple embodiments of the present application. In this regard, each box in the block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of the code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram, and the combination of the block diagrams, can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.
[0185] In addition, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
[0186] If the function is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, and other media that can store program codes.
[0187] The above description is only an embodiment of the present application and is not intended to limit the scope of protection of the present application. For those skilled in the art, the present application may have various changes and variations. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the scope of protection of the present application. It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in the subsequent drawings.
[0188] The above description is only a specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application.
[0189] It should be noted that, in this article, 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 "include", "comprise" 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, the elements defined by the statement "include..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
Claims
1. A robot control method, It is characterized in that The method comprises: Based on the virtual robot model, determining the first terminal position in the first base coordinate system of the virtual robot; Determine the second pose of the terminal in the second base coordinate system of the physical robot according to the first pose of the terminal and the coordinate system deviation data; wherein the first base coordinate system is constructed based on the constrained position of the virtual robot, and the second base coordinate system is constructed based on the fixed base of the physical robot; Determine a target joint angle instruction set based on the second position posture of the terminal; Wherein, the coordinate system deviation data is determined based on the virtual robot model; the target joint angle instruction set is used to control the physical robot to move; The virtual robot model is obtained in the following manner: based on the constraint state of the entire physical robot, a virtual joint corresponding to the degree of freedom is abstracted; wherein the constraint state is a feature indicating the restricted movement direction of the spatial rod; based on position teaching, the constraint position on the constrained rod of the physical robot is determined; wherein the constraint position includes the position where the spatial rod is constrained; the constrained rod includes the robot link that is constrained; based on the constraint position, the first base coordinate system of the virtual robot is constructed; based on the first base coordinate system, the virtual joint corresponding to the constraint state and the physical joint constrained to the end part of the physical robot are modeled to obtain the virtual robot model; Or, the virtual robot model is obtained in the following manner: according to the identity information of the physical joint constrained to the end part of the physical robot, the historical data of the physical joint is obtained in the database; according to the parameter data of the constrained rod of the physical robot, the virtual data of the virtual joint of the constraint position on the constrained rod, the first base coordinate system corresponding to the constraint position and the corresponding degree of freedom are obtained in the database; wherein, the virtual data includes at least one of the joint type, the number of virtual joints and the virtual joint configuration sequence; the joint type includes: rotational joints and / or mobile joints; the virtual joint configuration sequence includes the modeling sequence of multiple virtual joints; based on the first base coordinate system, the virtual robot model is obtained in combination with the historical data and the virtual data; The coordinate system deviation data is a transformation matrix of the posture difference between a first coordinate system of the constrained rod end in the first base coordinate system and a second coordinate system of the constrained rod end in the second base coordinate system.
2. The method according to claim 1, It is characterized in that The method further comprises: The coordinate system deviation data is determined based on the first coordinate system and the second coordinate system; wherein the first coordinate system is the coordinate system of the end of the constrained rod in the first base coordinate system, and the second coordinate system is the coordinate system of the end of the constrained rod in the second base coordinate system.
3. The method according to claim 1, It is characterized in that in, The physical robot is in an operating state; The step of determining the first terminal position in the first base coordinate system of the virtual robot based on the virtual robot model includes: Determining the end target position of the physical robot in the second base coordinate system according to the working point position in the operating state; Determine a third pose of the end of the constrained rod in the first base coordinate system based on the end target pose and a conversion relationship between the first base coordinate system and the second base coordinate system; Determine, by a kinematic algorithm, a first joint angle instruction set of the virtual robot in the first base coordinate system based on the third posture of the terminal; The first terminal pose of the virtual joint part in the virtual robot in the first base coordinate system is determined by the kinematic algorithm based on the first joint angle instruction set.
4. The method according to claim 1, It is characterized in that in, The physical robot is in an adjustment state; The step of determining the first terminal position in the first base coordinate system of the virtual robot based on the virtual robot model includes: Determining a second joint angle instruction set of a virtual joint in the virtual robot in the first base coordinate system according to the position and posture instruction of the constrained rod in the adjustment state; The first terminal pose of the virtual joint part in the virtual robot in the first base coordinate system is determined based on the second joint angle instruction set through a kinematic algorithm.
5. The method according to claim 3 or 4, It is characterized in that Determining the second posture of the terminal in the second base coordinate system of the physical robot according to the first posture of the terminal and the coordinate system deviation data includes: Determine the terminal transformation posture of the constrained rod in the second base coordinate system of the physical robot based on the terminal first posture and the transformation relationship between the first base coordinate system and the second base coordinate system; According to the terminal conversion posture and the coordinate system deviation data, a second posture of the terminal of the physical robot in the second base coordinate system is determined.
6. The method according to claim 3, It is characterized in that The target joint angle instruction set determined based on the second posture of the terminal includes: Determine, by a kinematic algorithm, a third joint angle instruction set of the physical robot in the second base coordinate system based on the second posture of the terminal; If the physical robot is in an operating state, the target joint angle instruction set is determined by combining the third joint angle instruction set and the first joint angle instruction set in the first base coordinate system.
7. The method according to claim 4, It is characterized in that The target joint angle instruction set determined based on the second posture of the terminal includes: Determine, by a kinematic algorithm, a third joint angle instruction set of the physical robot in the second base coordinate system based on the second posture of the terminal; If the physical robot is in an adjustment state, the target joint angle instruction set is determined by combining the third joint angle instruction set and the second joint angle instruction set in the first base coordinate system.
8. The method according to claim 4, It is characterized in that The method further comprises: Based on the second joint angle instruction set, combined with the current virtual constraint position of the constrained rod of the physical robot and the constraint position, teaching the physical robot the constraint position; Wherein, the virtual constraint position includes a preset position on a designated link of the physical robot during the teaching process; and the constraint position teaching includes: overlapping the virtual constraint position with the actual constraint position.
9. A robot control device, It is characterized in that The device comprises: a first posture module, a second posture module and an instruction module; The first posture module is used to determine the first posture of the terminal in the first base coordinate system of the virtual robot based on the virtual robot model; The second posture module is used to determine the second posture of the terminal in the second base coordinate system of the physical robot according to the first posture of the terminal and the coordinate system deviation data; wherein the first base coordinate system is constructed based on the constraint position of the virtual robot, and the second base coordinate system is constructed based on the fixed base of the physical robot; The instruction module is used to determine a target joint angle instruction set based on the second posture of the terminal; Wherein, the coordinate system deviation data is determined based on the virtual robot model; the target joint angle instruction set is used to control the physical robot to move; The device also includes: a modeling module; the modeling module is used to: abstract virtual joints of corresponding degrees of freedom based on the constraint state of the entire physical robot; wherein the constraint state is a feature indicating the restricted movement direction of the spatial rod; determine the constraint position on the constrained rod of the physical robot based on position teaching; wherein the constraint position includes the position where the spatial rod is constrained; the constrained rod includes a robot link that is constrained; construct the first base coordinate system of the virtual robot based on the constraint position; based on the first base coordinate system, model the virtual joints corresponding to the constraint state and the physical joints constrained to the end portion of the physical robot to obtain the virtual robot model; Or, the modeling module is used to: obtain historical data of the physical joints constrained to the end portion of the physical robot in a database according to the identity information of the physical joints constrained to the end portion of the physical robot; obtain virtual data of the virtual joints of the constraint position on the constrained rod, the first base coordinate system corresponding to the constraint position, and the corresponding degrees of freedom in the database according to the parameter data of the constrained rod of the physical robot; wherein the virtual data includes at least one of the joint type, the number of virtual joints, and the virtual joint configuration sequence; the joint type includes: rotational joints and / or mobile joints; the virtual joint configuration sequence includes the modeling sequence of multiple virtual joints; based on the first base coordinate system, the virtual robot model is obtained in combination with the historical data and the virtual data; The coordinate system deviation data is a transformation matrix of the posture difference between a first coordinate system of the constrained rod end in the first base coordinate system and a second coordinate system of the constrained rod end in the second base coordinate system.
10. The device according to claim 9, It is characterized in that The modeling module is also used to determine the coordinate system deviation data based on the first coordinate system and the second coordinate system; wherein the first coordinate system is the coordinate system of the end of the constrained rod in the first base coordinate system, and the second coordinate system is the coordinate system of the end of the constrained rod in the second base coordinate system.
11. A control device, It is characterized in that The control device includes a memory and a processor, wherein the memory stores program instructions, and when the processor runs the program instructions, the steps in the method according to any one of claims 1 to 8 are executed.
12. A computer-readable storage medium, It is characterized in that The readable storage medium stores computer program instructions, and when the computer program instructions are executed by a processor, the steps in the method according to any one of claims 1 to 8 are executed.
Citation Information
Patent Citations
Mechanical arm positioning method, readable storage medium and surgical robot system
CN114631886A
Surgical robot preoperative positioning method, positioning system and readable storage medium
CN116616873A
