Robot control method and device, electronic equipment, computer readable storage medium and computer program product
By acquiring and processing robot state parameters, combining dynamic model and filtering processing technology, robot safety control is realized, solving the problem of insufficient robustness in the existing technology, and improving the stability and safety of the robot under strong disturbances.
Patent Information
- Application Number
- CN202410247226.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-04
- Publication Date
- 2024-11-22
- Estimated Expiration
- 2044-03-04
AI Technical Summary
Existing robot control technologies pay less attention to robustness, especially the stability of robot balance control and fault tolerance of abnormal situations under strong external disturbances, which affects the safety control of robots in unknown environments.
By obtaining the current state parameters of the robot, determining the basic control parameters based on the preset dynamic model, performing parameter filtering to obtain safety control parameters, and calling the whole-body dynamic model to determine the motion control parameters, realizing safety control of the robot joints.
It improves the robustness of robot control, ensures that the robot can maintain stability and safety under strong external disturbances, and improves its working ability in unknown environments.
Smart Images

Figure CN118990470A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of artificial intelligence, and in particular to a robot control method, device, electronic device, computer-readable storage medium, and computer program product. Background Art
[0002] With the development of industrial automation and artificial intelligence technology, robot control technology has been widely used in manufacturing, medical, agriculture, transportation and other fields, bringing great convenience and benefits to people's production and life. Robot control technology is a variety of control means for robots to complete various tasks and actions. Robot control technology generally includes energy-based passive control theory, adaptive dynamic programming, adaptive optimization output regulation and other control technologies.
[0003] In the related technologies, robot control technology focuses more on the control effect of the robot, and pays less attention to the robustness of robot control, that is, the balance control effect of the robot under strong external disturbance. Robustness determines the stability of the robot working in an unknown environment and the fault tolerance of abnormal situations in actual applications, which is of great significance to the safe control of the robot. Summary of the invention
[0004] The embodiments of the present application provide a robot control method, device, electronic device, computer-readable storage medium and computer program product, which can achieve safe control of the robot and improve the robustness of the robot control.
[0005] The technical solution of the embodiment of the present application is implemented as follows:
[0006] An embodiment of the present application provides a robot control method, which includes: obtaining current state parameters of the robot to be controlled at the current moment; determining basic control parameters for each joint of the robot to be controlled based on a preset dynamic model and the current state parameters; performing parameter filtering processing on the basic control parameters to obtain safety control parameters for each joint of the robot to be controlled; calling the whole-body dynamic model of the robot to be controlled, and determining motion control parameters for each joint of the robot to be controlled based on the safety control parameters of each joint; and controlling the corresponding joint of the robot to be controlled at the current moment based on the motion control parameters of each joint.
[0007] An embodiment of the present application provides a robot control device, including: an acquisition module, used to acquire the current state parameters of the robot to be controlled at the current moment; a basic control parameter determination module, used to call a state regulator, and determine the basic control parameters for each joint of the robot to be controlled based on a preset dynamic model and the current state parameters; a parameter filtering module, used to perform parameter filtering processing on the basic control parameters to obtain safety control parameters for each joint of the robot to be controlled; a motion control parameter determination module, used to call the whole-body dynamic model of the robot to be controlled, and determine the motion control parameters of each joint of the robot to be controlled based on the safety control parameters of each joint; and a control module, used to control the corresponding joint of the robot to be controlled at the current moment based on the motion control parameters of each joint.
[0008] In some embodiments, the parameter filtering module is also used to: construct a control obstacle function based on preset control input parameters and the basic control parameters; the control obstacle function includes a safety objective function and constraints; based on the constraints, determine the corresponding safety control parameters for each joint of the robot to be controlled when the safety objective function reaches a minimum value.
[0009] In some embodiments, the motion control parameter determination module is also used to: call the state observer to determine the expected acceleration of each joint of the robot to be controlled based on the safety control parameters of each joint and the current state parameters; call the whole-body dynamics model of the robot to be controlled to determine the motion control parameters of each joint of the robot to be controlled based on the expected acceleration of each joint.
[0010] In some embodiments, the current state parameters include actual state variables, and the expected acceleration includes the expected acceleration of the center of mass; the motion control parameter determination module is also used to: call the state observer, and determine the reference distance between the reference center of mass position of the robot to be controlled and the current virtual contact point, the reference speed corresponding to the reference distance, the reference center of mass position, and the reference center of mass speed based on the safety control parameters of each joint and the current state parameters; determine the reference state variables based on the reference distance, the reference speed, the reference center of mass position, and the reference center of mass speed; call the state regulator to determine the state feedback parameters of the pre-constructed inverted pendulum model; determine the expected acceleration of the center of mass of each joint based on the state feedback parameters of the inverted pendulum model, the reference state variables, and the actual state variables.
[0011] In some embodiments, the motion control parameter determination module is also used to: call the whole-body dynamics model of the robot to be controlled and the state regulator, and construct a corresponding objective function based on the expected acceleration of each joint; determine the minimum value of the objective function of each joint based on the parameter constraints preset for each joint of the robot to be controlled; and determine the motion control parameters of each joint of the robot to be controlled based on the minimum value.
[0012] In some embodiments, the device also includes a safety control module, which is used to: construct multiple safety constraints for the robot to be controlled; call the whole-body dynamics model of the robot to be controlled, and determine the first motion control parameter of each joint of the robot to be controlled based on the safety control parameter of each joint and the multiple safety constraints; based on the first motion control parameter of each joint, control the corresponding joint of the robot to be controlled at the current moment.
[0013] In some embodiments, the safety control module is also used to: determine the safety control parameter range of the safe rotation angle and the safety control parameter range of the safe rotation angular velocity; construct multiple control obstacle functions based on the safety control parameter range of the safe rotation angle and the safety control parameter range of the safe rotation angular velocity; call the preset dynamic model, and determine multiple safety constraint conditions for the robot to be controlled based on the multiple control obstacle functions.
[0014] In some embodiments, the safety control module is also used to: convert the preset dynamic model into a simplified dynamic model; determine a first control parameter and a second control parameter based on the simplified dynamic model and the current state parameter; determine a first Lie derivative corresponding to the first control parameter and a second Lie derivative corresponding to the second control parameter based on the first control parameter, the second control parameter and the multiple control obstacle functions; determine the multiple safety constraints based on the first Lie derivative, the second Lie derivative and the multiple control obstacle functions.
[0015] In some embodiments, the basic control parameter determination module is also used to: convert the preset dynamic model into a state space model; call the state regulator to determine the state feedback parameters for the robot to be controlled based on the state space model; determine the basic control parameters for each joint of the robot to be controlled based on the state feedback parameters of the robot to be controlled and the current state parameters.
[0016] An embodiment of the present application provides an electronic device, comprising: a memory for storing computer executable instructions; and a processor for implementing the robot control method provided in the embodiment of the present application when executing the computer executable instructions stored in the memory.
[0017] An embodiment of the present application provides a computer-readable storage medium storing computer-executable instructions for implementing the robot control method provided in the embodiment of the present application when executed by a processor.
[0018] An embodiment of the present application provides a computer program product, which includes computer executable instructions, and the computer executable instructions are stored in a computer-readable storage medium; wherein, when a processor of an electronic device reads the computer executable instructions from the computer-readable storage medium and executes the computer executable instructions, the robot control method provided in the embodiment of the present application is implemented.
[0019] The embodiments of the present application have the following beneficial effects:
[0020] First, the current state parameters of the robot to be controlled at the current moment are obtained, and the basic control parameters for each joint of the robot to be controlled are determined based on the preset dynamic model and the current state parameters; then, the basic control parameters are parameter filtered to obtain the safety control parameters for each joint of the robot to be controlled, and the whole body dynamic model of the robot to be controlled is called to determine the motion control parameters of each joint of the robot to be controlled based on the safety control parameters of each joint; finally, based on the motion control parameters of each joint, the corresponding joint of the robot to be controlled is controlled at the current moment. In this way, by parameter filtering of the basic control parameters of each joint of the robot to be controlled, the original control parameters of the robot to be controlled can be converted into optimized control parameters suitable for robot safety control theory through the parameter screening process, that is, the safety control parameters of each joint. And the safety control parameters of each joint of the robot to be controlled are used as the input of the whole body dynamic model, and the whole body dynamic model and the robot safety control theory are combined to obtain the motion control parameters of each joint, and then the motion control parameters of each joint are used to realize the safety control of the corresponding joint of the robot to be controlled, so as to improve the robustness of robot control. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 It is a structural diagram of the robot control system architecture provided by an embodiment of the present application;
[0022] Figure 2 is a schematic diagram of the structure of a robot control device provided in an embodiment of the present application;
[0023] Figure 3It is an optional flowchart of the robot control method provided in the embodiment of the present application;
[0024] Figure 4 is another optional flowchart of the robot control method provided in the embodiment of the present application;
[0025] Figure 5 is a schematic diagram of the structure of the robot provided in an embodiment of the present application;
[0026] Figure 6 is a full-body side view schematic diagram of the robot provided in an embodiment of the present application in a vertical plane;
[0027] Figure 7 is a rotation diagram of the robot's side-swing rotation center provided in an embodiment of the present application;
[0028] Figure 8 is a schematic diagram of a two-wheel motion mode of a robot provided in an embodiment of the present application;
[0029] Fig. 9 is a schematic diagram of an obstacle crossing mode of a robot provided in an embodiment of the present application;
[0030] Fig.10 It is a schematic diagram of the framework of the robot control system provided in the embodiment of the present application;
[0031] Fig.11 It is a structural schematic diagram of a second-order inverted pendulum on a wheel provided in an embodiment of the present application;
[0032] Fig.12 It is a schematic diagram of the flow of robot control provided by an embodiment of the present application;
[0033] Fig.13 is a schematic diagram of an inverted pendulum model of a robot provided in an embodiment of the present application;
[0034] Fig.14 is a schematic diagram of the simulation effect of robot control provided in an embodiment of the present application;
[0035] Fig.15 is a simulation schematic diagram of the rotation angle of the outer wheel hub motor in the whole time period provided by the embodiment of the present application;
[0036] Fig.16 This is a simulation diagram of the rotation angle of the outer wheel hub motor in the entire time period when the lower limit of the safety constraint is changed to -π provided in an embodiment of the present application. DETAILED DESCRIPTION
[0037] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings. The described embodiments should not be regarded as limiting the present application. All other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of this application.
[0038] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it can be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0039] If similar descriptions of "first / second" appear in the application documents, the following instructions are added. In the following description, the terms "first\second\third" involved are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged in a specific order or sequence where permitted, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.
[0040] In the embodiments of the present application, the term "module" or "unit" refers to a computer program or a part of a computer program with a predetermined function, and works together with other related parts to achieve a predetermined goal, and can be implemented in whole or in part by using software, hardware (such as processing circuits or memories) or a combination thereof. Similarly, a processor (or multiple processors or memories) can be used to implement one or more modules or units. In addition, each module or unit can be part of an overall module or unit that includes the function of the module or unit.
[0041] Unless otherwise defined, all technical and scientific terms used in the embodiments of the present application have the same meanings as those commonly understood by those skilled in the art. The terms used in the embodiments of the present application are only for the purpose of describing the embodiments of the present application and are not intended to limit the present application.
[0042] The relevant data collection and processing in the embodiments of this application should be strictly in accordance with the requirements of relevant national laws and regulations when applied in examples, obtain the informed consent or separate consent of the personal information subject, and carry out subsequent data use and processing within the scope of authorization of laws and regulations and the personal information subject.
[0043] Artificial Intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results. In other words, artificial intelligence is a comprehensive technology in computer science that attempts to understand the essence of intelligence and produce a new type of intelligent machine that can respond in a similar way to human intelligence. Artificial intelligence is also the study of the design principles and implementation methods of various intelligent machines, so that the machines have the functions of perception, reasoning and decision-making. For example, the study of robot control methods can enable the robot to have safety control functions during operation.
[0044] Artificial intelligence technology is a comprehensive discipline that covers a wide range of fields, including both hardware-level and software-level technologies. Basic artificial intelligence technologies generally include sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing technology, pre-trained model technology, operation / interaction systems, mechatronics, etc. Among them, pre-trained models are also called large models and basic models. After fine-tuning, they can be widely used in downstream tasks in various major directions of artificial intelligence. Artificial intelligence software technology mainly includes computer vision technology, speech processing technology, natural language processing technology, machine learning / deep learning, and robotics technology.
[0045] Robotics involves the design, construction, operation and use of robots. The goal of robotics is to design machines that can help and assist humans. Robotics integrates the fields of mechanical engineering, electrical engineering, information engineering, mechatronics, electronics, bioengineering, computer engineering, control engineering, software engineering, mathematics, etc., and will be further developed in the future.
[0046] The solution provided in the embodiments of the present application involves artificial intelligence robotics technology, which is specifically described by the following embodiments:
[0047] In the relevant technical solutions in the industry, if you want to keep the wheels of the robot balanced, some use PID controllers, some use model-based LQR, MPC and other controllers, which are basically based on the wheel inverted pendulum model, and some use energy-based passive control theory, adaptive dynamic programming, adaptive optimization output adjustment and other methods.
[0048] Although related technologies have proposed similar robust control methods for second-order wheeled inverted pendulum systems, they have failed to generalize the simplified model of the robot to any higher order and have certain limitations. They are only applied to simplified models of the robot and do not consider the details of combining with whole-body dynamics control, and there is no global control strategy and effect for the control of the robot. They only consider scenarios applied to two-wheel balancing and do not include specific applications such as four-wheel driving, predicted four-wheel, and two-wheel state switching.
[0049] The above methods focus more on the control effect of the robot and pay less attention to the robustness of the robot control. The robustness of a control system refers to the ability of the system to maintain a certain performance unchanged under the disturbance of uncertainty. Based on at least one of the above technical problems existing in the above-mentioned related technologies, the embodiment of the present application is based on a simplified model of a second-order wheel inverted pendulum, introduces a safety controller, and based on the state observer, it can derive a center of mass reference trajectory that can be used for a whole-body dynamic control architecture; establish a constraint inequality derived from the safety controller theory, and bring the constraint into the whole-body dynamic controller to achieve the combination of whole-body dynamic control and safety control, thereby achieving safe control of the robot and improving the robustness of the robot control.
[0050] The following describes an exemplary application of the robot control device (i.e., electronic device) provided in the embodiment of the present application. The device provided in the embodiment of the present application can be implemented as various types of terminals such as a laptop computer, a tablet computer, a desktop computer, a set-top box, a smart phone, a smart speaker, a smart watch, a smart TV, and a vehicle-mounted terminal, and can also be implemented as a server. The following describes an exemplary application when the robot control device is implemented as a server.
[0051] See also Figure 1 , Figure 1 It is a structural diagram of the robot control system 100 provided in an embodiment of the present application. In order to support a robot control application, the robot control application is run on the terminal 400. The terminal 400 is connected to the server 200 through the network 300. The network 300 can be a wide area network or a local area network, or a combination of the two.
[0052] The terminal 400 is used to send a robot control request to the server 200. The server 200 constitutes a robot control device of an embodiment of the present application. The server 200 is used to respond to the robot control request and obtain the current state parameters of the robot 500 to be controlled at the current moment; based on the preset dynamic model and the current state parameters, determine the basic control parameters for each joint of the robot 500 to be controlled; perform parameter filtering on the basic control parameters to obtain the safety control parameters for each joint of the robot 500 to be controlled; call the whole body dynamic model of the robot 500 to be controlled, and determine the motion control parameters of each joint of the robot 500 to be controlled based on the safety control parameters of each joint; based on the motion control parameters of each joint, control the corresponding joint of the robot 500 to be controlled at the current moment to obtain the robot control result at the current moment. When controlling the robot 500 to be controlled, the server 200 can generate a robot control instruction, which carries the motion control parameters of each joint. The server 200 can send the robot control instruction to the robot 500 to be controlled, thereby realizing the control of the robot 500 to be controlled. In some embodiments, after obtaining the robot control result at the current moment, the server 200 returns the robot control result at the current moment to the terminal 400, so as to output the robot control result at the terminal 400 or perform robot control at the next moment based on the robot control result at the terminal 400. For example, the motion trajectory of the robot to be controlled after responding to the robot control instruction can be displayed on the terminal 400 as the robot control result.
[0053] In some embodiments, the server 200 may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDN), and big data and artificial intelligence platforms. The terminal and the server may be directly or indirectly connected via wired or wireless communication, which is not limited in the embodiments of the present application.
[0054] See also Figure 2 , Figure 2 is a schematic diagram of the structure of an electronic device 40 provided in an embodiment of the present application, Figure 2The electronic device 40 shown may be a robot control device, which includes: at least one processor 410, a memory 450, at least one network interface 420, and a user interface 430. The various components in the robot control device are coupled together via a bus system 440. It is understood that the bus system 440 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 440 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, the bus system 440 is not described in detail. Figure 2 Various buses are labeled as bus system 440 .
[0055] The processor 410 can be an integrated circuit chip with signal processing capabilities, such as a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc., where the general-purpose processor can be a microprocessor or any conventional processor, etc.
[0056] The user interface 430 includes one or more output devices 431 that enable presentation of media content, including one or more speakers and / or one or more visual display screens. The user interface 430 also includes one or more input devices 432, including user interface components that facilitate user input, such as a keyboard, mouse, microphone, touch screen display, camera, other input buttons and controls.
[0057] The memory 450 may be removable, non-removable, or a combination thereof. Exemplary hardware devices include solid-state memory, hard disk drives, optical disk drives, etc. The memory 450 may optionally include one or more storage devices that are physically remote from the processor 410.
[0058] The memory 450 includes a volatile memory or a non-volatile memory, and may also include both volatile and non-volatile memories. The non-volatile memory may be a read-only memory (ROM), and the volatile memory may be a random access memory (RAM). The memory 450 described in the embodiments of the present application is intended to include any suitable type of memory.
[0059] In some embodiments, memory 450 can store data to support various operations, examples of which include programs, modules, and data structures, or a subset or superset thereof, as exemplarily described below.
[0060] Operating system 451, including system programs for processing various basic system services and performing hardware-related tasks, such as a framework layer, a core library layer, a driver layer, etc., for implementing various basic services and processing hardware-based tasks;
[0061] A network communication module 452, used to reach other electronic devices via one or more (wired or wireless) network interfaces 420, exemplary network interfaces 420 include: Bluetooth, Wireless Compatibility Certification (WiFi), and Universal Serial Bus (USB), etc.;
[0062] a presentation module 453 for enabling presentation of information via one or more output devices 431 (e.g., display screen, speaker, etc.) associated with the user interface 430 (e.g., a user interface for operating peripherals and displaying content and information);
[0063] The input processing module 454 is used to detect one or more user inputs or interactions from one of the one or more input devices 432 and translate the detected inputs or interactions.
[0064] In some embodiments, the device provided in the embodiments of the present application can be implemented in software. Figure 2 A robot control device 455 stored in a memory 450 is shown, which may be software in the form of a program or a plug-in, including the following software modules: an acquisition module 4551, a basic control parameter determination module 4552, a parameter filtering module 4553, a motion control parameter determination module 4554, and a control module 4555. These modules are logical, and thus may be arbitrarily combined or further split according to the functions implemented. The functions of each module will be described below.
[0065] In other embodiments, the device provided in the embodiments of the present application can be implemented in hardware. As an example, the device provided in the embodiments of the present application can be a processor in the form of a hardware decoding processor, which is programmed to execute the robot control method provided in the embodiments of the present application. For example, the processor in the form of a hardware decoding processor can adopt one or more application specific integrated circuits (Application Specific Integrated Circuit, ASIC), digital signal processors (Digital Signal Processor, DSP), programmable logic devices (Programmable Logic Device, PLD), complex programmable logic devices (Complex Programmable Logic Device, CPLD), field programmable gate arrays (Field-Progr ammable Gate Array, FPGA) or other electronic components.
[0066] In some embodiments, the terminal or server can implement the robot control method provided in the embodiment of the present application by running various computer executable instructions or computer programs. For example, computer executable instructions can be commands, machine instructions or software instructions at the microprogram level. The computer program can be a native program or software module in the operating system; it can be a local (Native) application (Application, APP), that is, a program that needs to be installed in the operating system to run, or it can be a small program that can be embedded in any APP, that is, a program that can be run only by downloading it to the browser environment. In short, the above-mentioned computer executable instructions can be instructions in any form, and the above-mentioned computer program can be an application, module or plug-in in any form.
[0067] The robot control method provided in each embodiment of the present application can be executed by an electronic device, wherein the electronic device can be a server or a terminal, that is, the robot control method provided in each embodiment of the present application can be executed by a server, can be executed by a terminal, or can be executed through interaction between a server and a terminal.
[0068] See also Figure 3 , Figure 3 is an optional flow chart of the robot control method provided in the embodiment of the present application, which will be combined with Figure 3 The steps shown are described in detail, and the execution subject of the robot control method is a server as an example. The method includes the following steps S101 to S105:
[0069] Step S101, obtaining the current state parameters of the robot to be controlled at the current moment.
[0070] In the embodiment of the present application, the robot to be controlled is a robot that needs to be safely controlled to complete the expected task, mainly including moving wheels, head, trunk, waist and legs, and each two parts are connected and controlled by different joints. The current state parameters are a series of state parameters of each joint of the robot to be controlled during the movement process at the current moment, for example, the rotation angle, rotation angular velocity, rotation angular acceleration, joint torque, joint angle and joint angular velocity of the moving wheel.
[0071] Step S102, based on the preset dynamics model and current state parameters, determine the basic control parameters for each joint of the robot to be controlled.
[0072] In the embodiment of the present application, the preset dynamic model is a robot dynamic model obtained by modeling the robot dynamics through the robot dynamics modeling method. The robot dynamics describes the relationship between the joint torque, dynamic parameters and joint motion. The robot dynamics modeling method can be Newton-Euler method, Lagrange method, Kane method, operator algebra method, etc. The basic control parameters include the joint torque of each joint and the torque of the rotating wheel. The determination of the basic control parameters of each joint can be completed by designing a feedback controller through a state regulator, for example, a linear quadratic regulator (Linear Quadratic Regulator, LQR). The specific process is: converting the preset dynamic model into a spatial state model, and by configuring the feedback matrix, converting the robot control system from an open-loop system to a closed-loop system, so that the closed-loop system reaches the desired system state, and finally calculating the basic control parameters for each joint of the robot to be controlled through the relationship between the feedback matrix and the basic control parameters.
[0073] Here, the robot can be controlled by directly sending the basic control parameters to the motor of the robot to be controlled. However, the robot control process lacks whole-body coordination. Therefore, the basic control parameters need to be processed through subsequent parameters to achieve safe control of the robot to be controlled.
[0074] Step S103, performing parameter filtering processing on the basic control parameters to obtain safety control parameters for each joint of the robot to be controlled.
[0075] In an embodiment of the present application, parameter filtering refers to the process of optimizing the basic control parameters, and the safety control parameters obtained after the parameter filtering are the optimized control parameters. The parameter filtering process can be completed by designing a safety controller, for example, a controller based on a control obstacle function. The safety controller is a method for controlling the safety of a robot system, which can limit the state of the robot system by defining a control obstacle function. When the state of the robot system approaches an unsafe area, the safety controller will automatically adjust the control strategy to ensure the safety of the robot system. The basic control parameters can be regarded as the original control strategy of the robot system before the safety controller is applied, and the safety control parameters for each joint of the robot to be controlled can be regarded as the control strategy of the safety controller obtained by solving.
[0076] Here, through the parameter filtering process of the basic control parameters, the optimized control strategy of the robot system can be obtained, thereby ensuring the safety of the robot system.
[0077] Step S104, calling the whole body dynamics model of the robot to be controlled, and determining the motion control parameters of each joint of the robot to be controlled based on the safety control parameters of each joint.
[0078] In the embodiment of the present application, the motion control parameters of each joint refer to the variables to be determined by solving the whole-body dynamics model through the quadratic programming optimizer. The motion control parameters can be optimized joint torque, contact force, joint acceleration, etc. The whole-body control of the robot to be controlled is achieved by calling the whole-body dynamics model of the robot to be controlled. The whole-body control is a multi-task control with different priorities. The safety control parameters of each joint are used as the input of each task to obtain the expected operation space task parameters of the robot movement, and then the expected operation space task parameters are substituted into the whole-body dynamics model of the robot to be controlled for solution, and finally the motion control parameters of each joint of the robot to be controlled are obtained.
[0079] Here, by combining the whole-body dynamics model of the robot to be controlled with the safety control theory, the motion control parameters of each joint optimized by the safety control theory are obtained, so that the safety control of the robot to be controlled can be achieved through the motion control parameters later.
[0080] Step S105 , based on the motion control parameters of each joint, controlling the corresponding joint of the robot to be controlled at the current moment.
[0081] In an embodiment of the present application, after obtaining the motion control parameters of each joint, the motion control parameters of each joint are converted into a target control instruction for each joint, and the target control instruction is sent to the control motor that controls the corresponding joint, and the control motor is used to control the corresponding joint of the robot to be controlled at the current moment, thereby obtaining the robot control result at the current moment. For example, when the motion control parameters are the joint angle, joint angular velocity, and joint torque of the robot's knee joint, the target control instruction corresponds to the target joint angle control instruction, target joint angular velocity control instruction, and target joint torque control instruction for the robot's knee joint, and the above target control instruction is sent to the knee joint control motor, which drives the knee joint of the robot to be controlled to move.
[0082] The robot control method provided by the embodiment of the present application first obtains the current state parameters of the robot to be controlled at the current moment, and determines the basic control parameters for each joint of the robot to be controlled based on the preset dynamic model and the current state parameters; then, the basic control parameters are subjected to parameter filtering processing to obtain the safety control parameters for each joint of the robot to be controlled, and the whole body dynamic model of the robot to be controlled is called, and the motion control parameters of each joint of the robot to be controlled are determined based on the safety control parameters of each joint; finally, based on the motion control parameters of each joint, the corresponding joint of the robot to be controlled is controlled at the current moment. In this way, by performing parameter filtering processing on the basic control parameters of each joint of the robot to be controlled, the original control parameters of the robot to be controlled can be converted into optimized control parameters suitable for the robot safety control theory through the parameter screening process, that is, the safety control parameters of each joint. And the safety control parameters of each joint of the robot to be controlled are used as the input of the whole body dynamic model, and the whole body dynamic model and the robot safety control theory are combined to obtain the motion control parameters of each joint, and then the motion control parameters of each joint are used to realize the safety control of the corresponding joint of the robot to be controlled, thereby improving the robustness of the robot control.
[0083] The following will describe the robot control method in the embodiment of the present application in conjunction with the interaction between the terminal and the server in the robot control system. It should be noted that the robot control method here is a robot control method implemented by the interaction between the terminal and the server, which is substantially the same as the robot control method executed by the server in the above embodiment. The only difference is that the embodiment of the present application also describes the actions performed by the terminal during the execution of the robot control method, and some steps can be executed by both the terminal and the server. Therefore, for the steps in this embodiment that are the same as those in the above embodiment but have different execution subjects, this embodiment is only an exemplary description. In the process of implementation, they can be executed by any execution subject, and the embodiment of the present application does not limit this.
[0084] Figure 4 is another optional flow chart of the robot control method provided in the embodiment of the present application, such as Figure 4 As shown, the method includes the following steps S201 to S214:
[0085] Step S201: The terminal receives a robot control operation input by a user.
[0086] In an embodiment of the present application, a user can input robot control operations in the client of a robot control application. In the robot control application, a robot control function can be provided, and a user (who may be a robot control designer or a robot user) can input robot control operations on the robot control function page to trigger a robot control request.
[0087] In some embodiments, when the user inputs the robot control operation, he can also input the current state parameters of the robot to be controlled at the current moment. When the terminal receives the current state parameters of the robot to be controlled at the current moment, a confirmation robot control window will pop up on the robot control function page. After the terminal detects that the user clicks the confirmation robot control button, the current state parameters of the robot to be controlled at the current moment are further processed to determine the motion control parameters of the machine to be controlled. Alternatively, in other embodiments, the user can directly input the current state parameters of the robot to be controlled at the current moment on the robot control function page. When the terminal receives the current state parameters of the robot to be controlled at the current moment, the robot control function can be directly triggered, and the current state parameters of the robot to be controlled at the current moment are further processed to determine the motion control parameters of the machine to be controlled, thereby achieving safe control of the robot to be controlled.
[0088] Step S202: the terminal generates a robot control request in response to the robot control operation.
[0089] In the embodiment of the present application, the data input by the user can be encapsulated into the robot control request. For example, in the display interface of the robot control application, the current state parameters of the robot to be controlled at the current moment are displayed, and the user can select or sample parameters according to actual needs, and then the current state parameters of the robot to be controlled at the current moment input by the user are encapsulated into the robot control request.
[0090] Step S203: the terminal sends a robot control request to the server.
[0091] Step S204: the server responds to the robot control request and obtains the current state parameters of the robot to be controlled at the current moment.
[0092] In the embodiment of the present application, in response to the robot control request, if the robot control request encapsulates the current state parameters at the current moment, the current state parameters at the current moment can be directly parsed. The current state parameters of the robot to be controlled at the current moment have been described in detail in step S101 and will not be repeated here.
[0093] Step S205: the server converts the preset dynamics model into a state space model.
[0094] In the embodiment of the present application, the state space model refers to a model that describes the dynamic characteristics of the robot system by state variables, which reveals the internal connection of the robot system. The input variables cause the changes of the state variables, and the changes of the state variables determine the changes of the output variables. The state space model mainly includes state equations and output equations. This step is mainly used to simplify the set of equations of the preset dynamic model into In the form of, x represents the state variable, represents the derivative of the state variable, A and B are the simplified system matrices, and u is the control parameter of the state space model to be solved.
[0095] Here, the preset dynamic model is converted into a state-space model, so that the input parameters of the state-space model, that is, the basic control parameters for each joint of the robot to be controlled, can be obtained through the state-space model.
[0096] Step S206: The server calls the state regulator to determine the state feedback parameters for the robot to be controlled based on the state space model.
[0097] In the embodiment of the present application, the goal of the state regulator is to find a set of control parameters that reduce the change of the control parameters and make the state variables small enough, that is, the robot system reaches a stable state. The state regulator can be a linear quadratic regulator, and a feedback controller is designed by calling the state regulator to convert the state space model from an open-loop system to a closed-loop system. The feedback controller includes state feedback parameters, which can be obtained by taking the minimum value of the quadratic objective function of the feedback controller for the state feedback parameters of the robot to be controlled.
[0098] Here, by controlling the closed-loop system through state feedback parameters, the robot system can achieve better control performance and at the same time achieve a stable state.
[0099] Step S207: The server determines basic control parameters for each joint of the robot to be controlled based on the state feedback parameters and current state parameters of the robot to be controlled.
[0100] In the embodiment of the present application, when the state feedback parameters for the robot to be controlled are obtained, the state feedback parameters are multiplied by the state variables in the current state parameters to obtain the basic control parameters for each joint of the robot to be controlled.
[0101] Step S208: The server constructs a control obstacle function based on preset control input parameters and basic control parameters.
[0102] In the embodiment of the present application, the preset control input parameters are predefined decision variables according to the actual control requirements. The decision variables can be selected by the designer according to the control objectives that best meet the robot system. The decision variables can be used to describe the system characteristics of the robot system. The control obstacle function includes a safety objective function and constraints. The control obstacle function introduces a safety objective function in the dynamic control process of the robot system and controls the actions of the robot to be controlled by optimizing the specified constraints to achieve a specific control goal. The safety objective function includes preset control input parameters and basic control parameters. For example, the safety objective function can be defined as the value of the variable when the modulus square of the difference between the preset control input parameters and the basic control parameters reaches the minimum value. According to the safety objective function and the control objectives of the robot system, design constraints suitable for the robot system.
[0103] Here, the control obstacle function can be regarded as a safety controller. By constructing the control obstacle function, it is convenient to obtain the safety control strategy of the optimized safety controller, that is, the safety control parameters of each joint, through the safety objective function and constraints in the control obstacle function, and realize the safety control of the robot to be controlled based on the safety control parameters.
[0104] Step S209: The server determines, based on the constraint conditions, the corresponding safety control parameters for each joint of the robot to be controlled when the safety objective function reaches a minimum value.
[0105] In the embodiment of the present application, the safety control parameter of each joint is the value of the corresponding variable when the safety objective function obtains the minimum value under the constraint conditions, and the safety control parameter is the control strategy of the safety controller obtained by optimization. The specific process is: bring the preset control input parameters and basic control parameters of each joint into the safety objective function to perform the square modulus calculation, obtain multiple square modulus values of each joint, select the square modulus value with the smallest value in each joint, determine the basic control parameter corresponding to the square modulus value, and determine the basic control parameter as the safety control parameter of the corresponding joint.
[0106] Step S210: The server calls the state observer to determine the expected acceleration of each joint of the robot to be controlled based on the safety control parameters and current state parameters of each joint.
[0107] In the embodiment of the present application, the expected acceleration includes the expected acceleration of the support wheels of the robot to be controlled, the expected acceleration of the vertical direction of the trunk, the expected angular acceleration of the trunk, the expected acceleration of the swing wheels, and the expected acceleration of the center of mass. The safety control parameters and current state parameters of each joint are used as input parameters of the state observer, and the expected acceleration of each joint of the robot to be controlled is output through the state observer.
[0108] In some embodiments, the current state parameters include actual state variables, and the expected acceleration includes the expected acceleration of the center of mass. The determination of the expected acceleration of the center of mass can be achieved in the following ways: calling a state observer, based on the safety control parameters and current state parameters of each joint, determining the reference distance between the reference center of mass position of the robot to be controlled and the current virtual contact point, the reference speed corresponding to the reference distance, the reference center of mass position, and the reference center of mass speed; based on the reference distance, the reference speed, the reference center of mass position, and the reference center of mass speed, determining the reference state variable; calling a state regulator, determining the state feedback parameters of a pre-constructed inverted pendulum model; based on the state feedback parameters, the reference state variables, and the actual state variables of the pre-constructed inverted pendulum model, determining the expected acceleration of the center of mass of each joint.
[0109] That is to say, assuming that the mass of the robot to be controlled is concentrated at the center of mass, the center of the line connecting the two supporting wheels is set as the current virtual contact point between the inverted pendulum and the ground, and the center of mass is connected to the current virtual contact point, then the inverted pendulum model of the robot to be controlled can be constructed. The state observer is called, and the reference center of mass position, reference center of mass speed, reference distance between the reference center of mass position and the current virtual contact point, and reference speed corresponding to the reference distance of the center of mass of the robot to be controlled along the forward direction can be planned through heuristic or model-based methods. The reference center of mass position, reference center of mass speed, reference distance between the reference center of mass position and the current virtual contact point, and reference speed corresponding to the reference distance are combined to form the reference state variables of the pre-constructed inverted pendulum model. Then, the linear quadratic programming regulator is used to calculate the state feedback parameters of the pre-constructed inverted pendulum model. The actual state variables and the parameters in the reference state variables are in a one-to-one correspondence, and the actual state variables are included in the pre-acquired current state parameters. By subtracting the reference state variable from the actual state variable to obtain the difference between the two, and then multiplying the state feedback parameter by the difference, the expected acceleration of the center of mass of each joint can be obtained.
[0110] Here, by determining the expected acceleration of the center of mass of each joint, it is possible to ensure the determination of the reference trajectory of the center of mass of the robot to be controlled and to maintain the dynamic balance of the robot.
[0111] Step S211: the server calls the whole-body dynamics model of the robot to be controlled, and determines the motion control parameters of each joint of the robot to be controlled based on the expected acceleration of each joint.
[0112] In an embodiment of the present application, calling the whole-body dynamics model of the robot to be controlled and determining the motion control parameters of each joint of the robot to be controlled based on the expected acceleration of each joint can be achieved in the following way: calling the whole-body dynamics model and state regulator of the robot to be controlled, and constructing a corresponding objective function based on the expected acceleration of each joint; determining the minimum value of the objective function of each joint based on the parameter constraints preset for each joint of the robot to be controlled; and determining the motion control parameters of each joint of the robot to be controlled based on the minimum value.
[0113] That is to say, the expected acceleration of each joint, the relationship between the joint space velocity and the joint space acceleration are combined with the whole body dynamics model of the robot to be controlled to obtain the dynamic equation to be solved of the robot to be controlled, and the expected acceleration of each joint is substituted into the dynamic equation to be solved, and the variables to be solved of the dynamic equation to be solved can be obtained, that is, the motion control parameters of each joint of the robot to be controlled. In the solution process, constraints can also be added to the variables to be solved according to the body structure of the robot to be controlled and the physical limitations of the motor. In addition, in the process of solving the dynamic equation, a quadratic programming optimizer, such as LQR, can also be used to construct an objective function, and then based on the above constraints, a suitable quadratic programming optimizer is selected to obtain the minimum value of the objective function, and the motion control parameters of each joint of the robot to be controlled can be solved.
[0114] Step S212: The server controls the corresponding joints of the robot to be controlled at the current moment based on the motion control parameters of each joint, and obtains the robot control result at the current moment.
[0115] In some embodiments, the control of the corresponding joints of the robot to be controlled at the current moment can also be achieved in the following way: first, construct multiple safety constraints for the robot to be controlled; then, call the whole-body dynamics model of the robot to be controlled, and determine the first motion control parameters of each joint of the robot to be controlled based on the safety control parameters of each joint and multiple safety constraints; finally, based on the first motion control parameters of each joint, control the corresponding joints of the robot to be controlled at the current moment.
[0116] That is to say, in order to further ensure the safe control of the robot to be controlled, multiple control obstacle functions are additionally designed. In the process of solving the first motion control parameters of each joint, multiple safety constraints are added based on the multiple control obstacle functions, so that the solved first motion control parameters of each joint are more suitable for the control objectives of the robot system, thereby achieving effective safe control of the robot to be controlled.
[0117] The safety control parameters of each joint include a safe rotation angle and a safe rotation angular velocity. Constructing multiple safety constraints for the robot to be controlled can be achieved in the following way: first, determining the safety control parameter range of the safe rotation angle and the safety control parameter range of the safe rotation angular velocity; then, based on the safety control parameter range of the safe rotation angle and the safety control parameter range of the safe rotation angular velocity, constructing multiple control obstacle functions; finally, calling a preset dynamic model, and determining multiple safety constraints for the robot to be controlled based on multiple control obstacle functions.
[0118] That is, the plurality of control obstacle functions are determined according to the safety control parameter range of the safety rotation angle and the safety control parameter range of the safety rotation angular velocity in the safety control parameters. The safety control parameter range is between ±π / 4, and the safe rotation angular velocity The safety control parameter range is between ±π / 12, then the multiple control obstacle functions can be and
[0119] Calling the preset dynamic model and determining multiple safety constraints for the robot to be controlled based on the multiple control obstacle functions can be achieved in the following way: first, converting the preset dynamic model into a simplified dynamic model; then, based on the simplified dynamic model and the current state parameters, determining the first control parameter and the second control parameter; based on the first control parameter, the second control parameter and the multiple control obstacle functions, determining the first Lie derivative corresponding to the first control parameter and the second Lie derivative corresponding to the second control parameter; finally, based on the first Lie derivative, the second Lie derivative and the multiple control obstacle functions, determining multiple safety constraints.
[0120] That is, the first Lie derivative corresponding to the first control parameter includes the first-order Lie derivative and the second-order Lie derivative corresponding to the first control parameter, and the second Lie derivative corresponding to the second control parameter includes the first-order Lie derivative and the second-order Lie derivative corresponding to the second control parameter. The first Lie derivative and the second Lie derivative and the multiple control barrier functions are respectively substituted into the general constraint conditions to form multiple safety constraint conditions.
[0121] Step S213: The server sends the robot control result at the current moment to the terminal.
[0122] Step S214: the terminal outputs the robot control result at the current moment.
[0123] In the embodiment of the present application, first, the preset dynamic model is converted into a state space model, and the state regulator is called to determine the state feedback parameters for the robot to be controlled, and then the basic control parameters of each joint are determined by the state feedback parameters and the current state parameters. Then, based on the preset control input parameters and the basic control parameters, a control obstacle function is constructed, and the safety control parameters of each joint corresponding to the minimum value of the safety objective function are determined by the constraints in the control obstacle function. Finally, in the process of solving the motion control parameters of each joint, multiple safety constraints are added to obtain the first motion control parameters of each joint, and the first motion control parameters are used to control the corresponding joints of the robot to be controlled at the current moment. In this way, the safety control parameters of each joint are optimized to obtain the optimization strategy, and the basic control parameters of each joint of the robot to be controlled are obtained through the optimization process of the control obstacle function, and the safety control parameters and multiple safety constraints are combined to determine the first motion control parameters of each joint, so that in the case of strong external interference, the first motion control parameters can be used to achieve effective safety control of the robot to be controlled and improve the robustness of the robot system.
[0124] The following is an explanation of an exemplary application of the embodiments of the present application in a practical application scenario.
[0125] The embodiment of the present application provides a robot control method, in which the robot to be controlled involved in the method is a self-developed robot with the following characteristics: the rotation centers of the hips of the two legs are in the same plane or coaxial; each leg can be extended and shortened independently; there is an independently driven wheel at the bottom of each leg; and there are 4 legs. At the same time, the robot also includes a waist that can rotate in at least two directions, multiple free upper limbs and a head, and the upper limbs are distributed on both sides of the torso. This robot has strong versatility and can be used in a variety of scenarios, including elderly care services, retail tallying, industrial manufacturing, intelligent inspections, and many other scenarios.
[0126] like Figure 5 As shown in the figure, the robot is mainly composed of the following parts: wheels, legs, waist, trunk, upper limbs and head. The wheels are installed at the end of each leg, and each wheel can be driven separately; each leg can be extended and retracted separately in the direction shown in the figure, the two inner legs can rotate around the hip rotation center and maintain linkage; the two outer legs can also rotate around the hip rotation center and maintain linkage. The two hip rotation centers of the inner and outer legs are driven independently, but in the same vertical plane, Figure 6The figure shows one of the designs, with two coaxial rotation centers. The upper end of the leg is connected to the waist of the robot, which has two rotation centers, a pitch rotation center and a roll rotation center that can enable the body to pitch and swing. The roll rotation center and the pitch rotation center are designed in series and are located at the upper end of the pitch rotation center, connected to the robot's body. The upper end of the robot's body is connected to the head, and on both sides of the body, there is an upper limb with multiple degrees of freedom. In some designs, the end of the upper limb can also be connected to a hand claw.
[0127] When moving on flat ground, the robot can maintain Figure 7 The four-wheel mode state shown can also be formed by the hip rotation center as shown in Figure 8 The two-wheel dynamic smooth motion mode shown in the figure. In the four-wheel motion mode, the robot is always in a stable state (does not fall), which makes it easier for the upper limbs to follow the operator's instructions to perform some operating tasks. At the same time, when moving on flat ground, switching from four wheels to two wheels can reduce the footprint and match the bipedal humanoid robot. When moving on non-flat ground, such as typical steps or stairs, you can use Fig. 9 The double-wheel alternating mode shown allows for dynamic obstacle crossing.
[0128] Based on the robot body described above, the block diagram of the robot control system is given as follows Fig.10 As shown. Among them, the photo on the far right represents the robot body. The four wheels of the robot are driven by four rotary motors separately, and the length of the four legs is driven by four linear motors separately. The four legs can be divided into two inner linkage legs and two outer linkage legs. The two inner linkage legs are driven by the same rotary motor, and the two outer linkage legs are driven by the same rotary motor. In addition, each joint of the robot's waist and each joint of the upper body are driven by a rotary motor. For all the rotary motors described above, the motor can receive a rotation angle instruction, a rotation speed instruction, and a rotation torque instruction, and the bottom drive board of the motor will drive the motor to rotate according to the received instruction signal. For all the linear motors described above, the rotary motor can receive a linear movement position instruction, a linear movement speed instruction, and a driving force instruction, and the bottom drive board of the linear motor will drive the motor to move linearly according to the received instruction signal. The rotation and movement of the rotary motor and the linear motor change the posture of the robot and the position of the robot in three-dimensional space, and realize the control of the robot. The rapid change of joint angle instruction robot cooperation can also make the robot's posture change highly dynamically and change the contact between the robot and the environment.
[0129] The state of the robot can be obtained by different sensors installed on the robot body. For example, the current posture of the robot can be obtained by using inertial sensors; the rotation and movement position and speed information of each joint of the robot in the current state can be obtained by using motor encoders; the magnitude and direction of the force and torque of the joint where the sensor is located can be obtained by using force / torque sensors; the pressure of the robot's soles, body surface, hands and even fingertips can be obtained by using tactile sensors, and the change characteristics over a period of time; visual sensors such as cameras can be used to identify obstacles in the robot's field of view and indirectly obtain its own state information.
[0130] The function of the State Estimation module is to fuse the various postures and state information obtained by the robot. For example, the current posture of the robot is obtained from the inertial sensor, the mileage information obtained from the wheel rotation, and the visual positioning information are integrated to obtain a relatively accurate and reliable position of the robot in the world coordinate system; the contact between the robot and the external environment can be obtained from the force / torque sensor and the tactile sensor; the current posture of the robot is obtained from the inertial sensor and the angle information of the encoders of each motor joint is integrated, and the center of mass position of the robot is estimated in combination with the robot's own model parameters. These fused robot state information will be used as feedback for the robot's motion generation, planning, and control.
[0131] Fig.10 The left module is the motion generation module. Depending on the state of the robot's completed action, there will be different motion generation strategies. The robot's working modes include but are not limited to: four-wheel motion mode, two-wheel motion mode, four-wheel to two-wheel conversion mode, stair climbing mode, four-wheel active suspension mode, and folding mode. Considering the complexity of the upper body, it can be used to complete a variety of tasks. The robot can contain more motion modes, which are not listed here one by one.
[0132] Different modes have different ways of generating actions. These modes call some common basic technology and algorithm modules. These modules are listed in Fig.10The leftmost column includes but is not limited to: model-free controllers, model-based controllers (e.g., LQR, model predictive control MPC, adaptive controllers, robust controllers, etc.). For example, in the two-wheel mode, the balance of the wheels needs to be controlled, and the model-free proportional integral differential controller PID can be used to generate the reference trajectory of the wheels and the center of mass of the robot. The specific method can call one or more of the model-free control, model-based control (LQR, model predictive control MPC, etc.), adaptive controller, and robust controller. In the two-wheel control stage of the four-wheel to two-wheel mode, a similar control module is also required. In the four-wheel mode, if the wheel leg extending in front of the body and the wheel leg extending to the back of the body are equivalent, the dynamics of the equivalent wheel leg and the upper body can be described by a first-order or second-order inverted pendulum, and this part can also call the above-mentioned module for balance control. The control trajectory obtained in this way can keep the robot balanced in the four-wheel state. Once the road surface is uneven, potholes or obstacles appear, the actions generated by similar controllers can achieve relative stability of the robot's upper body. This is also a way to implement the four-wheel active suspension function.
[0133] The action generation module obtains a series of robot task information, including but not limited to: center of mass tasks, supporting leg tasks, swinging leg tasks, waist tasks, etc. Similarly, considering the complexity of the upper body, it can be used to complete a variety of actions and tasks. The robot can include more tasks, which are not listed here one by one. These tasks are used as inputs to the whole body motion control module. In the whole body motion control module, the robot will be modeled and calibrated in detail, and the robot's dynamic model and external force conditions will be used as optimization constraints. After the optimization process, the target joint angle command, target joint angular velocity command, and target joint torque command of each joint of the robot are calculated. Finally, the target joint angle command, target joint angular velocity command, and target joint torque command of each joint will be sent to the robot's joint drivers to complete the robot control closed loop.
[0134] Before introducing the specific steps of the balance control method provided by the present application, the method for establishing the dynamic model corresponding to the balance control method provided by the present application is first introduced. Fig.11 , Fig.11 A schematic diagram of a second-order inverted pendulum provided by an embodiment of the present application is shown.
[0135] To realize the balance control method of the wheel-legged robot, it is necessary to model the dynamics of the wheel-legged robot and obtain the dynamic model of the wheel-legged robot during the balance control process. In order to describe clearly and concisely, and to facilitate understanding, it is assumed that the length of at least one leg mechanism of the wheel-legged robot is equal, the angle between at least one leg mechanism and the ground is equal, and the rotation speed and position of each moving wheel are the same, as follows:
[0136] The forward direction of the wheel-legged robot is the positive direction of the x-axis, the rightward direction is the positive direction of the y-axis, and the upward direction perpendicular to the contact surface is the positive direction of the z-axis. A world coordinate system is established, and when the wheel-legged robot is observed from the y-axis direction, at least one leg mechanism of the wheel-legged robot is observed to overlap. The at least one leg mechanism can be an outer leg mechanism of the wheel-legged robot, or all leg mechanisms of the wheel-legged robot.
[0137] For example, the lengths of the four leg mechanisms of the wheel-legged robot change synchronously, and the angles between the four leg mechanisms and the wheel-legged robot base are synchronized. Observing from the direction corresponding to the y-axis, the four leg mechanisms overlap, and the four moving wheels also overlap. In this case, the abstract two-dimensional model of the wheel-legged robot on the yoz plane of the world coordinate system is as follows Fig.11 This two-dimensional model belongs to a second-order inverted pendulum model, which includes: a moving wheel, a connecting rod B (corresponding to at least one moving leg of the wheel-legged robot) and a connecting rod P (corresponding to the trunk mechanism of the wheel-legged robot).
[0138] like Fig.11 As shown in the two-dimensional model, the direction in which the moving wheel rotates to the left of the contact surface is taken as the positive direction, the travel distance is x, and the angle of rotation of the moving wheel relative to the world coordinate system is defined as The counterclockwise direction is taken as the positive direction of the moving wheel rotation angle. The angle of the connecting rod B formed by the overlap of the four leg mechanisms relative to the world coordinate system is defined as α, and the counterclockwise direction is positive. The angle of the connecting rod P corresponding to the torso mechanism relative to the world coordinate system is defined as β, and the counterclockwise direction is taken as the positive direction of the moving wheel rotation angle.
[0139] definition They are The derivatives of α, β with respect to time; where, represents the rotation speed of the moving wheel (also called the angle of the moving wheel), represents the angular velocity of the leg mechanism, Represents the angular velocity of the torso mechanism; definition They are The second-order derivatives of α and β with respect to time; is the angular acceleration of the moving wheel, is the angular acceleration of the leg mechanism, Represents the angular acceleration of the torso mechanism.
[0140] The rotation angle of the moving wheel relative to the world coordinate system is driven by the joint motor on the first joint. The rotation torque of the first joint is represented by τ1, and the clockwise direction is regarded as the positive direction of the rotation torque of the first joint.
[0141] The rotation angle of the trunk mechanism relative to the world coordinate system is driven by the joint motor of the second joint. The rotational torque of the second joint is represented by τ2, and the counterclockwise direction is regarded as the positive direction of the rotational torque of the second joint.
[0142] The masses of the moving wheel, the connecting rod B (equivalent to at least one overlapping leg mechanism), and the connecting rod P (equivalent to the trunk mechanism) are expressed as m W , m B , m P The rotational inertia of the moving wheel, connecting rod B, and connecting rod P are expressed as: J W , J B , J P The radius of the moving wheel is represented by r, and the length of the connecting rod B is represented by L B The length of the line from the intersection of connecting rod B and the moving wheel to the geometric center of connecting rod B is represented by l B The length of the line from the intersection of connecting rod B and the wheel to the geometric center of connecting rod P is represented by l P express.
[0143] Based on the definition of the above physical quantities, the first step is to derive the total kinetic energy T of the moving wheel. W , the total kinetic energy of connecting rod B is T B and the total kinetic energy T of the connecting rod P P The total kinetic energy T of the wheel-legged robot is obtained by using the expression of W , the total kinetic energy of connecting rod B is T B and the total kinetic energy T of the connecting rod P P The calculation of kinetic energy includes both translational kinetic energy and rotational kinetic energy.
[0144] The specific expressions are shown in formulas (1)-(4).
[0145]
[0146]
[0147]
[0148] T=T W +T B +T P (4)
[0149] The second step is to calculate the total kinetic energy T of the system for each degree of freedom in generalized coordinates. The partial derivatives of the derivatives of each degree of freedom are calculated respectively, and the derivatives of the derivatives of each degree of freedom are derived with respect to time respectively. The specific process is shown in formula (5).
[0150]
[0151] The third step is to calculate the total potential energy U of the system. The calculation expression of the total potential energy U of the system is shown in formula (6).
[0152] U = gm P (l P cos(α+β)+L B cosα)+gl B m B cosα (6)
[0153] It should be noted that in the above formula, the plane where the moving wheel is located is regarded as the zero potential energy surface, that is, the potential energy of the moving wheel is considered to be 0. The potential energy of the moving wheel does not appear in the formula of the above system total potential energy U. Of course, other potential energy surfaces can also be selected. This will not affect the implementation of the balancing control method. This application does not limit the potential energy surface used in the process of calculating the total potential energy of the system.
[0154] The fourth step is to calculate the total potential energy U of the system and take partial derivatives for each degree of freedom in the generalized coordinates;
[0155] Step 5 Using the above formulas, the dynamic equation of the wheeled legged robot under the second-order inverted pendulum model can be derived based on the Euler-Lagrange equation. The formula is as follows:
[0156]
[0157]
[0158]
[0159] The dynamic equation can be written in polynomial form as follows:
[0160]
[0161]
[0162] Among them, M(α,β) is a 3*3 inertia matrix; specifically includes Each element in M(α,β) It is the elements in the inertia matrix, which are used to characterize the mass and moment of inertia of the joint rigid bodies that make up the wheel-legged robot when the deflection angle of the leg mechanism is α and the deflection angle of the trunk mechanism is β, as well as the equivalent inertial physical quantities of each mechanism under mutual influence. It is a 3*1 deflection force matrix, which can also be called a deflection force vector, including: It is used to characterize the Coriolis force and centripetal force on each mechanism of the wheel-legged robot; G(α,β) represents the 3*1 gravity matrix, which can also be called the gravity vector, including [0g α gβ ] T .
[0163] After the matrix-form dynamic equation is derived through the above process, the subsequent balance control process can directly use the matrix-form dynamic equation without repeating the above derivation process in the balance control process. Below, each step of the balance control method is introduced and explained through the embodiments of the present application.
[0164] Step 1: Obtain the state quantity of the wheel-legged robot at the first moment, where the state quantity at the first moment is used to characterize the motion state of the wheel-legged robot at the first moment.
[0165] In some embodiments, the first moment is any moment in the motion process of the wheel-legged robot. Optionally, at the first moment, at least one leg mechanism of the wheel-legged robot has an equal angle with the direction perpendicular to the contact surface, the rotation angular velocities of the moving wheels corresponding to each leg mechanism are equal, the rotation angles of at least one first joint connecting the leg mechanism and the moving wheel are equal, and the rotation angular velocities of at least one first joint are equal. That is, when observing from the side of the wheel-legged robot, at least one leg mechanism overlaps, and at least one moving wheel overlaps.
[0166] It should be noted that this balance control method is implemented on the basis of abstracting the wheel-legged robot into a second-order inverted pendulum model.
[0167] In some embodiments, the state quantity is used to describe the motion state of the wheel-legged robot at the first moment. The posture and motion speed of the wheel-legged robot at the first moment can be determined according to the state quantity at the first moment. The state quantity at the first moment is obtained by observing the motion state of the wheel-legged robot by the sensor on the wheel-legged robot.
[0168] Optionally, the state quantity at the first moment includes at least one of the following: a deflection angle α of the leg mechanism, a deflection angle β of the trunk mechanism, an angular velocity of the moving wheel Angular velocity of the leg mechanism and the angular velocity of the trunk
[0169] Exemplarily, the physical quantities included in the state quantity are observed in the world coordinate system; wherein the deflection angle α of the leg mechanism refers to: the deflection angle of the leg mechanism relative to the z-axis in the world coordinate system, the deflection angle β of the trunk mechanism refers to: the deflection angle of the trunk mechanism relative to the z-axis in the world coordinate system, and the angular velocity of the moving wheel Refers to: the rotation speed of the moving wheel in the x-axis direction in the world coordinate system, the angular velocity of the leg mechanism Used to represent the deflection angle change rate of the leg mechanism and the angular velocity of the trunk mechanism Used to characterize the speed of change of the deflection angle of the leg-torso mechanism.
[0170] It should be noted that the physical quantities in the state quantity can also be determined by the relative positions between the various mechanisms of the wheel-legged robot. For example, the deflection angle α of the leg mechanism refers to: the deflection angle of the leg mechanism relative to the z-axis in the world coordinate system, and the deflection angle β′ of the trunk mechanism refers to: the deflection angle of the trunk mechanism relative to the leg mechanism, that is, β=α+β′ (β′ has the same positive direction as β). The observation coordinate system corresponding to each physical quantity in the state quantity can be determined according to actual needs, and this application does not limit it here.
[0171] The physical quantities in each formula in the present application are obtained based on observations in the world coordinate system. Of course, the physical quantities determined using other observation coordinate systems can also realize the present balance control method. The relevant formulas can be obtained by making equal substitutions based on the formulas provided in the present application and will not be mentioned in the text.
[0172] Since in the second-order inverted pendulum model, the leg mechanisms are assumed to overlap by default, the deflection speed and angular velocity of at least one leg mechanism are the same, and the rotation speed of at least one moving wheel is also the same.
[0173] For example, the state variables are: the deflection angle α of the leg mechanism, the deflection angle β of the trunk mechanism, the angular velocity of the moving wheel Angular velocity of the leg mechanism and the angular velocity of the trunk The state quantity can be represented by the symbol ξ, and the state quantity ξ can be expressed as:
[0174] In this case, the state quantity of the wheel-legged robot at the first moment is obtained, including: determining the deflection angle α of the leg mechanism and the deflection angle β of the trunk mechanism through the inertial sensor and the motor encoder; determining the angular velocity of the moving wheel through the motor encoder Angular velocity of the leg mechanism and the angular velocity of the trunk
[0175] Optionally, the clock cycles of the inertial sensors and motor encoders in the wheel-legged robot are the same, or in multiples, so that the physical quantities included in the state quantity are all physical quantities at the first moment. For the specific contents of the inertial encoder and the motor encoder, please refer to the above introduction, which will not be repeated here.
[0176] Step 2, according to the dynamic equation of the wheel-legged robot and the state quantity at the first moment, determine the dynamic controller parameters, the dynamic controller parameters are used to define the mapping relationship between the angular acceleration at the first moment and the rotational torque at the second moment; the angular acceleration at the first moment includes: the angular acceleration of the trunk mechanism, the angular acceleration of at least one leg mechanism and the angular acceleration of the moving wheel; the rotational torque at the second moment includes: the rotational torque of the first joint and the rotational torque of the second joint.
[0177] In some embodiments, the angular acceleration at the first moment refers to the rotational acceleration of each mechanism of the wheel-legged robot after being abstracted into a second-order inverted pendulum model (it can also be understood as the angular acceleration of the joint motor). The angular acceleration at the first moment includes: the angular acceleration of the moving wheel Angular acceleration of the leg mechanism and the angular acceleration of the trunk mechanism
[0178] From the above content, it can be seen that after the wheel-legged robot is abstracted into a second-order inverted pendulum model, the matrix-form dynamic equation can be obtained. The following describes the process of determining the parameters of the dynamic controller through several embodiments, and the execution subject of each step of the process can be a computer device.
[0179] Step 2 in the above embodiment: According to the dynamics equation of the wheel-legged robot and the state quantity at the first moment, determining the parameters of the dynamics controller may include the following steps: First, substitute the state quantity at the first moment into the dynamics equation to determine the inertia matrix, deflection force matrix and gravity matrix at the first moment. The inertia matrix is used to characterize the mass and moment of inertia of each joint rigid body constituting the wheel-legged robot at the first moment, the deflection force matrix is used to characterize the deflection force of the wheel-legged robot at the first moment, and the gravity matrix is used to characterize the gravity of the wheel-legged robot at the first moment. Then, according to the inertia matrix, deflection force matrix and gravity matrix, the parameters of the dynamics controller are determined.
[0180] In some embodiments, the inertia matrix is used to characterize the inertia of each joint rigid body (including the first joint and the second joint) of the wheel-legged robot at the first moment, including mass and moment of inertia. Optionally, the inertia matrix can be calculated according to the dynamic equation. When the wheel-legged robot is abstracted into a second-order inverted pendulum model, the inertia matrix is a 3*3 matrix.
[0181] In some embodiments, the deflection force matrix is used to characterize the Coriolis force and centripetal force on each mechanism. Optionally, the deflection force matrix includes the deflection force caused by the deflection angle of the moving wheel, the deflection force caused by the deflection angle of the leg mechanism, and the deflection force caused by the deflection angle of the trunk mechanism.
[0182] In some embodiments, the gravity matrix is used to characterize the gravity received by each mechanism. Optionally, the gravity matrix includes the gravity received by the moving wheels, the gravity received by the leg structure, and the gravity received by the trunk mechanism. Optionally, in this solution, it can be assumed that the moving wheels (such as the moving wheels of the outer leg mechanism) are always in contact with the contact surface. During the balance control process, the gravity received by the moving wheels due to their own mass remains unchanged. The plane where the center of mass of the moving wheels is located is used as the zero potential energy surface, and the gravity received by the moving wheels is 0, so as to reduce the computational overhead of the balance control process.
[0183] Among them, please refer to the above introduction for the relevant contents of the inertia matrix, deviator matrix and gravity matrix, which will not be repeated here. The expressions of each element in the above inertia matrix, deviator matrix and gravity matrix are also derived in advance by the dynamics formula; after determining the state quantity at the first moment, according to the formula, the specific values of each element included in the inertia matrix, deviator matrix and gravity matrix at the first moment can be calculated; and then the inertia matrix, deviator matrix and gravity matrix at the first moment are obtained.
[0184] In some embodiments, the dynamic controller parameters include: a proportional parameter matrix and an offset parameter matrix, the proportional parameter matrix is used to characterize the proportional relationship between the angular acceleration and the torque at the first moment, and the offset parameter matrix is used to characterize the offset relationship between the angular acceleration and the torque at the first moment; optionally, the robust controller calculates the offset parameter matrix based on the inertia matrix, the deflection force matrix and the gravity matrix; and calculates the proportional parameter matrix based on the inertia matrix.
[0185] In the above steps, the parameters of the dynamic controller are determined according to the inertia matrix, the deflection force matrix and the gravity matrix, and the following sub-steps are also included: Sub-step 1, using the selection matrix to process the product between the inverse matrix of the inertia matrix and the deflection force matrix, and the product between the inverse matrix of the inertia matrix and the gravity matrix, respectively, to obtain the offset parameter matrix, and the selection matrix is used to extract the rotational torque of the first joint and the rotational torque of the second joint from the dynamic equation. Sub-step 2, using the selection matrix to process the inverse matrix of the inertia matrix to obtain the proportional parameter matrix.
[0186] Following the content of step 2 in the above embodiment, the above two sub-steps are introduced and explained:
[0187] After partial feedback linearization of the matrix form dynamic equation, we get formula (12):
[0188]
[0189] Among them, M -1 (α, β) is the inverse matrix of the inertia matrix, M -1(α, β)*M(α, β)=E, where E is the unit matrix. The physical meanings of other parameters in the equation can be found in the above embodiment and will not be elaborated here.
[0190] Furthermore, in order to make only τ1 and τ2 appear in formula (12), it is convenient to simplify the execution logic of subsequent steps and reduce the calculation amount of the robust controller. In the design process of the robust controller, the above formula (12) needs to be further adjusted. The selection matrix is used to process formula (12) to obtain formula (13):
[0191]
[0192] in, This is the offset parameter matrix f[] mentioned above, That is the scale parameter matrix g[], S T is the transposed matrix of matrix S, where S matrix is a 3*2 selection matrix.
[0193] Optionally, formula (13) can be pre-designed after the wheel-legged robot is abstracted as a second-order inverted pendulum model. During the balance control method, after obtaining the state quantity at the first moment, the robust controller can calculate the proportional parameter matrix and the offset parameter matrix according to formula (13) and formulas (7) to (11).
[0194] In some embodiments, the dynamic equation of the above-mentioned robot is derived based on the Euler-Lagrange equation based on the abstraction of the wheel-legged robot into a second-order inverted pendulum model. For the derivation process of the dynamic equation, please refer to the above embodiment, which will not be repeated here.
[0195] Combination of controller with control obstacle function and simplified model control. The above dynamic model is written in state space representation as shown in formula (14).
[0196]
[0197] Among them, 0 3×3 is a 3×3 dimensional zero matrix, I 3×3 is a 3×3 dimensional identity matrix, A 21 and A 22 Represent two different system matrices respectively.
[0198] Based on the spatial state representation, a feedback controller can be designed using a linear quadratic regulator. The expression of the controller is shown in formula (15).
[0199] u=-Kx (15)
[0200] Among them, u is the original control strategy before applying the safety controller, K represents the feedback matrix, and x represents the state variable used for the feedback controller.
[0201] The flow chart of robot system control is as follows: Fig.12 As shown, the safety controller is equivalent to a filter sandwiched between the linear quadratic regulator LQR / proportional-integral-differential controller PID and the actual robot system. The expression of the safety controller is shown in formula (16).
[0202]
[0203] s L f h(x)+L g h(x)u≥-α(h(x)) (16)
[0204] Where u(x) is the control strategy of the safety controller obtained by solving, that is, the objective function, v represents the decision variable, which belongs to the m-dimensional real number set, argmin represents the variable value when the objective function u(x) takes the minimum value, h(x) represents the safety boundary function, L f h(x) and L g h(x) represents two different first-order Lie derivatives, and α represents a K-type function.
[0205] Next, there are two solutions. Solution one is the robot control based on the simplified model. Since the original control strategy u obtained by formula (16) is directly the torque of the wheel and the torque of the hip joint, the torque is directly sent to the robot to achieve the control of the robot. The control of other joints of the robot can be performed according to the planned trajectory for position control, or other solutions can be adopted, which will not be discussed in detail here. The advantage of this method is that the control is relatively stable and is not affected by other joints. The disadvantage is that it lacks whole-body coordination. Solution two is to use the results of the simplified model as a reference for whole-body dynamic control. The control strategy u(x) of the safety controller obtained by the solution above is input into the state observer. At the same time, the input of the state observer also includes the joint angle, inertial position and posture at the current moment. Combined with this information, the state observer can obtain the reference value of the difference between the projection of the robot CoM on the ground and the projection of the wheel center on the ground at the next moment, that is, Δx in formula (23) r ; and the reference value of the speed of the difference between the projection of the robot CoM on the ground and the projection of the wheel center on the ground, that is, This achieves a combination of simplified model control and whole-body dynamics control.
[0206] The whole-body dynamics model establishment and control method of the robot are as follows: The first step is to establish a whole-body dynamics model: Based on rigid body dynamics, construct the robot dynamics model in the joint space system:
[0207]
[0208] in, represents the joint space inertia matrix; represents the joint space offset force vector, which is the sum of Coriolis force, centrifugal force, and gravity; represents the selection matrix; represents the contact point Jacobian matrix; represents the active joint torque vector; represents the contact force vector; They represent the generalized position, generalized velocity, and generalized acceleration vectors respectively. G Represents the total degree of freedom of the robot, that is, the floating basis degree of freedom N F and the active joint degrees of freedom N J sum; N C Represents the number of contact forces, that is, the number of contact points n C With the dimension N of a single contact force D ∈{0,1,2,3}.
[0209] The second step is to calculate the expected operation space task: the operation space task refers to the acceleration in the operation space The expected operation space task is the expected acceleration calculated by the feedback controller based on the reference trajectory and the actual state of the robot.
[0210] The operational space tasks of dynamic stair climbing include but are not limited to the following:
[0211] (I) Support wheel task: It is expected that the support wheel is in pure rolling motion, without relative sliding with the ground. Therefore, the expected acceleration of the support wheel is always zero:
[0212]
[0213] in, is the expected acceleration of the support wheel, N C ×1-dimensional zero matrix.
[0214] If the robot works in four-wheel mode, there are four support wheels, each of which has a task in the x direction. If the wheels are assumed to be on the ground, the height of the wheels in the z direction is constant, and the tasks of the four support wheels in the z direction are not considered for the time being. If the robot's left and right turning actions in the four-wheel mode and the robot's translational actions along the y direction are not considered, the tasks of the four support wheels in the y direction can also be temporarily ignored.
[0215] If the robot works in the two-wheel balancing mode, there are two support wheels and two swing wheels. At this time, the tasks of the support wheels are not considered for the time being, because in order to ensure the realization of two-wheel balancing, the relevant tasks have been included in the "(V) Center of mass task", and the tasks of the two swing wheels include two dimensions, the x-direction and the z-direction. Similarly, if the left and right turning actions of the robot in the two-wheel balancing mode and the translational action of the robot along the y-direction are not considered, the tasks of the two swing wheels in the y-direction can also be temporarily ignored. Detailed task construction details are included in the "(IV) Swinging wheel task".
[0216] (II) Trunk vertical direction task: Based on the height information of the stair surface and the position of the support wheels on the stairs, the trunk vertical direction reference position can be planned by spline curve interpolation method. speed Acceleration Based on inertia, joint angles, and angular velocity information, the actual vertical position of the trunk can be calculated through forward kinematics. speed In order to improve the robustness of the controller, a PD feedback controller is constructed to calculate the desired acceleration of the trunk in the vertical direction:
[0217]
[0218] in, is the expected acceleration of the trunk in the vertical direction, k p,base Represents the proportional coefficient of the trunk in the vertical direction, k d,base Represents the differential coefficient of the torso in the vertical direction.
[0219] (III) Trunk posture task: When climbing stairs, the robot's trunk should be kept vertical as much as possible and should not rotate on the stairs. That is, the Euler angle reference trajectory composed of the trunk's roll, pitch, and yaw should all be zero, i.e. At the same time, based on the inertial information, the actual Euler angle can be calculated Angular velocity Angular acceleration Also use the PD controller to calculate the desired angular acceleration of the torso:
[0220]
[0221] in, is the desired angular acceleration of the trunk, k p,euler The scale factor representing the torso posture, k d,euler Differentiation coefficient representing the torso posture.
[0222] (IV) Swinging wheel task: Applicable to the scenario where the two swinging wheels are in motion during a two-wheel balance, such as when the two swinging wheels are required to present specific postures and movements when the two wheels are moving forward on the ground, or when the supporting wheel legs and the swinging wheel legs are switching when the two wheels are moving forward on the ground, or when the supporting wheel legs and the swinging wheel legs are switching when walking up or down stairs.
[0223] The reference position of the swing wheel in the operating space is planned by spline curve interpolation method speed Acceleration Based on inertia, joint angle and angular velocity information, the actual position of the swing wheel can be calculated through positive kinematics speed Also using the PD feedback controller, calculate the desired acceleration of the swing wheel:
[0224]
[0225] in, is the desired acceleration of the swing wheel, k p,swing represents the proportional coefficient of the swing wheel, k d,swing Represents the differential coefficient of the pendulum wheel.
[0226] (V) Center of mass task: The reference position of the center of mass along the forward direction can be planned through heuristic or model-based methods speed During the movement, the center of mass not only needs to move continuously in the forward direction, but also needs to help the robot maintain dynamic balance. Therefore, a balance controller needs to be built to calculate the expected acceleration of the center of mass.
[0227] Assume that the mass of the robot is concentrated at the center of mass, set the center of the line connecting the two supporting wheels as the virtual contact point between the inverted pendulum and the ground, connect the center of mass and the virtual contact point, and construct the following Fig.13 The inverted pendulum model is shown.
[0228] Next, it is necessary to construct the dynamic equation of this model. Different from the general inverted pendulum dynamic equation, the present invention uses the difference Δx between the center of mass and the virtual contact point, the center of mass position x com , and their derivatives is the state variable, with the center of mass acceleration As input, construct the inverted pendulum dynamics equation:
[0229]
[0230] Where g is the acceleration due to gravity, z is com is the distance of the center of mass in the Z-axis direction.
[0231] Then, the linear quadratic programming regulator (LQR) is used to calculate the state feedback gain matrix K of equation (22). Finally, the input of the state equation can be obtained based on the LQR controller, that is:
[0232]
[0233] in, is the reference value of the state variable, is the actual value of the state variable.
[0234] The center-of-mass acceleration calculated by formula (23) As the expected acceleration of the center of mass It can not only ensure the determination of the center of mass reference trajectory, but also maintain the dynamic balance of the robot.
[0235] In summary, the expected operation space task of the robot motion is:
[0236]
[0237] The third step is to construct the dynamic equation to be solved: From rigid body dynamics, we know that the acceleration of the operating space and joint space velocity Acceleration The relationship is:
[0238]
[0239] Among them, J t , Represents the Jacobian and the derivative of the Jacobian for the task in the action space.
[0240] Combining formula (25) with formula (17), we can obtain the following after simplification:
[0241]
[0242] Substituting the expected operation space task in the second step into formula (26) can solve the dynamic equation, where is the variable to be determined, and the rest are known quantities.
[0243] Step 4: Add constraints: According to the robot's structure and the physical limitations of the motor, set the following constraints for the variables to be calculated:
[0244] (I) Joint physical constraints: According to the actual physical characteristics of the robot motor, the active joint torque τ in the variable to be determined is limited, that is: τ lb ≤τ≤τ ub , where τ lb ,τ ub Respectively represent the minimum and maximum values of the motor torque.
[0245] (ii) Friction constraint: contact force f at the i-th contact point i The friction cone constraint should be satisfied. To reduce nonlinearity, the friction cone is approximated as a friction angle cone, and the friction inequality constraint is obtained as follows:
[0246]
[0247] Among them, n x 、n y 、n z They represent the unit orthogonal basis of the contact surface along the operating space system, μ i represents the friction coefficient, f z,lb 、f z,ub They represent the minimum and maximum values of the non-negative positive pressure perpendicular to the contact surface.
[0248] The fifth step is to solve the dynamic equation through the optimizer: Formula (26) can be rewritten as AX = B, where, The essence is to find the solution of the linear equations. Here, the quadratic programming optimizer is used to construct the objective function:
[0249] J = min (AX-B) T Q(AX-B)+X T RX (28)
[0250] Among them, Q and R represent weight matrices.
[0251] Based on the constraints in the fourth step, select a suitable quadratic programming optimizer and find the minimum value of formula (28) to obtain the variable to be determined. Finally, the joint torque is sent to the motor to realize robot control.
[0252] The combination of the controller with the obstacle control function and the whole body dynamics control WBC can add some safety constraints to the WBC controller, and the solved torque is then sent to each joint of the robot to complete the control. This section gives the derivation process of these constraints. The dynamic equations of the robot system are:
[0253]
[0254] If only the control barrier function is applied in a simplified model, the state quantity can be chosen as The kinetic equation can be transformed into:
[0255]
[0256] in,
[0257] The safety goal is that the wheel rotation speed range is between plus or minus π / 12rad / s, and the wheel rotation angle Between positive and negative π / 4rad, the following four control barrier functions (CBFs) can be designed.
[0258]
[0259]
[0260]
[0261]
[0262] The first-order Lie derivative of the control barrier function is calculated as follows:
[0263]
[0264]
[0265] Regarding the control barrier function h1(x), the constraint condition L f h(x)+L g h(x)u≥-α(h(x)) can be written as:
[0266]
[0267]
[0268] Regarding the control barrier function h2(x), the constraint condition L f h(x)+L g h(x)u≥-α(h(x)) can be written as:
[0269]
[0270]
[0271] About the control barrier function h3(x):
[0272]
[0273]
[0274]
[0275]
[0276] K α (x) = [K α1 Kα2 ] (41)
[0277] Constraints can be written as:
[0278]
[0279] Regarding the control barrier function h4(x), the constraints can be written as:
[0280]
[0281] At this point, formulas (34), (36), (42) and (43) can be used as the four new constraints in the WBC solution process. The torque of each joint can be solved based on them to realize the control of the robot.
[0282] Using the two-wheel balancing scenario on flat ground, the effectiveness of applying the control obstacle function CBF to the whole body control WBC framework is verified. The screenshot of the robot simulation effect using the above control algorithm is as follows: Fig.14 As shown:
[0283] Fig.14 The left side is a simulation of the robot. It can be seen that in the simulation, when the wheel rotation angle approaches a certain set angle, it will be bounced back. Through parameter configuration, the robot wheel angle can be kept near the set angle. Fig.14 (b), (d) and (f) are the simulation diagrams corresponding to the angle of the outer hip joint, the length of the outer straight leg joint and the rotation angle of the outer wheel hub motor from top to bottom. Fig.14 (b) and (d) are only for data detection and are not important for the phenomenon to be proved in this experiment. Fig.14 (f) shows the rotation angle of the outer wheel hub motor. When the wheel rotation angle is close to 5 rad, it will bounce back. By configuring the parameters, the robot wheel angle can be kept close to 5 rad. Fig.14 The rotation angle of the outer wheel hub motor shown in (f) is displayed separately during the entire time period. Fig.15 shown.
[0284] The 5rad here is equivalent to π / 4rad given in the above formula derivation, and can be set to a corresponding value as needed. For example, when the lower limit of the safety constraint is changed to -πrad, the rotation angle of the outer wheel hub motor in the full time period is as follows Fig.16 The robot motion control has a similar effect, except that the upper and lower limits of the wheel motor rotation angle are different, which are around positive and negative πrad.
[0285] It can be seen that in the above numerical example, the robot's wheels were bounced back after exceeding the set safety value range by 5rad. In fact, in an experiment, whether there is control overshoot within the safety constraint range, and whether it basically stays in place or bounces back after being blocked, are related to the controller parameters. In actual application, they can be adjusted accordingly according to needs and specific experimental phenomena.
[0286] It can be understood that in the embodiments of the present application, the content involving user information, such as the current state parameters, basic control parameters, safety control parameters, motion control parameters and other information of the robot to be controlled, if it involves data related to user information or enterprise information, when the embodiments of the present application are applied to specific products or technologies, it is necessary to obtain user permission or consent, or to blur this information to eliminate the correspondence between this information and the user; and the relevant data collection and processing should be strictly in accordance with the requirements of relevant national laws and regulations when applied in examples, obtain the informed consent or separate consent of the subject of personal information, and carry out subsequent data use and processing within the scope of authorization of laws and regulations and the subject of personal information.
[0287] The following is a description of an exemplary structure of a robot control device 455 provided in an embodiment of the present application implemented as a software module. In some embodiments, Figure 2 As shown, the software modules stored in the robot control device 455 of the memory 450 may include: an acquisition module 4551, used to acquire the current state parameters of the robot to be controlled at the current moment; a basic control parameter determination module 4552, used to call the state regulator, and determine the basic control parameters for each joint of the robot to be controlled based on a preset dynamic model and the current state parameters; a parameter filtering module 4553, used to perform parameter filtering processing on the basic control parameters to obtain safety control parameters for each joint of the robot to be controlled; a motion control parameter determination module 4554, used to call the whole-body dynamic model of the robot to be controlled, and determine the motion control parameters of each joint of the robot to be controlled based on the safety control parameters of each joint; a control module 4555, used to control the corresponding joint of the robot to be controlled at the current moment based on the motion control parameters of each joint.
[0288] In some embodiments, the parameter filtering module 4553 is also used to: construct a control obstacle function based on preset control input parameters and the basic control parameters; the control obstacle function includes a safety objective function and constraints; based on the constraints, determine the corresponding safety control parameters for each joint of the robot to be controlled when the safety objective function reaches the minimum value.
[0289] In some embodiments, the motion control parameter determination module 4554 is also used to: call the state observer to determine the expected acceleration of each joint of the robot to be controlled based on the safety control parameters of each joint and the current state parameters; call the whole-body dynamics model of the robot to be controlled to determine the motion control parameters of each joint of the robot to be controlled based on the expected acceleration of each joint.
[0290] In some embodiments, the current state parameters include actual state variables, and the expected acceleration includes the expected acceleration of the center of mass; the motion control parameter determination module 4554 is also used to: call the state observer, and determine the reference distance between the reference center of mass position of the robot to be controlled and the current virtual contact point, the reference speed corresponding to the reference distance, the reference center of mass position, and the reference center of mass speed based on the safety control parameters of each joint and the current state parameters; determine the reference state variables based on the reference distance, the reference speed, the reference center of mass position, and the reference center of mass speed; call the state regulator to determine the state feedback parameters of the pre-constructed inverted pendulum model; determine the expected acceleration of the center of mass of each joint based on the state feedback parameters of the inverted pendulum model, the reference state variables, and the actual state variables.
[0291] In some embodiments, the motion control parameter determination module 4554 is also used to: call the whole-body dynamics model of the robot to be controlled and the state regulator, and construct a corresponding objective function based on the expected acceleration of each joint; determine the minimum value of the objective function of each joint based on the parameter constraints preset for each joint of the robot to be controlled; and determine the motion control parameters of each joint of the robot to be controlled based on the minimum value.
[0292] In some embodiments, the device 455 also includes a safety control module, which is used to: construct multiple safety constraints for the robot to be controlled; call the whole-body dynamics model of the robot to be controlled, and determine the first motion control parameter of each joint of the robot to be controlled based on the safety control parameter of each joint and the multiple safety constraints; based on the first motion control parameter of each joint, control the corresponding joint of the robot to be controlled at the current moment.
[0293] In some embodiments, the safety control module is also used to: determine the safety control parameter range of the safe rotation angle and the safety control parameter range of the safe rotation angular velocity; construct multiple control obstacle functions based on the safety control parameter range of the safe rotation angle and the safety control parameter range of the safe rotation angular velocity; call the preset dynamic model, and determine multiple safety constraint conditions for the robot to be controlled based on the multiple control obstacle functions.
[0294] In some embodiments, the safety control module is also used to: convert the preset dynamic model into a simplified dynamic model; determine a first control parameter and a second control parameter based on the simplified dynamic model and the current state parameter; determine a first Lie derivative corresponding to the first control parameter and a second Lie derivative corresponding to the second control parameter based on the first control parameter, the second control parameter and the multiple control obstacle functions; determine the multiple safety constraints based on the first Lie derivative, the second Lie derivative and the multiple control obstacle functions.
[0295] In some embodiments, the basic control parameter determination module 4552 is also used to: convert the preset dynamic model into a state space model; call the state regulator to determine the state feedback parameters for the robot to be controlled based on the state space model; determine the basic control parameters for each joint of the robot to be controlled based on the state feedback parameters of the robot to be controlled and the current state parameters.
[0296] It should be noted that the description of the device of the embodiment of the present application is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment, so it is not repeated. For technical details not disclosed in the embodiment of the device, please refer to the description of the method embodiment of the present application for understanding.
[0297] The present application embodiment provides a computer-readable storage medium in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, the processor will be caused to execute the robot control method provided by the present application embodiment, for example, Figure 3 The robot control method is shown.
[0298] The embodiment of the present application provides a computer program product, which includes computer executable instructions, and the computer executable instructions are stored in a computer readable storage medium. The processor of the electronic device reads the computer executable instructions from the computer readable storage medium, and the processor executes the computer executable instructions, so that the electronic device executes the robot control method described in the embodiment of the present application.
[0299] In some embodiments, the computer-readable storage medium may be a memory such as RAM, ROM, flash memory, magnetic surface memory, optical disk, or CD-ROM; or may be various devices including one or any combination of the above memories.
[0300] In some embodiments, computer executable instructions may be in the form of a program, software, software module, script or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine or other unit suitable for use in a computing environment.
[0301] As an example, computer-executable instructions may, but need not, correspond to a file in a file system, may be stored as part of a file that stores other programs or data, such as in one or more scripts in a HyperText Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple coordinated files (e.g., files storing one or more modules, subroutines, or code portions).
[0302] As an example, computer executable instructions may be deployed to be executed on one electronic device, or on multiple electronic devices located at one site, or on multiple electronic devices distributed at multiple sites and interconnected by a communication network.
[0303] The above is only an embodiment of the present application and is not intended to limit the protection scope of the present application. Any modifications, equivalent substitutions and improvements made within the spirit and scope of the present application are included in the protection scope of the present application.
Claims
1. A robot control method, It is characterized in that The method comprises: Get the current state parameters of the robot to be controlled at the current moment; Determine basic control parameters for each joint of the robot to be controlled based on a preset dynamic model and the current state parameters; Performing parameter filtering processing on the basic control parameters to obtain safety control parameters for each joint of the robot to be controlled; Calling the whole body dynamics model of the robot to be controlled, and determining the motion control parameters of each joint of the robot to be controlled based on the safety control parameters of each joint; Based on the motion control parameters of each joint, the corresponding joint of the robot to be controlled is controlled at the current moment.
2. The method according to claim 1, It is characterized in that The parameter filtering process is performed on the basic control parameters to obtain the safety control parameters for each joint of the robot to be controlled, including: Based on the preset control input parameters and the basic control parameters, a control obstacle function is constructed; the control obstacle function includes a safety objective function and constraint conditions; Based on the constraint conditions, a corresponding safety control parameter for each joint of the robot to be controlled is determined when the safety objective function obtains a minimum value.
3. The method according to claim 1, It is characterized in that The calling of the whole body dynamics model of the robot to be controlled and determining the motion control parameters of each joint of the robot to be controlled based on the safety control parameters of each joint includes: Calling a state observer to determine the expected acceleration of each joint of the robot to be controlled based on the safety control parameter of each joint and the current state parameter; The whole body dynamics model of the robot to be controlled is called, and the motion control parameter of each joint of the robot to be controlled is determined based on the expected acceleration of each joint.
4. The method according to claim 3, It is characterized in that The current state parameter includes an actual state variable, and the expected acceleration includes an expected acceleration of the center of mass; the calling state observer determines the expected acceleration of each joint of the robot to be controlled based on the safety control parameter of each joint and the current state parameter, including: Calling the state observer to determine, based on the safety control parameters of each joint and the current state parameters, a reference distance between a reference center of mass position of the robot to be controlled and a current virtual contact point, a reference speed corresponding to the reference distance, a reference center of mass position, and a reference center of mass speed; determining a reference state variable based on the reference distance, the reference speed, the reference center-of-mass position, and the reference center-of-mass speed; calling a state regulator to determine state feedback parameters of a pre-built inverted pendulum model; Based on the state feedback parameters of the inverted swing model, the reference state variables and the actual state variables, the expected acceleration of the center of mass of each joint is determined.
5. The method according to claim 3, It is characterized in that The calling of the whole body dynamics model of the robot to be controlled and determining the motion control parameter of each joint of the robot to be controlled based on the expected acceleration of each joint includes: Calling the whole body dynamics model of the robot to be controlled and the state regulator, and constructing a corresponding objective function based on the expected acceleration of each joint; Determining the minimum value of the objective function of each joint based on the parameter constraints preset for each joint of the robot to be controlled; Based on the minimum value, a motion control parameter of each joint of the robot to be controlled is determined.
6. The method according to claim 1, It is characterized in that The method further comprises: Constructing a plurality of safety constraints for the robot to be controlled; Calling the whole body dynamics model of the robot to be controlled, and determining the first motion control parameter of each joint of the robot to be controlled based on the safety control parameter of each joint and the multiple safety constraints; Based on the first motion control parameter of each joint, the corresponding joint of the robot to be controlled is controlled at the current moment.
7. The method according to claim 6, It is characterized in that The safety control parameters of each joint include a safe rotation angle and a safe rotation angular velocity; The constructing of multiple safety constraints for the robot to be controlled includes: Determine a safety control parameter range of the safe rotation angle and a safety control parameter range of the safe rotation angular velocity; constructing a plurality of control obstacle functions according to the safety control parameter range of the safety rotation angle and the safety control parameter range of the safety rotation angular velocity; The preset dynamic model is called, and based on the multiple control obstacle functions, multiple safety constraint conditions for the robot to be controlled are determined.
8. The method according to claim 7, It is characterized in that The calling of the preset dynamic model to determine a plurality of safety constraint conditions for the robot to be controlled based on the plurality of control obstacle functions includes: Converting the preset dynamic model into a simplified dynamic model; Determining a first control parameter and a second control parameter based on the simplified dynamics model and the current state parameter; Based on the first control parameter, the second control parameter and the plurality of control obstacle functions, determining a first Lie derivative corresponding to the first control parameter and a second Lie derivative corresponding to the second control parameter; The plurality of safety constraints are determined based on the first Lie derivative, the second Lie derivative, and the plurality of control obstacle functions.
9. The method according to claim 1, It is characterized in that The determining of the basic control parameters for each joint of the robot to be controlled based on the preset dynamic model and the current state parameters includes: Converting the preset dynamic model into a state space model; Calling the state regulator to determine a state feedback parameter for the robot to be controlled based on the state space model; Based on the state feedback parameters of the robot to be controlled and the current state parameters, basic control parameters for each joint of the robot to be controlled are determined.
10. A robot control device, It is characterized in that The device comprises: An acquisition module is used to obtain the current state parameters of the robot to be controlled at the current moment; A basic control parameter determination module, used for calling a state regulator to determine a basic control parameter for each joint of the robot to be controlled based on a preset dynamic model and the current state parameter; A parameter filtering module, used for performing parameter filtering processing on the basic control parameters to obtain safety control parameters for each joint of the robot to be controlled; A motion control parameter determination module, used for calling the whole body dynamics model of the robot to be controlled, and determining the motion control parameters of each joint of the robot to be controlled based on the safety control parameters of each joint; The control module is used to control the corresponding joint of the robot to be controlled at the current moment based on the motion control parameters of each joint.
11. An electronic device, It is characterized in that include: A memory for storing computer executable instructions; A processor, configured to implement the robot control method according to any one of claims 1 to 9 when executing the computer executable instructions stored in the memory.
12. A computer-readable storage medium, It is characterized in that Computer executable instructions are stored, and when the computer executable instructions are executed by a processor, the robot control method according to any one of claims 1 to 9 is implemented.
13. A computer program product, It is characterized in that The computer program product includes computer executable instructions stored in a computer readable storage medium; Wherein, when the processor of the electronic device reads the computer executable instructions from the computer readable storage medium and executes the computer executable instructions, the robot control method described in any one of claims 1 to 9 is implemented.
Citation Information
Patent Citations
Six foot wheel leg type climbing biomimetic robot
CN104608838A
Artificial potential field method-based anti-collision control method for vertical takeoff UAVs
CN109557936A
Task execution control method and device, control equipment and readable storage medium
CN112775976A
Control method, device and equipment of wheel-legged robot and readable storage medium
CN113753150A
METHOD FOR DYNAMIC VELOCATION FOR A ROBOTIC SYSTEM
DE102022122663A1
Cited By
Wheel-foot composite robot, motion control method thereof, terminal and storage medium
CN121209567A
Robot control method and apparatus, and electronic device, computer-readable storage medium and computer program product
WO2025185511A1
