Lightweight quadruped robot movement method based on cross-modal perception attention mechanism
By using the cross-modal perception attention mechanism and reinforcement learning in the quadruped robot, combined with the human perception mechanism, the cross-modal perception attention controller and the reinforcement learning controller are designed to solve the problem of perception and movement of the quadruped robot in a dynamic environment. Adaptability issues enable efficient deployment and application in energy-constrained environments.
Patent Information
- Application Number
- CN202410678886.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-29
- Publication Date
- 2024-09-10
AI Technical Summary
Quadruped robots are unable to adaptively sense and move in dynamic environments, resulting in increased computing resources and energy consumption, hindering their deployment and application in energy-constrained environments.
A lightweight quadruped robot movement method based on the cross-modal perception and attention mechanism is adopted, and the human cross-modal perception and attention mechanism is combined with end-to-end reinforcement learning to enable the quadruped robot to learn movement strategies. The PyBullet physics engine is used to establish a simulation environment and design Reinforcement learning controller and cross-modal perception attention controller, select and switch visual channels to reduce computing power consumption, and test autonomous obstacle avoidance decision-making capabilities in simulation and real environments.
It realizes the autonomous obstacle avoidance decision-making ability of quadruped robots in dynamic environments, reduces computing resources and energy consumption, and improves application efficiency in energy-constrained environments.
Smart Images

Figure 00000000_0000
Abstract
Description
Technical Field
[0001] The present invention relates to the field of robot motion technology, and in particular to a lightweight quadruped robot motion method and system based on a cross-modal perception attention mechanism. Background Art
[0002] In recent years, legged robots, as new edge intelligent devices, can use various sensors (such as cameras, sound sensors, tactile sensors, etc.) to perceive the surrounding environment and use built-in processors and algorithms to analyze this data. Based on the analysis results, the quadruped robot can make corresponding actions or decisions, such as avoiding obstacles, executing commands, and displaying interactive behaviors. Compared with wheeled or tracked robots or other mobile edge intelligent devices, legged robots have greatly increased flexibility and environmental adaptability, and can traverse complex unstructured terrains and complete more diverse edge intelligent tasks. At the same time, reinforcement learning, as a new learning paradigm, is different from traditional control methods such as MPC. It does not require a lot of professional knowledge, dense experimental data, and tedious manual parameter adjustment to enable robots to learn autonomous strategies, thereby reducing the complexity of learning method design.
[0003] Reinforcement learning methods acquire the various strategies necessary to effectively navigate complex environments through comprehensive end-to-end training of robots in virtual environments. In addition, the use of reinforcement learning paradigm enables intelligent agents to extract relevant external information from external perception and proprioception, thereby being able to develop resilient and adaptive strategies.
[0004] Quadruped robots use sensors such as radars and depth cameras for external perception, but it remains challenging to effectively process and integrate information from different inputs. Different modules for processing various modal information must operate seamlessly in a continuous manner. And quadruped robots in the real world face significant constraints in computing resources and time constraints. These constraints prevent them from consistently and robustly performing tasks deployed by people in dynamic and resource-constrained environments in the real world. Most existing work is mainly based on simulations and does not specifically address this problem.
[0005] In contrast, human cognition exhibits remarkable adaptability in processing multimodal information, optimizing attention and resource allocation by focusing only on relevant information while minimizing the processing of irrelevant data. This adaptive processing strategy allows individuals to selectively prioritize or ignore specific sensory inputs based on contextual cues and environmental factors. To illustrate this adaptability, consider the typical scenario of a pedestrian navigating a busy street while talking on a cell phone. People are typically able to skillfully coordinate their movements to avoid collisions with fellow pedestrians and vehicles while conversing fluently. However, in some cases, a collision may result due to an individual's excessive focus on a conversation.
[0006] Based on this, the present invention provides a lightweight quadruped robot motion method based on a cross-modal perception and attention mechanism, which enables the quadruped robot to learn motion strategies through end-to-end reinforcement learning combined with human cross-modal perception and attention mechanism. Summary of the invention
[0007] The main problem solved by the present invention is that the quadruped robot cannot perform adaptive perception and movement according to the task and environment in a dynamic environment, resulting in more consumption of computing resources and energy, thereby hindering its real deployment and application in an energy-constrained environment. The present invention provides a lightweight quadruped robot motion method and system based on a cross-modal perception and attention mechanism. The method first establishes a simulation environment based on the PyBullet physics engine, including robot modeling, terrain and obstacle construction; secondly, a basic reinforcement learning controller is designed, including a state space, an action space and a reward function; then, low-level multimodal information fusion reinforcement learning and a high-level cross-modal perception and attention controller are combined to control the robot to select the switch visual channel according to the environment and task to reduce computing power consumption; finally, the PPO algorithm is used for training, and the autonomous obstacle avoidance decision-making ability of the quadruped robot in complex environments is tested in a simulation environment and a real environment.
[0008] The first object of the present invention is to provide a lightweight quadruped robot motion method based on a cross-modal perception attention mechanism, comprising: Obtain proprioception data and visual perception data of the quadruped robot; Based on the proprioceptive perception data and the visual perception data, multimodal data fusion is performed to obtain the fused multimodal features; Building a cross-modal perceptual attention controller and a low-level reinforcement learning motion controller; According to the multimodal characteristics, the cross-modal perception attention controller and the low-level reinforcement learning motion controller are trained in a virtual environment. During the training, the quadruped robot interacts with the virtual environment continuously and is trained using a reinforcement learning training method to obtain the trained cross-modal perception attention controller and the low-level reinforcement learning motion controller. During the training process, the multimodal features are input into the cross-modal perception attention controller to determine whether to collect visual perception data at the next moment. At the same time, the multimodal features are input into the low-level reinforcement learning motion controller to output the expected rotation angles of multiple joints. The motion of the quadruped robot is controlled by a trained cross-modal perception attention controller and a low-level reinforcement learning motion controller.
[0009] Preferably, the cross-modal perception attention controller adopts a two-layer MLP and outputs a control signal of 0 or 1 to determine whether the visual sensor needs to be turned on or off at the next moment; when the visual perception data is acquired at the next moment, the visual perception data input is multiplied by the control signal. When the output is 0, it means that the visual sensor is turned off, and when the output is 1, it means that the visual sensor is turned on.
[0010] Preferably, the cross-modal perception attention controller accumulates decision signals after collecting multimodal features. When the accumulated signals reach a predetermined threshold, the cross-modal perception attention controller makes a decision on the perception behavior and adjusts the robot's perceived input.
[0011] Preferably, the loss function of the cross-modal perceptual attention controller is:
[0012] In the formula, represents the perceptual loss, which is the ratio of the difference between the control signal and the target signal output by the cross-modal perceptual attention controller multiplied by the current reward output by the reward function; represents the convergence loss, which is a regularization term that allows the control signal value output by the cross-modal perception attention controller to converge to a narrower range; , , the learning rate used in training is Adam optimizer for .
[0013] Preferably, the low-level reinforcement learning motion controller includes two layers of MLP, and reinforcement learning training is performed through defined state space, action space and reward function.
[0014] Preferably, the state space includes proprioceptive and visual information; The proprioception includes joint angles, IMU information and the last action. The complete proprioception records the state of the last three consecutive moments to retain historical state information for inferring the state of the environment. The visual information includes four consecutive depth images in the shape of 64×64 taken by a depth camera installed on the head of the robot, providing spatiotemporal visual information for the robot.
[0015] Preferably, the motion space is position driven, the controller outputs the desired rotation angles of the 12 joints, and 0.5 is used as the upper limit of the motion stability.
[0016] Preferably, the reward function is in the robot's motion task. The learning goal is that the robot can move forward autonomously and stably without colliding with obstacles. The following reward function is designed:
[0017] In the formula, represents the forward reward, which motivates the robot to move forward in the direction of a specific task; represents the energy consumption reward, which encourages the robot to use the least amount of energy and is used to improve the naturalness of the movement. The Euclidean norm is used to penalize the motor torque; Represents the survival reward, which encourages the robot to survive longer and gives a positive reward of 1.0 at each time step until termination; It indicates the termination penalty. It is a penalty when the training round is terminated prematurely. Dangerous behaviors such as falling and hitting obstacles will lead to termination. It encourages the robot to avoid unsafe behaviors such as collision. ; ; ; ; .
[0018] Preferably, the low-level reinforcement learning motion controller uses the PPO algorithm to train the reinforcement learning agent by inputting multimodal features into the low-level reinforcement learning motion controller, which calculates the reward value and the next action value based on the obtained state information, and then uses the state, action, and reward value as a training sample to update the policy network and value network parameters by minimizing the loss function.
[0019] The second object of the present invention is to provide a lightweight quadruped robot motion system based on a cross-modal perception attention mechanism, comprising: The data fusion module is used to obtain proprioceptive data and visual perception data of the quadruped robot; multimodal data fusion is performed based on the proprioceptive data and visual perception data to obtain fused multimodal features; The controller training module is used to construct a cross-modal perception attention controller and a low-level reinforcement learning motion controller; according to the multimodal features, the cross-modal perception attention controller and the low-level reinforcement learning motion controller are collaboratively trained in a virtual environment. During training, the quadruped robot interacts continuously with the virtual environment and is trained using a reinforcement learning training method to obtain a trained cross-modal perception attention controller and a low-level reinforcement learning motion controller; during the training process, the multimodal features are input into the cross-modal perception attention controller to determine whether to collect visual perception data at the next moment, and at the same time, the multimodal features are input into the low-level reinforcement learning motion controller to output the expected rotation angles of multiple joints; The robot control module is used to control the motion of the quadruped robot through a trained cross-modal perception attention controller and a low-level reinforcement learning motion controller.
[0020] The present invention has at least the following beneficial effects: The present invention provides a lightweight quadruped robot motion method and system based on a cross-modal perception attention mechanism. The present invention is based on the fact that when the human brain processes stimuli including vision, hearing and other sensory modes, it can select information from a specific sensory mode according to the task requirements, while filtering out irrelevant information from other sensory channels. This attention to processing information between different modalities is called cross-modal attention. And there is a central attention resource shared among all sensory modes: supermodal attention resources, which can be allocated among all modalities required for the task. As supermodal attention resources are exhausted, performing tasks simultaneously in different ways will be adversely affected. Inspired by the human system, a cross-modal attention control module is added to the autonomous obstacle avoidance decision-making task of the quadruped robot, so as to realize the lightweight quadruped robot obstacle avoidance motion with dynamic and contextual perception on the robot, and the robot can autonomously select information switching between different modalities according to task requirements. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 Flowchart of the lightweight quadruped robot locomotion method based on cross-modal perception and attention mechanism.
[0022] Figure 2 This is a diagram of the mechanism of humans using multimodality to perceive the environment according to the present invention.
[0023] Figure 3 This is a mechanism inspiration diagram of the quadruped robot of the present invention using multimodality for environmental perception.
[0024] Figure 4 This is a framework diagram of the lightweight motion based on the cross-modal perception attention mechanism of the present invention.
[0025] Figure 5 This is a schematic diagram of the quadruped robot of the present invention walking in a simulation environment.
[0026] Figure 6 This is a schematic diagram of the quadruped robot of the present invention walking in a real environment. DETAILED DESCRIPTION
[0027] In order to illustrate the technical means and effects adopted by the present invention to achieve the predetermined purpose of the invention, the following is a detailed description in conjunction with embodiments.
[0028] The present invention provides a lightweight quadruped robot motion method based on a cross-modal perception and attention mechanism. First, a simulation environment is established based on the PyBullet physics engine, including robot modeling, terrain and obstacle construction; secondly, a low-level reinforcement learning motion controller is designed, including state space, action space and reward function; then, low-level multimodal information fusion reinforcement learning and high-level cross-modal perception and attention controller are combined to control the robot to switch visual channels according to the environment and task selection to reduce computing power consumption; finally, the PPO algorithm is used for training, and the autonomous obstacle avoidance decision-making ability of the quadruped robot in complex environments is tested in simulation environments and real environments.
[0029] To achieve the above purpose, see Figure 1 As shown, the present invention provides a lightweight quadruped robot motion method based on a cross-modal perception attention mechanism, comprising: S1. Obtain proprioception data and visual perception data of the quadruped robot; In this embodiment, a high-fidelity simulation environment is built, and the proprioceptive perception data and visual perception data of the quadruped robot are obtained according to the simulation environment in which the quadruped robot is located to train the controller. A simulation environment is constructed in the PyBullet physics engine, including modeling of the quadruped robot, various terrains, and obstacle environments. Specifically, the robot model is loaded by importing the URDF file, the terrain is designed by randomly generating a height field in the code, and the obstacles are composed of black blocks of different sizes and thicknesses. When constructing the simulation environment, domain randomization of various physical parameters is used to narrow the migration gap in the observation space.
[0030] Among them, the proprioceptive perception data and visual perception data of the quadruped robot are obtained. Proprioceptive perception is 84-dimensional data, including 12-dimensional robot joint rotation angles; 4-dimensional IMU sensor data, including roll, pitch angles and angular velocity) and 12-dimensional IMU sensor data of the past three consecutive moments, referring to the historical state. Visual perception data is obtained by the depth camera installed on the head of the robot, including 4 consecutive depth maps of size 64*64. Proprioceptive perception information provides an accurate measurement of the current state as an instant response of the robot. The visual input from the depth camera can predict changes in the environment and help the intelligent body plan the path.
[0031] S2, performing multimodal data fusion based on proprioceptive data and visual perception data to obtain fused multimodal features; In this embodiment, two layers of MLP (multi-layer perceptron) convolution are performed on the ontological perception data to obtain 256-dimensional ontological features; three layers of CNN convolution are performed on the visual perception data to obtain 256-dimensional visual features. According to the characteristics of the two types of features, elements are accumulated to obtain the fused 256-dimensional multimodal features.
[0032] S3, build a cross-modal perception attention controller and a low-level reinforcement learning motion controller; The cross-modal perception attention controller adopts a two-layer MLP and outputs a control signal of 0 or 1 to determine whether the visual sensor needs to be turned on or off at the next moment; when the visual perception data is acquired at the next moment, the visual perception data input is multiplied by the control signal. When the output is 0, it means that the visual sensor is turned off, and when the output is 1, it means that the visual sensor is turned on.
[0033] The cross-modal perception attention controller accumulates decision signals after collecting multimodal features. When the accumulated signals reach a predetermined threshold, the cross-modal perception attention controller makes a decision on the perception behavior and adjusts the robot's perceived input.
[0034] It should be noted that the advanced cross-modal perception attention controller is inspired by the way humans perceive the surrounding environment, and an intermodal perception attention (IPA) controller is designed. This controller aims to make perception decisions by collecting information from various modalities and effectively manage the robot's perception channel switching. In a way similar to human perception, the controller accesses the same perception information as the PPO module, and the two components share a multi-modal information encoder.
[0035] After obtaining the visual features and proprioceptive features, the IPA controller uses a 2-layer MLP to control the visual channel switch. The IPA controller accumulates decision signals after collecting stimuli from proprioceptive and visual perception. When the accumulated signal reaches a predetermined threshold, the IPA controller makes a decision about its perception behavior and adjusts the input of the robot's perception. It should be noted that the accumulated decision signal is the information acquisition that determines whether to turn on or off the visual channel at the next moment. The predetermined threshold is set based on experience. When the predetermined threshold is reached, if the visual channel has been open before, the decision to close is made at this time. If it was closed before, the decision to open is made at this time.
[0036] In this embodiment, based on the obtained multimodal features, two layers of MLP are used to output a control signal (Centro-Parietal Positivity, CPP signal) of 0 or 1 to determine whether the visual sensor needs to be turned on or off at the next moment. When the visual input is acquired at the next moment, the control signal is multiplied. When the output is 0, it means that the visual sensor is turned off, and when the output is 1, it means that the visual sensor is turned on. This reduces the amount of network calculation in the subsequent process.
[0037] The low-level reinforcement learning motion controller includes two layers of MLP, and performs reinforcement learning training through defined state space, action space and reward function.
[0038] The state space includes proprioceptive and visual information; Among them, the proprioception includes joint angles, IMU information and the previous action. The complete proprioception records the status of the last three consecutive moments to retain historical status information for inferring the environmental status; the visual information includes four consecutive depth maps in the shape of 64×64 taken by the depth camera installed on the head of the robot, providing the robot with spatiotemporal visual information.
[0039] In this embodiment, the state space is a quadruped robot task for complex terrain obstacle avoidance and navigation. In addition to proprioception, visual information is also required for obstacle avoidance. Proprioception includes joint angles, IMU information, and the previous action. The complete proprioception records the state of the last three consecutive moments to retain historical state information for inferring the state of the environment. The visual information consists of four consecutive depth maps in the shape of 64×64 taken by the depth camera installed on the head of the robot, providing the robot with spatiotemporal visual information. Among them, the proprioception information serves as the robot's immediate response and provides an accurate measurement of the current state. The visual input from the depth camera can predict changes in the environment and help the intelligent agent plan the path.
[0040] The motion space is position driven, the controller outputs the desired rotation angles of the 12 joints, and 0.5 is used as the upper limit of motion stability.
[0041] The reward function is in the robot's motion task. The learning goal is that the robot can move forward autonomously and stably without colliding with obstacles. The following reward function is designed to guide the robot to learn:
[0042] In the formula, represents the forward reward, which motivates the robot to move in the direction of a specific task. For example, in a flat environment, the specific direction is defined by the robot's movement speed along the x-axis; represents the energy consumption reward, which encourages the robot to use the least amount of energy and is used to improve the naturalness of the movement. The Euclidean norm is used to penalize the motor torque; Represents the survival reward, which encourages the robot to survive longer. It gives a positive reward of 1.0 at each time step until termination; It indicates the termination penalty. It is a penalty when the training round is terminated prematurely. Dangerous behaviors such as falling and hitting obstacles will lead to termination. It encourages the robot to avoid unsafe behaviors such as collision. ; ; ; ; .
[0043] It should be noted that the selection of values is based on the different , , , is selected based on the value size in order to bring the three Rs into the same range to prevent a certain reward from being too large and drowning out other rewards. Fall is a large negative value in order to end the training at the moment of falling, so that the robot can learn to reduce the possibility of falling.
[0044] See also Figure 2~3 As shown, when humans handle different tasks, they will focus their cross-modal attention on one or some task-related modalities according to the needs of the task, and ignore the information of task-irrelevant modalities, thereby reducing resource consumption. The CPP signal is considered to be a "decision" signal for switching and fusing different modalities. The present invention refers to the mechanism of humans using multimodality for environmental perception, and designs a framework consisting of low-level multimodal information fusion reinforcement learning and high-level cross-modal perception attention controller, so that the robot can switch the attention between modalities according to the needs of the task, use the information between different modalities, and fuse the information of different modalities for decision-making, thereby reducing the waste of computing resources.
[0045] See also Figure 4 As shown, the present invention consists of a low-level reinforcement learning motion controller and a high-level cross-modal perception attention controller. The low-level multimodal information fusion reinforcement learning controller learns the robot motion decision under information constraints. At the same time, the high-level cross-modal perception attention controller plays a key role in deciding whether to send control signals to the reinforcement learning policy network. These signals control the extraction and fusion of visual features, which is achieved by accumulating multimodal vision and proprioceptive perception information. This policy approach can reduce the computational workload of the policy network.
[0046] S4, training of a cross-modal perceptual attention controller and a low-level reinforcement learning motion controller; According to the multimodal characteristics, the cross-modal perception attention controller and the low-level reinforcement learning motion controller are trained in a virtual environment. The reinforcement learning training method is adopted during the training. The gradient descent is performed through the reward function. The trained cross-modal perception attention controller and the low-level reinforcement learning motion controller are obtained in the continuous interaction with the virtual environment. During the training process, the multimodal features are input into the cross-modal perception attention controller to determine whether to collect visual perception data at the next moment. At the same time, the multimodal features are input into the low-level reinforcement learning motion controller to output the expected rotation angles of multiple joints. It should be noted that, based on the obtained multimodal features, a two-layer MLP is used, and the PPO algorithm is used to design the state space, action space and reward function, and the output is the expected rotation angle signal of the 12 joints.
[0047] The loss function of the cross-modal perceptual attention controller is:
[0048] In the formula, represents the perceptual loss, which is the ratio of the difference between the control signal and the target signal output by the cross-modal perceptual attention controller multiplied by the current reward output by the reward function, and evaluates the impact of the current perceptual decision on the subject's movement; Represents the target signal. The specific definitions are as follows:
[0049] represents the convergence loss, which refers to the regularization term that converges the control signal value output by the cross-modal perception attention controller to a narrower range; this loss encourages the robot to close the visual channel as much as possible in simple scenes. The ultimate goal is to save computing resources by limiting the use of the visual channel. It is the reinforcement learning reward under the current cpp value. The definition can refer to R on the previous page. The specific definition is as follows:
[0050] , , the learning rate used in training is Adam optimizer for . and These values are chosen empirically and have little effect on the results, but do affect how quickly the training converges.
[0051] The low-level reinforcement learning motion controller adopts the PPO algorithm to train the reinforcement learning agent by inputting multimodal features into the low-level reinforcement learning motion controller, and the low-level reinforcement learning motion controller calculates the reward value and the next action value according to the obtained state information, and then uses the state, action, and reward value as a training sample to update the policy network and value network parameters by minimizing the loss function.
[0052] In this embodiment, low-level cross-modal information fusion reinforcement learning uses the PPO algorithm to train reinforcement learning agents. The core part is: the agent sends the data collected by the robot sensor to the main controller through the robot controller. The main controller contains the algorithm part, which calculates the reward value and the next action value based on the obtained state information, and then uses the state, action, and reward value as a training sample to update the policy network and value network parameters by minimizing the loss function. The loss function of the policy network is:
[0053] in, is the strategy parameter, is the probability ratio of the new and old strategies, It's action In Status The advantage function estimate under , which represents the expected return of performing this action relative to the average behavior, It represents the pruning of the results to prevent the update step from being too large and to maintain the stability of learning. =0.2.
[0054] The loss function of the value network is: =
[0055] in, are the parameters of the value function, It's in time Given state The value function prediction under It is from time After the two networks are updated, the environment is reset and the above training operations are repeated until the upper limit of the training round is reached.
[0056] Low-level cross-modal information fusion reinforcement learning uses a 2-layer MLP encoder to process proprioceptive input and a 3-layer CNN to manage visual input to extract encoded features from both modalities. These encoded features are then concatenated to create a unified feature that is input into an additional 2-layer MLP to predict the action distribution of the policy network or the value of the value network.
[0057] The features extracted from the visual and proprioceptive channels are represented as 256D vectors. Based on the ResNet architecture, channel fusion is implemented separately. A vector addition method is used in this fusion to combine features. This design ensures that whether or not visual feature extraction is performed will not affect the structure or operation of the subsequent network.
[0058] The Adam optimizer is used in the optimization, and the learning rate of the policy network and the value network is set to 1e-4.
[0059] A hierarchical strategy is adopted throughout the training process, where the training of the IPA controller remains independent of the training of the PPO module. At the same time, the two modules also communicate information and work simultaneously. The IPA controller module is not responsible for supervising the behavior of the entire task, but makes decisions at each time step based on the perceived information and task-specific requirements.
[0060] Test motion models in simulation and real environments See also Figure 5 As shown in the figure, the trained model is tested in a simulation environment, and the parameters are adjusted and optimized according to the sports performance to obtain the optimal sports model. Figure 6 As shown in the figure, the motion model is deployed to a real robot. Here, an Intel RealSense camera is installed on the robot head to capture the depth map, and robot sensors are used to obtain joint states and IMU as proprioceptive input, and the obstacle avoidance decision performance of the quadruped robot is tested in a real environment.
[0061] S5. Control the motion of the quadruped robot through the trained cross-modal perception attention controller and low-level reinforcement learning motion controller.
[0062] The trained cross-modal perception attention controller and low-level reinforcement learning motion controller are deployed on the quadruped robot. The proprioception data and visual perception data are collected through the acquisition module on the quadruped robot. The trained cross-modal perception attention controller and low-level reinforcement learning motion controller are used to output the rotation angle signals of the 12 joints, convert the rotation angle signals of the 12 joints into the rotation angles of the robot's joint motors and perform motor control to realize the movement of the robot.
[0063] In this embodiment, PD motion control converts the desired rotation angle signals of the 12 joints into the rotation angles of the joint motors of the robot and performs motor control to realize the movement of the robot.
[0064] In summary, during training, the multimodal data fusion module, the high-level cross-modal perception attention controller module, and the low-level reinforcement learning motion controller module are trained collaboratively in a virtual environment, using the reinforcement learning training method, and gradient descent through the reward function. A converged network is obtained through continuous interaction with the virtual environment. Because there are no real motors in the virtual environment, PD motion control is not involved in training, and the motion signal can be directly converted into motion. The PD controller step is only involved in actual deployment.
[0065] The present invention provides a lightweight quadruped robot motion system based on a cross-modal perception attention mechanism, comprising: The data fusion module is used to obtain proprioceptive data and visual perception data of the quadruped robot; multimodal data fusion is performed based on the proprioceptive data and visual perception data to obtain fused multimodal features; A controller training module is used to construct a cross-modal perception attention controller and a low-level reinforcement learning motion controller; based on multimodal features, the cross-modal perception attention controller and the low-level reinforcement learning motion controller are collaboratively trained in a virtual environment, and a reinforcement learning training method is adopted during training. Gradient descent is performed through a reward function, and the trained cross-modal perception attention controller and the low-level reinforcement learning motion controller are obtained in continuous interaction with the virtual environment; wherein, during the training process, the multimodal features are input into the cross-modal perception attention controller to determine whether to collect visual perception data at the next moment, and at the same time, the multimodal features are input into the low-level reinforcement learning motion controller to output the expected rotation angles of multiple joints; The robot control module is used to control the motion of the quadruped robot through a trained cross-modal perception attention controller and a low-level reinforcement learning motion controller.
[0066] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A lightweight quadruped robot motion method based on cross-modal perception and attention mechanism, characterized in that: include: Obtain proprioception data and visual perception data of the quadruped robot; Based on the proprioceptive perception data and the visual perception data, multimodal data fusion is performed to obtain the fused multimodal features; Building a cross-modal perceptual attention controller and a low-level reinforcement learning motion controller; According to the multimodal characteristics, the cross-modal perception attention controller and the low-level reinforcement learning motion controller are trained in a virtual environment. During the training, the quadruped robot interacts with the virtual environment continuously and is trained using a reinforcement learning training method to obtain the trained cross-modal perception attention controller and the low-level reinforcement learning motion controller. During the training process, the multimodal features are input into the cross-modal perception attention controller to determine whether to collect visual perception data at the next moment. At the same time, the multimodal features are input into the low-level reinforcement learning motion controller to output the expected rotation angles of multiple joints. The motion of the quadruped robot is controlled by a trained cross-modal perception attention controller and a low-level reinforcement learning motion controller.
2. The lightweight quadruped robot motion method based on cross-modal perception and attention mechanism according to claim 1 is characterized in that: The cross-modal perception attention controller adopts a two-layer MLP and outputs a control signal of 0 or 1 to determine whether the visual sensor needs to be turned on or off at the next moment; when the visual perception data is acquired at the next moment, the visual perception data input is multiplied by the control signal. When the output is 0, it means that the visual sensor is turned off, and when the output is 1, it means that the visual sensor is turned on.
3. The lightweight quadruped robot motion method based on cross-modal perception and attention mechanism according to claim 2 is characterized in that: The cross-modal perception attention controller accumulates decision signals after collecting multimodal features. When the accumulated signals reach a predetermined threshold, the cross-modal perception attention controller makes a decision on the perception behavior and adjusts the robot's perceived input.
4. The lightweight quadruped robot motion method based on cross-modal perception and attention mechanism according to claim 2 is characterized in that: The loss function of the cross-modal perceptual attention controller is: In the formula, represents the perceptual loss, which is the ratio of the difference between the control signal and the target signal output by the cross-modal perceptual attention controller multiplied by the current reward output by the reward function; represents the convergence loss, which is a regularization term that allows the control signal value output by the cross-modal perception attention controller to converge to a narrower range; , , the learning rate used in training is Adam optimizer for .
5. The lightweight quadruped robot motion method based on cross-modal perception and attention mechanism according to claim 1 is characterized in that: The low-level reinforcement learning motion controller includes two layers of MLP, and performs reinforcement learning training through defined state space, action space and reward function.
6. The lightweight quadruped robot motion method based on cross-modal perception and attention mechanism according to claim 5 is characterized in that: The state space includes proprioceptive and visual information; The proprioception includes joint angles, IMU information and the last action. The complete proprioception records the state of the last three consecutive moments to retain historical state information for inferring the state of the environment. The visual information includes four consecutive depth images in the shape of 64×64 taken by a depth camera installed on the head of the robot, providing spatiotemporal visual information for the robot.
7. The lightweight quadruped robot motion method based on cross-modal perception and attention mechanism according to claim 5 is characterized in that: The motion space is position driven, the controller outputs the desired rotation angles of the 12 joints, and 0.5 is used as the upper limit of motion stability.
8. The lightweight quadruped robot motion method based on cross-modal perception and attention mechanism according to claim 5 is characterized in that: The reward function is designed in the robot's motion task. The learning goal is that the robot can move forward autonomously and stably without colliding with obstacles. The following reward function is designed: In the formula, represents the forward reward, which motivates the robot to move forward in the direction of a specific task; represents the energy consumption reward, which encourages the robot to use the least amount of energy and is used to improve the naturalness of the movement. The Euclidean norm is used to penalize the motor torque; Represents the survival reward, which encourages the robot to survive longer and gives a positive reward of 1.0 at each time step until termination; It indicates the termination penalty. It is a penalty when the training round is terminated prematurely. Dangerous behaviors such as falling and hitting obstacles will lead to termination. It encourages the robot to avoid unsafe behaviors such as collision. ; ; ; ; .
9. The lightweight quadruped robot motion method based on cross-modal perception and attention mechanism according to claim 1 is characterized in that: The low-level reinforcement learning motion controller adopts the PPO algorithm to train the reinforcement learning agent by inputting multimodal features into the low-level reinforcement learning motion controller, and the low-level reinforcement learning motion controller calculates the reward value and the next action value according to the obtained state information, and then uses the state, action, and reward value as a training sample to update the policy network and value network parameters by minimizing the loss function.
10. A lightweight quadruped robot motion system based on cross-modal perception and attention mechanism, characterized in that: include: A data fusion module is used to obtain proprioceptive and visual perception data of the quadruped robot; Based on the proprioceptive perception data and the visual perception data, multimodal data fusion is performed to obtain the fused multimodal features; The controller training module is used to construct a cross-modal perception attention controller and a low-level reinforcement learning motion controller; according to the multimodal features, the cross-modal perception attention controller and the low-level reinforcement learning motion controller are collaboratively trained in a virtual environment. During training, the quadruped robot interacts continuously with the virtual environment and is trained using a reinforcement learning training method to obtain a trained cross-modal perception attention controller and a low-level reinforcement learning motion controller; during the training process, the multimodal features are input into the cross-modal perception attention controller to determine whether to collect visual perception data at the next moment, and at the same time, the multimodal features are input into the low-level reinforcement learning motion controller to output the expected rotation angles of multiple joints; The robot control module is used to control the motion of the quadruped robot through a trained cross-modal perception attention controller and a low-level reinforcement learning motion controller.
Citation Information
Cited By
Perceptual prediction method for cross-modal self-supervised learning of intelligent robot with body
CN119204148A
Perception prediction method for cross-modal self-supervised learning for embodied intelligent robots
CN119204148B
Motion generation method for quadruped robot in sparse terrain based on terrain reconstruction
CN119225418A
Robot control method and device based on multi-modal data fusion
CN119260752A
Quadruped robot autonomous decision-making control system based on multi-mode perception
CN119596776A
