Robot motion control method and device, electronic equipment and storage medium
By acquiring robot environmental information and joint parameters, and switching to an adaptive motion mode, the problem of low speed and poor stability of wheeled mobile robots in complex environments is solved, and stable movement of the robot in various environments is achieved.
Patent Information
- Application Number
- CN202310621872.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-29
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2043-05-29
AI Technical Summary
Existing wheeled mobile robots suffer from low speed and poor stability in complex environments, limiting their application in real-world human settlements.
By acquiring the robot's current environmental information and joint motion parameters, the environment type is determined and the robot is switched to an adaptive target motion mode. The robot's joint motion parameters are then configured to adapt to the motion mode of the ground contact part.
This enhances the robot's environmental adaptability, enabling it to move stably in different environments and adapt to various application scenarios.
Smart Images

Figure CN119036433B_ABST
Abstract
Description
Technical Field
[0001] This application relates to computer technology, and more particularly to a method, apparatus, electronic device, and computer-readable storage medium for controlling the motion of a robot. Background Technology
[0002] With the development of robotics technology, various types of robots are increasingly being used in fields such as smart factories, smart logistics, and smart warehousing to significantly improve automation and reduce human resource costs. Common mobile robots include legged robots and wheeled robots.
[0003] To enable robots to move flexibly and efficiently and adapt to complex terrain environments, wheeled mobile robots are typically used. However, the low speed and poor stability of wheeled mobile robots limit their application in real-world human settlements.
[0004] Currently, there is no effective robot motion control method that can improve the robot's environmental adaptability. Summary of the Invention
[0005] This application provides a robot motion control method, device, electronic device, computer-readable storage medium, and computer program product, which can improve the robot's environmental adaptability.
[0006] The technical solution of this application embodiment is implemented as follows: This application provides a motion control method for a robot, the method comprising: Obtain environmental information about the current environment in which the robot is located, as well as the motion parameters of the robot's joints; The environment type of the current environment is determined based on the environmental information; The robot's current posture is determined based on the joint motion parameters; Based on the environmental information and joint motion parameters, the position information of the robot in the current environment is determined; In response to the current posture and the position information satisfying the motion mode switching condition, the robot's current motion mode is switched to the target motion mode corresponding to the environment type; The motion parameters of the robot's joints are configured based on the target motion mode corresponding to the environment type, wherein the motion parameters are used to switch the part of the robot in contact with the ground to the ground contact part in the target motion mode.
[0007] This application provides a motion control device for a robot, including: The sensing module is configured to acquire environmental information of the current environment in which the robot is located and the motion parameters of the robot's joints; The state estimation module is configured to determine the environment type of the current environment based on the environmental information; The state estimation module is configured to determine the robot's current posture based on joint motion parameters; The state estimation module is configured to determine the robot's position information in the current environment based on the environmental information and joint motion parameters; The motion control module is configured to switch the robot's current motion mode to the target motion mode corresponding to the environment type in response to the current posture and the position information satisfying the motion mode switching condition. The motor control module is configured to configure the motion parameters of the robot's joints based on the target motion mode corresponding to the environment type, wherein the motion parameters are used to switch the part of the robot in contact with the ground to the ground contact part in the target motion mode.
[0008] This application provides an electronic device, the electronic device comprising: Memory is used to store executable instructions for a computer; The processor, when executing computer-executable instructions stored in the memory, implements the motion control method for the robot provided in the embodiments of this application.
[0009] This application provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the motion control method for a robot provided in this application.
[0010] This application provides a computer program product, including a computer program or computer-executable instructions. When the computer program or computer-executable instructions are executed by a processor, they implement the motion control method for the robot provided in this application.
[0011] The embodiments of this application have the following beneficial effects: By acquiring environmental information and the robot's current posture, a target motion mode adapted to the current environment is determined. Based on the parameters of the target motion mode, the robot's motion parameters are configured so that the robot's motion mode is switched to an environment-adaptive motion mode, thereby improving the robot's environmental adaptability. This enables the robot to move stably in different environmental types and adapt to different application scenarios. Attached Figure Description
[0012] Figure 1 This is a schematic diagram illustrating the application mode of the robot motion control method provided in the embodiments of this application; Figure 2 This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application; Figures 3A to 3D This is a flowchart illustrating the motion control method for a robot provided in an embodiment of this application; Figures 4A to 4D This is a schematic diagram of the robot structure provided in an embodiment of this application; Figures 5A to 5B This is a schematic diagram of robot movement provided in an embodiment of this application; Figure 6A This is a schematic diagram illustrating the principle of the motion control method for a robot provided in the embodiments of this application; Figure 6B This is a schematic diagram of the state control machine provided in an embodiment of this application; Figure 6C This is a schematic diagram of the modules provided in the embodiments of this application. Detailed Implementation
[0013] To make the objectives, technical solutions, and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings. The described embodiments should not be regarded as limitations on this application. All other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0014] In the following description, references are made to “some embodiments,” which describe a subset of all possible embodiments. However, it is 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.
[0015] In the following description, the terms "first, second, third" are used merely to distinguish similar objects and do not represent a specific ordering of objects. It is understood that "first, second, third" may be interchanged in a specific order or sequence where permitted, so that the embodiments of this application described herein can be implemented in an order other than that illustrated or described herein.
[0016] It should be noted that the data collection and processing in this application (e.g., environmental information collected during robot operation) should strictly comply with the requirements of relevant national laws and regulations, obtain the informed consent or separate consent of the personal information subject, and carry out subsequent data use and processing within the scope of laws and regulations and the authorization of the personal information subject.
[0017] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of this application only and is not intended to limit this application.
[0018] Before providing a further detailed description of the embodiments of this application, the nouns and terms involved in the embodiments of this application will be explained, and the nouns and terms involved in the embodiments of this application shall be interpreted as follows.
[0019] 1) Mobile robots, including legged and wheeled robots. To enable robots to move flexibly and efficiently and adapt to complex terrain environments, wheeled-legged mobile robots are commonly used. Wheeled-legged mobile robots are based on legged robots, for example, by adding wheels to the bottom of their leg mechanisms. This gives wheeled-legged mobile robots both the agility of wheeled movement and the flexibility of legged movement, allowing them to adapt to various complex terrains.
[0020] 2) Multimodal mobile robots: Multimodal mobile robots can switch between legged and wheeled locomotion modes. For example, a multimodal mobile robot can switch from two wheels to two legs.
[0021] 3) Convolutional Neural Networks (CNNs) are a class of feedforward neural networks (FNNs) that include convolutional computations and have a deep structure. They are one of the representative algorithms of deep learning. CNNs have representation learning capabilities and can perform shift-invariant classification of input images according to their hierarchical structure.
[0022] 4) Inertial Measurement Unit (IMU): A device that measures an object's three-axis attitude angles (or angular rates) and acceleration. An inertial sensor mainly consists of three accelerometers or accelerometer sensors, three gyroscopes, and a calculation circuit. The accelerometers detect the object's acceleration signals along the three independent axes of the carrier coordinate system, while the gyroscopes detect the carrier's angular velocity signals relative to the navigation coordinate system. By measuring the object's angular velocity and acceleration in three-dimensional space, the object's attitude can be calculated.
[0023] 5) A distance sensor, also known as a displacement sensor, is a type of sensor used to sense the distance between itself and an object to perform a preset function. Distance sensors can be classified into various types based on their working principle, such as optical distance sensors, infrared distance sensors, and ultrasonic distance sensors.
[0024] 6) Tactile sensors: Tactile sensors are used in robots to mimic the function of touch. They can be classified according to function into contact sensors, torque sensors, pressure sensors, and slip sensors.
[0025] This application provides a robot motion control method, a robot motion control device, an electronic device, a computer-readable storage medium, and a computer program product, which can improve the robot's environmental adaptability.
[0026] The following describes exemplary applications of the electronic devices provided in the embodiments of this application. These electronic devices can be implemented as various types of user terminals, such as laptops, tablets, desktop computers, set-top boxes, mobile devices (e.g., mobile phones, portable music players, personal digital assistants, dedicated messaging devices, portable gaming devices), in-vehicle terminals, virtual reality (VR) devices, and augmented reality (AR) devices, or as servers. The following will describe exemplary applications when the device is implemented as a terminal device.
[0027] refer to Figure 1 , Figure 1 This is a schematic diagram illustrating the application mode of the robot motion control method provided in the embodiments of this application; for example, Figure 1 The system involves a server 200, a robot body 100, a network 300, and a terminal device 400. The terminal device 400 is connected to the server 200 through the network 300, which can be a wide area network, a local area network, or a combination of both.
[0028] For example, the mechanical structure of the robot body 100 is controlled by the terminal device 400. The terminal device 400 calls the robot motion control method provided in the embodiments of this application, analyzes the environmental information and motion parameters collected by various sensors set on the robot, determines the corresponding motion mode of the robot in the current environment, and controls the robot to switch to the corresponding motion mode so that the robot can move in a motion mode adapted to the current environment.
[0029] This application embodiment can be implemented using database technology. A database, simply put, can be viewed as an electronic filing cabinet storing electronic files, where users can perform operations such as adding, querying, updating, and deleting data. A "database" is a collection of data stored together in a certain way, capable of being shared by multiple users, having minimal redundancy, and being independent of application programs.
[0030] A Database Management System (DBMS) is a computer software system designed to manage databases, generally possessing basic functions such as storage, retrieval, security, and backup. DBMSs can be classified according to the database model they support, such as relational or XML (Extensible Markup Language); or according to the type of computer they support, such as server clusters or mobile devices; or according to the query language used, such as Structured Query Language (SQL) or XQuery; or according to performance priorities, such as maximum scale or maximum operating speed; or other classification methods. Regardless of the classification method used, some DBMSs can cross categories, for example, simultaneously supporting multiple query languages.
[0031] This application embodiment can also be implemented using cloud technology. Cloud technology is a general term for network technology, information technology, integration technology, management platform technology, and application technology based on cloud computing business models. It can form a resource pool, available on demand, offering flexibility and convenience. Cloud computing technology will become a crucial support. Backend services of technical network systems require substantial computing and storage resources, such as video websites, image websites, and many portal websites. With the rapid development and application of the internet industry, and driven by demands for search services, social networks, mobile commerce, and open collaboration, every item may eventually possess its own hash-coded identification mark, requiring transmission to a backend system for logical processing. Data at different levels will be processed separately, and various industry data will require robust system support, which can only be achieved through cloud computing.
[0032] In some embodiments, the server can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. Electronic devices can be smartphones, tablets, laptops, desktop computers, smart speakers, smartwatches, etc., but are not limited to these. Terminal devices and servers can be directly or indirectly connected via wired or wireless communication, which is not limited in this embodiment of the invention.
[0033] See Figure 2 , Figure 2 This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application. Figure 2The illustrated electronic device may be a terminal device. Terminal device 400 includes at least one processor 410, a memory 450, at least one network interface 420, and a user interface 430. The various components in terminal device 400 are coupled together via a bus system 440. It is understood that the bus system 440 is used to implement communication between these components. In addition to a data bus, the bus system 440 also includes a power bus, a control bus, and a status signal bus. However, for clarity, ... Figure 2 The general labeled all buses as Bus System 440.
[0034] 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. Among them, the general-purpose processor can be a microprocessor or any conventional processor, etc.
[0035] User interface 430 includes one or more output devices 431 that enable the presentation of media content, including one or more speakers and / or one or more visual displays. 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.
[0036] The memory 450 may be removable, non-removable, or a combination thereof. Exemplary hardware devices include solid-state storage, hard disk drives, optical disk drives, etc. The memory 450 may optionally include one or more storage devices physically located away from the processor 410.
[0037] The memory 450 may include volatile memory or non-volatile memory, or both. The non-volatile memory may be read-only memory (ROM), and the volatile memory may be random access memory (RAM). The memory 450 described in this application embodiment is intended to include any suitable type of memory.
[0038] In some embodiments, memory 450 is capable of storing data to support various operations, examples of which include programs, modules, and data structures or subsets or supersets thereof, as illustrated below.
[0039] Operating system 451 includes system programs for handling various basic system services and performing hardware-related tasks, such as the framework layer, core library layer, driver layer, etc., for implementing various basic business functions and handling hardware-based tasks; The network communication module 452 is used to reach other electronic devices via one or more (wired or wireless) network interfaces 420, exemplary network interfaces 420 including: Bluetooth, WiFi, and Universal Serial Bus (USB), etc. Presentation module 453 is configured to enable the presentation of information (e.g., a user interface for operating peripheral devices and displaying content and information) via one or more output devices 431 associated with user interface 430 (e.g., a display screen, a speaker, etc.). The input processing module 454 is used to detect and translate one or more user inputs or interactions from one or more input devices 432.
[0040] In some embodiments, the apparatus provided in this application can be implemented in software. Figure 2 A motion control device 455 for a robot, stored in memory 450, is shown. This device can be software in the form of programs and plug-ins, and includes the following software modules: a sensing module 4551, a state estimation module 4552, a motion control module 4553, and a motor control module 4554. These modules are logically connected and can therefore be arbitrarily combined or further separated according to the functions they implement. The functions of each module will be described below.
[0041] The motion control method for robots provided in this application will be described in conjunction with exemplary applications and implementations of the electronic devices provided in the embodiments of this application.
[0042] The following describes the robot motion control method provided in the embodiments of this application. As mentioned above, the electronic device implementing the robot motion control method of the embodiments of this application can be a terminal device, a server, or a combination of both. Therefore, the executing entity of each step will not be described again below.
[0043] See Figure 3A , Figure 3A This is a flowchart illustrating the motion control method for a robot provided in this application embodiment, which will be combined with... Figure 3A The steps shown are explained.
[0044] In step 301, environmental information of the current environment in which the robot is located and motion parameters of the robot's joints are obtained.
[0045] The robot in this embodiment has different motion modes and can switch between them. For ease of explanation, the following description, in conjunction with the accompanying drawings, explains one type of robot controlled by the motion control method of this embodiment. (Reference) Figure 4A , Figure 4A This is a schematic diagram of the robot structure provided in an embodiment of this application; the robot includes a head 401, a torso 402, a waist 403, legs 406 (including inner legs 404 and outer legs 405), wheels 407 at the end of each leg, upper limbs 408, a pitch rotation center 409, and a hip rotation center 410. This embodiment mainly describes the robot's movement, that is, the movement of the part of the robot in contact with the ground; the upper limbs are not specifically described here. (Reference) Figure 4B , Figure 4B This is a schematic diagram of the robot structure provided in an embodiment of this application; the robot also includes a lateral rotation center 501, used to rotate the robot's body around a direction perpendicular to the ground. It should be understood that multimodal mobile robots come in many different types, and the motion control method for the robot provided in this embodiment can be applied to different types of robots with motion mode switching capabilities, and is not limited to... Figure 4A The robot is an example.
[0046] For example, motion parameters include: angular velocity, included angle, acceleration, and movement speed of the robot's motor joints. Step 301 can be achieved by invoking various sensors installed on the robot. These sensors include: GPS sensors, tactile sensors in the feet, force and torque sensors in the feet, inertial measurement units (IMUs), time-of-flight (TOF) sensors, and remote controllers and image processors (GUIs) responsible for human-computer interaction input, cameras, and vision sensors.
[0047] In some embodiments, reference Figure 3B , Figure 3B This is a flowchart illustrating the motion control method for a robot provided in an embodiment of this application. Figure 3A Step 301 in the process can be achieved through Figure 3B Steps 3011 to 3015 are implemented, and the details are explained below.
[0048] In step 3011, the sensors of the robot's joints are invoked to obtain the angular velocity, included angle, and motion speed of the joints, and the angular velocity, included angle, and motion speed are used as motion parameters.
[0049] For example, the sensors on the robot's joints are inertial sensors. Inertial sensors are used to measure the three-axis attitude angles (or angular rates) and acceleration of an object. Inertial sensors installed at the motor joints can obtain the angular velocity, included angle, and movement speed of the motor joints.
[0050] In step 3012, the robot's distance sensor is invoked to obtain the distance between the robot's surface and obstacles in the current environment.
[0051] For example, distance sensors can be categorized into various types based on their working principles, such as optical distance sensors, infrared distance sensors, and ultrasonic distance sensors. The specific type of distance sensor installed on the robot can be determined according to the robot's working scenario, and this application embodiment does not impose any limitations on this. The distance sensor is installed on the outer surface of the robot and can measure the distance between the robot's surface and obstacles in the current environment.
[0052] In step 3013, the robot's tactile sensors are invoked to obtain the contact area between the robot and the current environment.
[0053] For example, tactile sensors are installed on the parts of the robot that come into contact with the ground. The robot's posture and movement mode can be determined based on the part that is currently in contact with the ground. For instance, if the robot has four legs and four wheels, and a tactile sensor is installed at a corresponding position on each leg and wheel, if the part of the robot that is in contact with the ground is the four legs for a preset time, then the robot is in quadrupedal movement mode.
[0054] In step 3014, the robot's vision sensor is invoked to obtain the location of obstacles in the current environment.
[0055] For example, a visual sensor could be a camera. A camera positioned on the robot's surface can determine the specific shape of obstacles or terrain near the robot. By extracting features from the images captured by the camera and combining this with the distance data obtained from a distance sensor, the location of obstacles in the current environment can be determined.
[0056] In step 3015, the obstacle position, the contact portion, and the interval distance are used as environmental information of the current environment.
[0057] In this embodiment, by setting multiple sensors on the robot and combining the data from these sensors to determine the environmental information and motion parameters around the robot, the parameters are acquired more comprehensively, which facilitates the determination of the robot's motion mode in the environment based on the environmental information and motion parameters.
[0058] Continue to refer to Figure 3A In step 302, the environment type of the current environment is determined based on the environmental information.
[0059] For example, the environment type can be set according to the actual application scenario of the robot. This embodiment of the application takes the application of the robot in a user's life scenario as an example for illustration. The environment types of human life scenarios include: going up stairs, going down stairs, going uphill, going downhill, smooth flat ground, rough flat ground, etc. Assuming that the ground environment is regarded as obstacles, the terrain can be determined according to the distance between the robot and the ground, and then the current environment can be determined according to the terrain to be which environment type it belongs to: going up stairs, going down stairs, going uphill, going downhill, smooth flat ground, or rough flat ground.
[0060] In step 303, the current posture of the robot is determined based on the joint motion parameters; In some embodiments, the motion parameters include the included angles of the robot's joints; Figure 3A Step 303 can be achieved by: determining the relative position between each limb of the robot and the robot's body based on the joint angles and the dimensions of each limb; and determining the robot's current posture based on the relative position between each limb and the robot's body.
[0061] For example, the relative position between each limb of the robot and the robot's body can be characterized by the distance between the geometric center of the limb and the geometric center of the body, or by the positional relationship between the limb and the body. For example, the relative position between the limb and the body can be characterized as the geometric center of the limb being located on the lower left side of the body and the geometric center of the limb being located on the upper right side of the body.
[0062] Each type of pose corresponds to a pre-configured range of relative positions between the limbs and the robot's body. The current relative position between the robot's limbs and the robot's body is obtained to the pre-configured range, and the pose type corresponding to the pre-configured range is taken as the robot's current pose.
[0063] In step 304, the position information of the robot in the current environment is determined based on the environmental information and the joint motion parameters.
[0064] For example, the robot's position information in the current environment includes the robot's center of mass position, joint positions, and contact positions with the ground in the coordinate system corresponding to the current environment.
[0065] In some embodiments, the motion parameters include the acceleration and angular velocity of the robot's joints; reference Figure 3C , Figure 3C This is a flowchart illustrating the motion control method for a robot provided in an embodiment of this application. Figure 3A Step 304 in the process can be achieved through Figure 3CSteps 3041 to 3045 are implemented, and the details are explained below.
[0066] In step 3041, the angular velocity and acceleration of the joint are integrated to obtain the displacement information of the joint in the current environment.
[0067] For example, integrating the angular velocity over time yields the change in the joint angle of the motor joint, including the absolute value of the joint angle change and the direction of the change (decreasing or increasing). Integrating the acceleration over time yields the displacement distance, which includes the absolute value of the displacement distance and the direction of its change.
[0068] In step 3042, the current position of the robot in the current environment is determined based on the joint displacement information, the size of each limb of the robot, and the environmental information.
[0069] In some embodiments, the displacement information includes joint angle change and displacement distance; the environmental information includes terrain data; step 3042 can be implemented in the following way: perform the following processing on the joint: update the initial joint angle of the joint according to the joint angle change to obtain the current angle of the joint, update the initial position of the joint according to the displacement distance to obtain the current position of the joint.
[0070] For example, the direction of the joint angle change determines whether the angle is increasing or decreasing. If decreasing, the initial joint angle is subtracted from the absolute value of the joint angle change; if increasing, the initial joint angle is added to the absolute value of the joint angle change to obtain the current angle. Similarly, the initial position is updated based on the displacement distance to obtain the current position.
[0071] In step 3043, the contact position of the part of the robot that contacts the ground in the current environment is determined based on the terrain data.
[0072] For example, based on terrain data, the coordinates of the part of the robot that contacts the ground in the environment can be determined. The robot's position coordinates in the coordinate system can be determined by the positioning sensor. By combining the height of each position on the ground corresponding to the terrain data, the relative position of the part of the robot that contacts the ground and the positioning sensor of the robot, the contact position coordinates of the part of the robot that contacts the ground in the current environment in the coordinate system corresponding to the environment can be obtained.
[0073] In step 3044, the center of mass position of the robot in the current environment is determined based on the current angle and position of the joints, the size of each limb, and each contact position.
[0074] For example, the current angle and current position of the joint, and each of the contact positions are taken as a column in a matrix and combined into a rotation matrix to characterize the robot's position in the environment. The center of mass position of the robot's body in the robot's corresponding coordinate system is obtained. Based on the rotation matrix and the size of each limb of the robot, the center of mass position in the robot's corresponding coordinate system is updated to the center of mass position in the current environment's coordinate system.
[0075] In step 3045, the current angle and position of the joint, each of the contact positions, and the position of the center of mass are taken as the current position of the robot in the current environment.
[0076] In this embodiment, the robot's position in the current environment is obtained from multiple aspects, making the robot's current position representation more comprehensive. This facilitates the switching of movement modes based on the current position and avoids collisions between the robot and obstacles during the movement mode switching process.
[0077] Continue to refer to Figure 3A In step 305, in response to the current posture and the position information satisfying the motion mode switching condition, the robot's current motion mode is switched to the target motion mode corresponding to the environment type.
[0078] For example, the robot's movement modes include at least two of the following: four-wheel mode, quadruped mode, two-wheel mode, two-wheel and two-legged mode, two-legged mode, fall recovery mode, and folding mode. That is, in the embodiments of this application, the robot can switch between at least two movement modes, and each movement mode will be explained below.
[0079] In some embodiments, in response to the current posture being a fall posture and the distance between the robot's current position and the obstacle being greater than a first distance threshold, the robot's current motion mode is switched to a fall self-recovery mode.
[0080] For example, when at least a portion of the robot's body is in contact with the ground, the robot is determined to be in a fallen posture. A distance sensor is then used to obtain the distance between the robot's outer surface and obstacles in the current environment. A first distance threshold can be the minimum distance at which the robot will not collide with obstacles while recovering to a standing posture. A fall self-recovery mode refers to the mode in which the robot recovers to a standing or walking state after falling.
[0081] In some embodiments, in response to the current posture being a motion posture and the distance between the robot's current position and the obstacle being greater than a second distance threshold, the current battery level of the robot is obtained, and in response to the current battery level being less than the battery threshold, the current motion mode of the robot is switched to a folding mode.
[0082] For example, the folding mode is a movement pattern in which the robot's limbs that contact the ground fold together with the robot's torso. A power threshold can be set as the minimum amount of power required to support the robot's movement. A second distance threshold can be the minimum distance at which the robot will not collide with obstacles while switching to folding mode.
[0083] In some embodiments, when the environment type is flat ground, step 305 is implemented by: in response to the current posture not being a four-wheeled movement posture and the distance between the robot's current position and the obstacle being greater than a third distance threshold, switching the robot's current motion mode to a four-wheeled mode adapted to the flat ground.
[0084] For example, four-wheel mode is a movement mode in which the robot uses four wheels for contact with the ground. The third distance threshold can be the minimum distance at which the robot will not collide with obstacles while switching to four-wheel mode. (Reference) Figure 4A , Figure 4A This is a schematic diagram of the robot structure provided in an embodiment of this application; Figure 4A The robot moves on four wheels.
[0085] In some embodiments, when the environment type is flat ground, step 305 is implemented by: in response to the current posture not being a two-wheeled movement posture and the distance between the robot's current position and the obstacle being greater than a third distance threshold, switching the robot's current movement mode to a two-wheeled mode adapted to the flat ground.
[0086] refer to Figure 4C , Figure 4C This is a schematic diagram of the robot structure provided in an embodiment of this application; Figure 4C This is a two-wheeled mode. Two-wheeled mode is a movement mode where the robot uses two wheels for contact with the ground. The third distance threshold is the minimum distance the robot must travel to avoid colliding with obstacles while switching to two-wheeled mode.
[0087] In some embodiments, when the environment type is non-flat ground, step 305 is implemented by: in response to the current posture not being a quadrupedal movement posture and the distance between the robot's current position and the obstacle being greater than a third distance threshold, switching the robot's current movement mode to a quadrupedal mode adapted to the non-flat ground.
[0088] For example, similar to the four-wheel mode, the quadruped mode is a movement mode in which the robot uses its four legs to make contact with the ground. The third distance threshold can be the minimum distance at which the robot will not collide with obstacles during the process of switching to quadruped mode.
[0089] For example, let's take the application scenario of robots in human living environments as an example. Non-flat environments could include places with stairs or stairs. (Reference) Figure 4D , Figure 4D This is a schematic diagram of the robot structure provided in an embodiment of this application; Figure 4D The robot uses a four-wheeled mode to climb stairs. The robot's inner leg 404 and outer leg 405 move alternately, and the motor joints of the inner leg 404 and outer leg 405 control the angle changes of the limbs accordingly, so that the robot can move on the stairs and adapt its movement to the current stair terrain.
[0090] Continue to refer to Figure 3A In step 306, the motion parameters of the robot's joints are configured based on the target motion mode corresponding to the environment type.
[0091] For example, the motion parameters are used to switch the part of the robot in contact with the ground to the ground contact part in the target motion mode. The types of motion modes of the robot have been described above. Taking the switching from bipedal mode to quadrupedal mode as an example, the acceleration and angular velocity corresponding to the motor joints associated with each foot in contact with the ground in the target motion mode (quadrupedal mode) are obtained, and the acceleration and angular velocity corresponding to the motor joints are converted from digital signals to electrical signals. The electrical signals are then output to the corresponding motor joints to enable the robot's motor joints to perform the relevant movements.
[0092] In some embodiments, reference Figure 3D , Figure 3D This is a flowchart illustrating the motion control method for a robot provided in an embodiment of this application. Figure 3A Step 306 in the process can be achieved through Figure 3D Steps 3061 to 3065 are implemented, and the details are explained below.
[0093] In step 3061, the target motion mode corresponding to the environment type is obtained.
[0094] For example, robot developers pre-configure the target motion mode for each environment type. For instance, the environment of going down stairs can be configured as either quadruped or bipedal. When the robot falls, a fall recovery mode is configured.
[0095] In some embodiments, step 3061 can be implemented in the following way: based on the environmental information corresponding to the environment type, a neural network model is invoked to extract features to obtain environmental features; the classifier of the neural network model is invoked to classify the environmental features to obtain the motion pattern corresponding to the environmental features; and the motion pattern corresponding to the environmental features is used as the target motion pattern.
[0096] For example, the training sample set of the neural network model includes: different environmental information, the corresponding actual environment type, and the motion pattern corresponding to the actual environment type. Based on the training sample set, the initialized neural network model is trained to enable the neural network model to classify environmental information.
[0097] In step 3062, the pre-configured initial motion parameters of the robot's joints associated with the target motion pattern are obtained.
[0098] For example, there are multiple motion modes. Taking the bipedal mode as an example, when the target motion mode of the robot is bipedal, the pre-configured initial motion parameters of the bipedal mode are called, including the angular velocity, acceleration and other parameters of the motor joints associated with the bipedal legs as the part in contact with the ground in the robot's bipedal mode.
[0099] In step 3063, the initial motion parameters of the joint are iteratively updated according to the environmental information corresponding to the environment type to obtain multiple target motion parameters.
[0100] For example, the robot's movement in the environment is affected by the environment. Therefore, the initial parameters such as angular velocity and acceleration of the motor joints are dynamically updated according to the environmental information to obtain the robot's angular velocity and acceleration at each moment that are adapted to the environmental information, which are multiple target motion parameters.
[0101] In step 3064, the multiple target motion parameters are combined into a parameter sequence according to the order in which they are generated.
[0102] For example, each of the target motion parameters in the parameter sequence is used to control the motion state of the joint at different times. The robot includes multiple motor joints, and different parameter sequences exist for each joint.
[0103] In step 3065, the motion state of the robot's joints is controlled according to the time sequence corresponding to each of the target motion parameters in the parameter sequence.
[0104] For example, the target motion parameters of the parameter sequence are converted from digital signals into electrical signals and output to the robot's joints to control the joints to perform corresponding motion states, thereby enabling the robot to move in the environment.
[0105] This application embodiment obtains environmental information and the robot's current posture, determines the target motion mode adapted to the current environment, and configures the robot's motion parameters based on the parameters of the target motion mode, so that the robot's motion mode is switched to an environment-adaptive motion mode, thereby improving the robot's environmental adaptability, enabling the robot to move stably in different environmental types, and enabling the robot to adapt to different application scenarios.
[0106] The following will describe an exemplary application of the robot motion control method of this application in a practical application scenario.
[0107] Bipedal mobile robots can adapt to various complex terrains, but they suffer from low speed and poor stability, limiting their application in real-world human environments. This application provides a motion control method for robots with multiple motion modes, combining the advantages of multi-terrain adaptability of bipedal robots with the dynamic performance of rapid movement.
[0108] For example, the robot in this embodiment includes multiple movement modes, distinguished according to the part of the robot in contact with the ground. The robot's movement modes include: two-wheel balance mode, four-wheel combined bipedal mode, four-wheel mode, four-wheel combined quadrupedal mode, X-wheel mode, bipedal mode, quadrupedal mode, two-wheel combined bipedal mode, folding mode, and fall self-recovery mode. It can achieve movement under different environmental conditions. The mode switching method includes switching between two two-wheel balance modes (including a two-wheel balance mode based on an inverted pendulum model and a two-wheel balance mode based on whole-body dynamics control) and two four-wheel modes (including a four-wheel joint position control mode and a four-wheel joint force-controlled whole-body control mode), switching between two two-wheel balance modes and X-wheel mode, switching between folding mode and two four-wheel modes, switching between two four-wheel modes and two-wheel combined bipedal mode, switching between four-wheel mode and two-wheel mode, switching between two-wheel mode and bipedal combined two-wheel mode, and switching between fall self-recovery mode and other modes.
[0109] Each movement mode of the robot can be considered a modality. The robot in this embodiment is referred to as a multimodal mobile robot. The multimodal mobile robot switches modes according to different terrains. When the robot enters a new environment, it uses a central control system to determine environmental information and switch modes accordingly, enabling the robot to move in the new environment. The central control system includes an environmental perception module, a central control data processing module, and an execution module. Using the modality switching method, the robot can achieve rapid modality switching in different environments, improving robot mobility and reducing energy consumption. In addition to a mobile chassis, the robot also includes a waist and upper limbs. The upper limbs can be single or double arms, and the number of degrees of freedom of each arm is adjustable. This embodiment is not limited to single or double arms or the specific number of degrees of freedom for each arm.
[0110] For ease of explanation, the following description, in conjunction with the accompanying drawings, explains one type of robot controlled by the robot motion control method of this application. (Reference) Figure 4A , Figure 4A This is a schematic diagram of the robot structure provided in an embodiment of this application; the robot includes a head 401, a torso 402, a waist 403, legs 406 (including inner legs 404 and outer legs 405), wheels 407 at the end of each leg, upper limbs 408, a pitch rotation center 409, and a hip rotation center 410. This embodiment mainly describes the robot's movement, that is, the movement of the part of the robot in contact with the ground; the upper limbs are not specifically described here. (Reference) Figure 4B , Figure 4B This is a schematic diagram of the robot structure provided in the embodiments of this application; the robot also includes a lateral rotation center 501, which is used to rotate the robot's body around a direction perpendicular to the ground.
[0111] The robot's motion control system includes: a sensing and input module, a state estimation module, a path planning module, a motion generation and control module, a motor low-level control module, and a robot module.
[0112] refer to Figure 6A , Figure 6AThis is a schematic diagram illustrating the principle of the robot motion control method provided in this application embodiment; the sensing and input module has a processing time of less than 1 millisecond (excluding the camera). This part includes hardware output signals such as: a motor encoder that can output the angles q and angular velocities qd of all joints, a GPS sensor, tactile sensors for the feet, force and torque sensors for the feet, an inertial measurement unit (IMU), a camera on the lower body, a time-of-flight (TOF) sensor, and a remote control and image processor (GUI) responsible for human-computer interaction input. If the control of the robot's robotic arm is considered, a torque sensor for the robotic arm, tactile sensors at the fingertips, and a camera on the upper body are also required.
[0113] The signals from each sensor in the Sensing and Input module are output to the State Estimation module. The State Estimation module has a processing time of less than 1 millisecond. This module is used for environmental recognition, determining whether the ground is flat and whether there are obstacles in the surrounding environment. State estimation also provides the position and attitude information of the robot's base, which can be in either the world coordinate system or the robot's body coordinate system.
[0114] The path planning module has a processing time of less than 1 millisecond and is used for global path planning (processing time less than 1 second) and local path planning (processing time less than 100 milliseconds). Depending on whether the robotic arm is involved in the robot chassis movement, both global and local path planning are divided into two parts: with and without the robotic arm.
[0115] The motion generation module has a processing time of less than 10 milliseconds. The motion generation module is divided into two parts: a motion generation module without a robotic arm and a motion generation module with a robotic arm. (Reference) Figure 6C , Figure 6CThis is a schematic diagram of the modules provided in the embodiments of this application. The action generation module is used to control the generation of actions (T1~T8) for switching between two modules, and also includes the generation of actions for a single mode, such as: two-wheel balance mode, four-wheel + two-legged mode, four-wheel mode, and four-wheel + four-legged mode. In the X-wheel mode, its action generation module includes the generation of actions for X-wheel walking, static climbing stairs, static descending stairs, dynamic climbing stairs, and dynamic descending stairs. The action generation of the two-legged (four-legged) mode includes the generation of actions for two-legged (four-legged) walking mode, two-legged (four-legged) climbing stairs mode, and two-legged (four-legged) descending stairs mode. The action generation of the two-wheel + two-legged mode includes the generation of actions for two-wheel + two-legged walking, two-wheel + two-legged climbing stairs, and two-wheel + two-legged descending stairs. At the same time, the action generation module also includes the generation of self-recovery actions for falls in different scenarios.
[0116] Based on the characteristics of the robot, the types of motors in this embodiment include: wheel motors, leg / waist motors, and robotic arm motors. These motors control the position, speed, or torque input of the joint angles, respectively. The control signals required by the motors are calculated by the motion generation module. Sending the control signals from the motion generation module to the motors enables posture control of the robot.
[0117] Figure 6B This is a schematic diagram of the state control machine provided in the embodiments of this application; wherein, the two-wheel balance mode is specifically divided into two-wheel balance mode 2-wheel WIP (wheel-inverted pendulum) based on the inverted pendulum model and two-wheel balance mode 2-wheel WBC (whole body control) based on whole body dynamics control, and the two modes can be switched between each other.
[0118] The four-wheel + bipedal mode allows for walking on flat ground and going up and down stairs.
[0119] The four-wheel driving mode allows for movement including forward, backward, turning, and stationary rotation. It is further divided into two modes: 4-wheel driving (four-wheel joint position control mode, controlling the position of upper body joints other than the wheels) and 4-wheel WBC (four-wheel joint force control full-body control mode). Users can switch between these two modes. (Reference) Figure 4C , Figure 4C This is a schematic diagram of the robot structure provided in an embodiment of this application; see reference. Figure 4D , Figure 4D This is a schematic diagram of the robot structure provided in an embodiment of this application; Figure 4C It is a two-wheel mode, in Figure 4DThe robot uses a four-wheeled mode to climb the stairs.
[0120] The X-wheel mode is named as such because the process of climbing stairs involves both a two-wheel balance mode and a four-wheel driving mode. There are also transitions between the two-wheel balance mode and the four-wheel driving mode, back to the two-wheel balance mode, and between the two-wheel balance mode and another two-wheel balance mode (left and right wheel switching). The ultimate goal of these combinations is to ensure that the robot's center of mass meets the requirements of climbing stairs and that the wheel ends are within the specified footprint range. Therefore, this series of possible combinations of actions is listed separately and named the X-wheel mode (multi-wheel mode).
[0121] Folded mode: Power-on and power-off configurations, the folded shape, and the completion of joint position self-checks and other processing in this posture.
[0122] It features a 2-wheel + bipedal mode, allowing it to walk on flat ground and go up and down stairs.
[0123] Bipedal walking mode allows for walking on flat ground and going up and down stairs.
[0124] In the quadruped walking mode, each leg in this embodiment has no rotational freedom in any direction. Walking is asymmetrical, allowing for adjustment of the center of gravity by supporting the body on three legs and lifting one leg for walking on flat ground and climbing stairs. The wheel + quadruped mode allows for walking on flat ground and climbing stairs.
[0125] The fall recovery mode activates a self-recovery strategy to minimize harm to humans. It aims to protect the surrounding environment from injury and, consequently, the robot's own hardware and software systems. The robot can switch between two two-wheeled balancing modes and two four-wheeled modes (T1 & T2 represent the mode transition); it can switch between the two two-wheeled balancing modes and the X-wheel mode (T3 & T4 represent the mode transition); it can switch between the folding mode and the two four-wheeled modes (T5 & T6 represent the mode transition); it can switch between the two four-wheeled modes and the two-wheeled + bipedal mode (T7 & T8 represent the mode transition); it can switch between the four-wheeled mode and the two-wheeled mode; and it can switch between the two-wheeled mode and the bipedal + two-wheeled mode. The fall recovery mode can be initiated by any other module when certain conditions detected by the robot's own sensors meet certain characteristics, i.e., when the robot itself is at risk of falling or has already fallen.
[0126] Figure 6A The meanings of the signals corresponding to the English words in the table can be found in the following table (1).
[0127]
[0128] The signals and related format information that each specific module in the Sensing and Input section can obtain are already... Figure 6A The detailed description of the information flow is provided. Among them, the motor encoder provides the angle and angular velocity values of the robot's joint motors. These values determine the robot's overall configuration, such as the change in the upper body posture angle in a two-wheeled balanced state, the length of each leg, the angle between each leg, and the specific angles of the pitch and yaw degrees of freedom of the upper body waist joint in a four-wheeled state. Based on the leg and wheel odometers, the robot's center of mass relative to its initial point can be calculated through integration to determine the specific direction and distance of movement. The positioning sensor provides relatively accurate global positioning information.
[0129] Inertial measurement units (IMUs) can obtain information such as the robot's displacement and attitude in space by integrating acceleration and angular velocity.
[0130] A distance sensor (TOF) can obtain the distance between a point on a robot's surface and an obstacle for obstacle avoidance. It can also be used for localization by measuring the relative position and specific changes of objects in an environment.
[0131] Cameras and other vision modules are used to detect and recognize objects in the environment, thus laying the foundation for actions such as mapping and obstacle avoidance. They can also achieve self-localization based on information such as RGB and Depth.
[0132] For example, by combining the output data from leg and wheel odometers, GPS, IMU, TOF, camera, and other vision modules, and then inputting the combined data into a neural network model, the robot's position and pose can be estimated.
[0133] In some embodiments, Kalman filtering, extended Kalman filtering, particle filtering, etc., can be applied to the output data of the sensing module. Under the above algorithm architecture, the confidence probability of the data of one or more signal sources can be adjusted by adjusting the values at the corresponding positions in different parameter matrices, thereby obtaining relatively accurate results.
[0134] By providing data and ground truth from multiple data sources under different scenarios, environments, and robot operating conditions—the ground truth values can be obtained from motion capture data—the parameters in the neural network are trained and determined, thereby achieving effective data fusion from multiple data sources under different scenarios, environments, and robot operating conditions. In some embodiments, an initial value can be pre-set using a certain signal source based on experience, and then updated and iterated using data from other signal sources based on the initial value. This achieves a trade-off between computational efficiency and the accuracy of state estimation results to some extent.
[0135] Cameras mounted on the lower body and upper body of the robot essentially use visual perception to provide information about the robot's relative position to its environment. However, the upper body camera can also provide local, relatively accurate position and posture feedback and environmental information for the robotic arm and gripper when performing tasks, facilitating tasks based on the upper body design.
[0136] Force and torque sensors (F / T sensors) can obtain the magnitude of the force or torque acting on the joint or location where the sensor is installed, thereby determining the robot's contact and interaction with the environment. A common practice is to incorporate the presence or relative magnitude of this force into the control closed loop to calculate the motor control command for the next moment, thus achieving compliant joint control and smooth closed-loop interaction with the environment. Tactile sensors, in some ways, are similar to force and torque sensors (F / T sensors), but they provide more precise and richer signals. Tactile sensors typically appear as sensor arrays, providing feedback on the contact status and force magnitude at each point. The embodiments of this application can predict the robot's contact position with external forces, the shape of the contact object, and the force distribution information. Tactile sensors applied to the footplate can more accurately obtain the number of contact points between the robot and the ground, accurately switching the model information used for robot control based on the Whole Body Dynamics Control model, as well as the phase information used for planning. Tactile sensors applied to the fingers and palms can more accurately acquire information about the shape, state, and force of objects touched by the hand, thereby enabling operations and even in-hand manipulation tasks. Force and torque sensors (F / T sensors) installed on the upper and lower body operate on the same principle as tactile sensors, and will not be elaborated upon here.
[0137] In some embodiments, during the initial stage of movement or in scenarios where the robot needs to be charged or folded to end the movement, the perception system needs to fuse various data streams to provide information such as whether there are obstacles around the robot and the specific distance between the obstacles and the robot. When it is confirmed that both the surrounding environment and the robot's own state meet the state switching conditions, the robot switches to folding mode. Switching conditions include, for example, determining that the distance between the obstacle and the robot will not cause the robot to collide with the obstacle during the movement mode switch, and that the robot is in non-folding mode.
[0138] In scenarios where a robot accidentally falls and needs to return to its normal motion sequence while ensuring the safety of itself, the environment, and the user, the perception system needs to fuse various data streams to provide information such as the presence of obstacles around the robot and the specific distance between the obstacles and the robot. Once it is confirmed that both the surrounding environment and the robot's own state meet the state transition conditions, it needs to switch to fall self-recovery mode. For example, the transition conditions might include ensuring that the distance between obstacles and the robot will not cause the robot to collide with obstacles during the motion mode transition.
[0139] In scenarios where the ground is relatively flat, high movement speed is required, and low energy consumption of the robot is essential, the perception system needs to fuse various data streams to determine whether obstacles exist around the robot and the specific distance between the obstacles and the robot. When it is confirmed that both the surrounding environment and the robot's own state meet the state transition conditions, the system prioritizes switching to four-wheel mode. These transition conditions include, for example, ensuring that the distance between obstacles and the robot will not cause a collision during the mode transition, and that the robot is currently in non-four-wheel mode.
[0140] In scenarios where the ground is relatively flat, high movement speed is required, low energy consumption is necessary, the robot's footprint must be small, or high mobility is required, the perception system needs to fuse various data streams to determine the presence of obstacles around the robot and their specific distances. When both the surrounding environment and the robot's own state meet the state transition conditions, the system prioritizes switching to two-wheeled mode. These transition conditions include, for example, ensuring that the distance between obstacles and the robot will not cause a collision during the mode transition, and that the robot is currently in non-two-wheeled mode.
[0141] In scenarios with relatively complex terrain, low requirements for movement speed, no significant requirements for robot energy consumption, and high requirements for interference resistance and stability, the perception system needs to fuse various data streams to provide information such as the presence of obstacles around the robot and the specific distance between the obstacles and the robot. When it is confirmed that both the surrounding environment and the robot's own state meet the state transition conditions, the system prioritizes switching to quadruped mode. These transition conditions include, for example, ensuring that the distance between the obstacle and the robot will not cause the robot to collide with the obstacle during the mode transition, and that the robot is in non-quadruped mode, with a lower probability of falling during the transition than a preset probability.
[0142] In scenarios with relatively complex terrain, low requirements for movement speed, no significant requirements for robot energy consumption, and where the robot needs a small footprint or high mobility, the perception system needs to fuse various data streams to provide information such as the presence of obstacles around the robot and the specific distance between the obstacles and the robot. When it is confirmed that both the surrounding environment and the robot's own state meet the state transition conditions, the system prioritizes switching to quadruped mode. These transition conditions include, for example, ensuring that the distance between obstacles and the robot will not cause the robot to collide with obstacles during the mode transition, and that the robot is in non-quadruped mode, with a lower probability of falling during the transition than a preset probability.
[0143] During the ascent, the perception system needs to integrate various data streams to determine whether there are obstacles around the robot and the specific distance between the obstacles and the robot. When it is confirmed that both the surrounding environment and the robot's own state meet the state switching conditions, it will prioritize switching to X-wheel mode or two-wheel + two-legged mode. Depending on the robot's movement characteristics and application scenario, it can also choose to switch to four-wheel + two-legged mode, four-wheel + four-legged mode, or two-wheel + two-legged mode.
[0144] In some embodiments, for path planning, paths that are shorter, have lower robot energy consumption, and higher execution stability are preferred.
[0145] For example, if a robot is currently in a four-wheeled state and encounters both stairs, flat ground, and a ramp that lead to the same destination with similar distances, the robot will prioritize the flat ground and ramp, which are more suitable for wheeled travel and don't require switching its movement mode. If the robot is currently in a two-wheeled balanced state and encounters both stairs, flat ground, and a ramp that lead to the same destination, but the distance traveled by stairs is significantly shorter than that by flat ground and a ramp, the robot will prioritize the easier-to-switch-to-stairs mode rather than the longer path of flat ground and a ramp.
[0146] This application embodiment determines a target motion mode adapted to the current environment by acquiring environmental information and the robot's current posture. This allows the robot's motion mode to switch to an environment-adaptive mode, improving its environmental adaptability and enabling stable movement in different environmental types, thus allowing the robot to adapt to various application scenarios. Under different motion modes, a motion trajectory generation method, combined with corresponding control strategies, reduces the difficulty of robot movement in complex environments, further enhancing its environmental adaptability.
[0147] The following description continues to illustrate the exemplary structure of the robot motion control device 455 provided in the embodiments of this application as a software module. In some embodiments, such as... Figure 2As shown, the software modules in the robot's motion control device 455 stored in the memory 450 may include: a sensing module 4551, configured to acquire environmental information of the robot's current environment and motion parameters of the robot's joints; a state estimation module 4552, configured to determine the environment type of the current environment based on the environmental information; the state estimation module 4552, configured to determine the robot's current posture based on the joint motion parameters; the state estimation module 4552, configured to determine the robot's position information in the current environment based on the environmental information and the joint motion parameters; a motion control module 4553, configured to switch the robot's current motion mode to a target motion mode corresponding to the environment type in response to the current posture and the position information satisfying the motion mode switching condition; and a motor control module 4554, configured to configure the robot's joint motion parameters based on the target motion mode corresponding to the environment type, wherein the motion parameters are used to switch the part of the robot in contact with the ground to the ground contact part in the target motion mode.
[0148] In some embodiments, the motion parameters include the acceleration and angular velocity of the robot's joints; the state estimation module 4552 is configured to integrate the angular velocity and acceleration of the joints respectively to obtain the displacement information of the joints in the current environment; based on the displacement information of the joints, the size of each limb of the robot and the environmental information, the current position of the robot in the current environment is determined.
[0149] In some embodiments, the displacement information includes joint angle changes and displacement distances; the environmental information includes terrain data; the state estimation module 4552 is configured to perform the following processing for the joints: updating the initial joint angle of the joint based on the joint angle changes to obtain the current angle of the joint; updating the initial position of the joint based on the displacement distance to obtain the current position of the joint; determining the contact position of the part of the robot in contact with the ground in the current environment based on the terrain data; determining the center of mass position of the robot in the current environment based on the current angle and current position of the joints, the size of each limb, and each contact position; and using the current angle and current position of the joints, each contact position, and the center of mass position as the current position of the robot in the current environment.
[0150] In some embodiments, the motion parameters include the angles of the robot's joints; the state estimation module 4552 is configured to determine the relative position between each limb of the robot and the robot's body based on the angles of the joints and the size of each limb of the robot; and to determine the current posture of the robot based on the relative position between each limb and the robot's body.
[0151] In some embodiments, the motor control module 4554 is configured to: acquire a target motion mode corresponding to the environment type; acquire pre-configured initial motion parameters of the robot's joints associated with the target motion mode; iteratively update the initial motion parameters of the joints according to the environmental information corresponding to the environment type to obtain multiple target motion parameters; combine the multiple target motion parameters into a parameter sequence according to the order in which the multiple target motion parameters are generated, wherein each target motion parameter in the parameter sequence is used to control the motion state of the joint at different times; and control the motion state of the robot's joints according to the time order corresponding to each target motion parameter in the parameter sequence.
[0152] In some embodiments, the motor control module 4554 is configured to, based on the environmental information corresponding to the environment type, call a neural network model to extract features to obtain environmental features; call the classifier of the neural network model to classify the environmental features to obtain the motion mode corresponding to the environmental features; and use the motion mode corresponding to the environmental features as the target motion mode.
[0153] In some embodiments, the sensing module 4551 is configured to: invoke the sensors of the robot's joints to obtain the angular velocity, included angle, and movement speed of the joints, and use the angular velocity, included angle, and movement speed as motion parameters; invoke the robot's distance sensor to obtain the distance between the robot's surface and obstacles in the current environment; invoke the robot's tactile sensor to obtain the contact portion between the robot and the current environment; invoke the robot's vision sensor to obtain the position of obstacles in the current environment; and use the obstacle position, the contact portion, and the distance as environmental information of the current environment.
[0154] In some embodiments, the types of movement modes of the robot include at least two of the following: four-wheel mode, quadruped mode, two-wheel mode, two-wheel and two-legged mode, two-legged mode, fall self-recovery mode, and folding mode.
[0155] In some embodiments, the motion control module 4553 is configured to switch the robot's current motion mode to a fall self-recovery mode in response to the current posture being a fall posture and the distance between the robot's current position and the obstacle being greater than a first distance threshold.
[0156] In some embodiments, the motion control module 4553 is configured to, in response to the current posture being a motion posture and the distance between the robot's current position and the obstacle being greater than a second distance threshold, obtain the robot's current battery level, and in response to the current battery level being less than the battery threshold, switch the robot's current motion mode to a folding mode.
[0157] In some embodiments, the motion control module 4553 is configured to, when the environment type is flat ground, in response to the current posture not being a four-wheeled movement posture and the distance between the robot's current position and the obstacle being greater than a third distance threshold, switch the robot's current motion mode to a four-wheeled mode adapted to the flat ground.
[0158] In some embodiments, the motion control module 4553 is configured to, when the environment type is flat ground, switch the robot's current motion mode to a two-wheeled mode adapted to the flat ground in response to the current posture not being a two-wheeled movement posture and the distance between the robot's current position and the obstacle being greater than a third distance threshold.
[0159] In some embodiments, when the environment type is non-flat ground, the motion control module 4553 is configured to switch the robot's current motion mode to a quadruped mode adapted to the non-flat ground in response to the current posture not being a quadrupedal movement posture and the distance between the robot's current position and the obstacle being greater than a third distance threshold.
[0160] This application provides a computer program product, which includes a computer program or computer-executable instructions stored in a computer-readable storage medium. The processor of an electronic device reads the computer-executable instructions from the computer-readable storage medium and executes the computer-executable instructions, causing the electronic device to perform the robot motion control method described above in this application.
[0161] This application provides a computer-readable storage medium storing computer-executable instructions or a computer program. When the computer-executable instructions or the computer program are executed by a processor, the processor will execute the motion control method for the robot provided in this application. For example, ... Figure 3A The robot's motion control method is shown.
[0162] In some embodiments, the computer-readable storage medium may be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, flash memory, magnetic surface memory, optical disk, or CD-ROM; or it may be a variety of devices including one or any combination of the above-mentioned memories.
[0163] In some embodiments, computer-executable instructions may take the form of programs, software, software modules, scripts, 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 stand-alone programs or as modules, components, subroutines, or other units suitable for use in a computing environment.
[0164] As an example, computer-executable instructions may, but do not necessarily, correspond to files in a file system. They may be stored as part of a file that holds other programs or data, for example, 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 co-located files (e.g., a file that stores one or more modules, subroutines, or code sections).
[0165] As an example, executable instructions can be deployed to execute on a single electronic device, or on multiple electronic devices located in one location, or on multiple electronic devices distributed across multiple locations and interconnected via a communication network.
[0166] In summary, the embodiments of this application obtain environmental information and the robot's current posture, determine the target motion mode adapted to the current environment, and configure the robot's motion parameters based on the parameters of the target motion mode, so as to switch the robot's motion mode to an environment-adaptive motion mode, improve the robot's environmental adaptability, enable the robot to move stably in different environmental types, and enable the robot to adapt to different application scenarios.
[0167] The above description is merely an embodiment of this application and is not intended to limit the scope of protection of this application. Any modifications, equivalent substitutions, and improvements made within the spirit and scope of this application are included within the scope of protection of this application.
Claims
1. A motion control method for a robot, characterized in that, The method includes: The system acquires environmental information about the robot's current environment and motion parameters of the robot's joints. The environmental information includes terrain data, and the motion parameters include the acceleration and angular velocity of the robot's joints. The environment type of the current environment is determined based on the environmental information; The robot's current posture is determined based on the joint motion parameters; The angular velocity and acceleration of the joint are integrated to obtain the displacement information of the joint in the current environment. The displacement information includes the change in joint angle and the displacement distance. The following processing is performed on the joints: the initial joint angle is updated according to the joint angle change to obtain the current angle of the joint; the initial position of the joint is updated according to the displacement distance to obtain the current position of the joint; the contact position of the part of the robot in contact with the ground in the current environment is determined according to the terrain data; the center of mass position of the robot in the current environment is determined based on the current angle and current position of the joints, the size of each limb, and each contact position; the current angle and current position of the joints, each contact position, and the center of mass position are used as the position information of the robot in the current environment, and the position information is used to characterize the current position of the robot. In response to the current posture and the position information satisfying the motion mode switching condition, the robot's current motion mode is switched to the target motion mode corresponding to the environment type; The motion parameters of the robot's joints are configured based on the target motion mode corresponding to the environment type, wherein the motion parameters are used to switch the part of the robot in contact with the ground to the ground contact part in the target motion mode.
2. The method according to claim 1, characterized in that, The motion parameters include the included angles of the robot's joints; The determination of the robot's current posture based on joint motion parameters includes: Based on the joint angles and the dimensions of each limb of the robot, the relative position between each limb of the robot and the robot's body is determined. The robot's current posture is determined based on the relative position of each limb to the robot's body.
3. The method according to claim 1, characterized in that, The configuration of the robot's joint motion parameters based on the target motion mode corresponding to the environment type includes: Obtain the target motion pattern corresponding to the environment type; Obtain the pre-configured initial motion parameters of the robot's joints associated with the target motion pattern; Based on the environmental information corresponding to the environmental type, the initial motion parameters of the joint are iteratively updated to obtain multiple target motion parameters; Based on the order in which the multiple target motion parameters are generated, the multiple target motion parameters are combined into a parameter sequence, wherein each of the target motion parameters in the parameter sequence is used to control the motion state of the joint at different times; The motion state of the robot's joints is controlled according to the time sequence corresponding to each of the target motion parameters in the parameter sequence.
4. The method according to claim 3, characterized in that, The step of obtaining the target motion pattern corresponding to the environment type includes: Based on the environmental information corresponding to the environmental type, a neural network model is invoked to extract features and obtain environmental features. The classifier of the neural network model is invoked to classify the environmental features, thereby obtaining the motion patterns corresponding to the environmental features; The motion pattern corresponding to the environmental features is taken as the target motion pattern.
5. The method according to claim 1, characterized in that, The acquisition of environmental information about the robot's current environment and the motion parameters of the robot's joints includes: The robot's joint sensors are invoked to obtain the joint's angular velocity, included angle, and motion speed, and the angular velocity, included angle, and motion speed are used as motion parameters; The robot's distance sensor is invoked to obtain the distance between the robot's surface and obstacles in the current environment; The robot's tactile sensors are used to obtain the contact area between the robot and the current environment; The robot's vision sensors are used to obtain the locations of obstacles in the current environment; The location of the obstacle, the contact portion, and the interval distance are used as environmental information of the current environment.
6. The method according to any one of claims 1 to 5, characterized in that, The robot's movement modes include at least two of the following: four-wheel mode, quadruped mode, two-wheel mode, two-wheel and two-legged mode, two-legged mode, fall self-recovery mode, and folding mode.
7. The method according to any one of claims 1 to 5, characterized in that, The method further includes: In response to the current posture being a fall posture and the distance between the robot's current position and the obstacle being greater than a first distance threshold, the robot's current motion mode is switched to a fall self-recovery mode.
8. The method according to any one of claims 1 to 5, characterized in that, The method further includes: In response to the current posture being a motion posture and the distance between the robot's current position and the obstacle being greater than a second distance threshold, the robot's current battery level is obtained, and in response to the current battery level being less than the battery threshold, the robot's current motion mode is switched to folding mode.
9. The method according to any one of claims 1 to 5, characterized in that, When the environment type is flat, the response to the current posture and the position information satisfying the motion mode switching condition, switching the robot's current motion mode to the target motion mode corresponding to the environment type, includes: In response to the current posture not being a four-wheeled movement posture and the distance between the robot's current position and the obstacle being greater than a third distance threshold, the robot's current movement mode is switched to a four-wheeled mode adapted to the flat ground.
10. The method according to any one of claims 1 to 5, characterized in that, When the environment type is flat, the response to the current posture and the position information satisfying the motion mode switching condition, switching the robot's current motion mode to the target motion mode corresponding to the environment type, includes: In response to the current posture not being a two-wheeled movement posture and the distance between the robot's current position and the obstacle being greater than a third distance threshold, the robot's current movement mode is switched to a two-wheeled mode adapted to the flat ground.
11. The method according to any one of claims 1 to 5, characterized in that, When the environment type is non-flat, the response to the current posture and the position information satisfying the motion mode switching condition, switching the robot's current motion mode to the target motion mode corresponding to the environment type, includes: In response to the current posture not being a quadrupedal movement posture and the distance between the robot's current position and the obstacle being greater than a third distance threshold, the robot's current movement mode is switched to a quadrupedal mode adapted to the non-flat ground.
12. A motion control device for a robot, characterized in that, The device includes: The sensing module is configured to acquire environmental information of the current environment in which the robot is located and motion parameters of the robot's joints. The environmental information includes terrain data, and the motion parameters include the acceleration and angular velocity of the robot's joints. The state estimation module is configured to determine the environment type of the current environment based on the environmental information; The state estimation module is configured to determine the robot's current posture based on joint motion parameters; The state estimation module is configured to integrate the angular velocity and acceleration of the joint to obtain the displacement information of the joint in the current environment. The displacement information includes the joint angle change and the displacement distance. The module performs the following processing on the joint: updating the initial joint angle of the joint based on the joint angle change to obtain the current angle of the joint; updating the initial position of the joint based on the displacement distance to obtain the current position of the joint; determining the contact position of the part of the robot that contacts the ground in the current environment based on the terrain data; determining the center of mass position of the robot in the current environment based on the current angle and current position of the joint, the size of each limb, and each contact position; and using the current angle and current position of the joint, each contact position, and the center of mass position as the position information of the robot in the current environment, which characterizes the current position of the robot. The motion control module is configured to switch the robot's current motion mode to the target motion mode corresponding to the environment type in response to the current posture and the position information satisfying the motion mode switching condition. The motor control module is configured to configure the motion parameters of the robot's joints based on the target motion mode corresponding to the environment type, wherein the motion parameters are used to switch the part of the robot in contact with the ground to the ground contact part in the target motion mode.
13. The apparatus according to claim 12, characterized in that, The motion parameters include the included angles of the robot's joints; The state estimation module is further configured to determine the relative position between each limb of the robot and the robot's body based on the joint angles and the dimensions of each limb of the robot; and to determine the robot's current posture based on the relative position between each limb and the robot's body.
14. The apparatus according to claim 12, characterized in that, The motor control module is further configured to: acquire a target motion mode corresponding to the environment type; acquire pre-configured initial motion parameters of the robot's joints associated with the target motion mode; iteratively update the initial motion parameters of the joints according to the environmental information corresponding to the environment type to obtain multiple target motion parameters; combine the multiple target motion parameters into a parameter sequence according to the order in which the multiple target motion parameters are generated, wherein each target motion parameter in the parameter sequence is used to control the motion state of the joint at different times; and control the motion state of the robot's joints according to the time order corresponding to each target motion parameter in the parameter sequence.
15. The apparatus according to claim 14, characterized in that, The motor control module is further configured to, based on the environmental information corresponding to the environmental type, call a neural network model to extract features to obtain environmental features; call the classifier of the neural network model to classify the environmental features to obtain the motion mode corresponding to the environmental features; and use the motion mode corresponding to the environmental features as the target motion mode.
16. The apparatus according to claim 12, characterized in that, The sensing module is further configured to call the sensors of the robot's joints to obtain the angular velocity, included angle, and movement speed of the joints, and use the angular velocity, included angle, and movement speed as motion parameters; call the robot's distance sensor to obtain the distance between the robot's surface and obstacles in the current environment; and call the robot's tactile sensor to obtain the contact portion between the robot and the current environment. The robot's vision sensors are used to obtain the locations of obstacles in the current environment; The location of the obstacle, the contact portion, and the interval distance are used as environmental information of the current environment.
17. The apparatus according to any one of claims 12 to 16, characterized in that, The robot's movement modes include at least two of the following: four-wheel mode, quadruped mode, two-wheel mode, two-wheel and two-legged mode, two-legged mode, fall self-recovery mode, and folding mode.
18. The apparatus according to any one of claims 12 to 16, characterized in that, The motion control module is further configured to switch the robot's current motion mode to a fall self-recovery mode in response to the current posture being a fall posture and the distance between the robot's current position and the obstacle being greater than a first distance threshold.
19. The apparatus according to any one of claims 12 to 16, characterized in that, The motion control module is further configured to, in response to the current posture being a motion posture and the distance between the robot's current position and the obstacle being greater than a second distance threshold, obtain the robot's current battery level, and in response to the current battery level being less than the battery threshold, switch the robot's current motion mode to a folding mode.
20. The apparatus according to any one of claims 12 to 16, characterized in that, When the environment type is flat ground, the motion control module is further configured to switch the robot's current motion mode to a four-wheel mode adapted to the flat ground in response to the current posture not being a four-wheel movement posture and the distance between the robot's current position and the obstacle being greater than a third distance threshold.
21. The apparatus according to any one of claims 12 to 16, characterized in that, When the environment type is flat ground, the motion control module is further configured to switch the robot's current motion mode to a two-wheel mode adapted to the flat ground in response to the current posture not being a two-wheel movement posture and the distance between the robot's current position and the obstacle being greater than a third distance threshold.
22. The apparatus according to any one of claims 12 to 16, characterized in that, When the environment type is non-flat ground, the motion control module is further configured to switch the robot's current motion mode to a quadruped mode adapted to the non-flat ground in response to the current posture not being a quadrupedal movement posture and the distance between the robot's current position and the obstacle being greater than a third distance threshold.
23. An electronic device, characterized in that, The electronic device includes: Memory is used to store executable instructions for a computer; A processor, when executing computer-executable instructions or computer programs stored in the memory, implements the motion control method of the robot according to any one of claims 1 to 11.
24. A computer-readable storage medium storing computer-executable instructions or a computer program, characterized in that, When the computer-executable instructions or computer program are executed by a processor, the motion control method of the robot according to any one of claims 1 to 11 is implemented.
25. A computer program product comprising computer-executable instructions or a computer program, characterized in that, When the computer-executable instructions or computer program are executed by a processor, the motion control method of the robot according to any one of claims 1 to 11 is implemented.
Citation Information
Patent Citations
Multifunctional leg-and-wheel combination robot and multi-movement-mode intelligent switching method thereof
CN103786806A
Multi-motion-state robot and motion state switching control method thereof
CN115056880A
