Control method and related device based on humanoid robot-assisted medication
By integrating controllers, robot arms and visual sensors into humanoid robots, the type of steps and drug characteristics are analyzed to achieve stable taking of medicines up and down the stairs in a multi-story villa, solving the problem of safety and efficiency of medication for the elderly, and improving the efficiency of auxiliary medication. Reliability and user experience.
Patent Information
- Application Number
- CN202410993386.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-24
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2044-07-24
AI Technical Summary
When elderly people living alone need to take medicine in a multi-storey villa, the location of the medicine is not on the same floor as them, which causes safety risks when they frequently go up and down the stairs. Moreover, due to memory loss, they may misuse or forget to take medicine. Existing general-purpose robots cannot assist in going up and down the stairs. Taking medicine is less versatile and efficient.
An auxiliary medication control method based on humanoid robots is designed. It uses controllers, robot arms and visual sensors to determine the motion control strategy by analyzing step types and drug characteristics, so that the humanoid robot can walk stably on continuous up and down steps and on flat ground. Walk on the road section to ensure that medicines are not spilled and improve the efficiency and reliability of medicine collection.
It enables humanoid robots to stably take medicine in a multi-layer environment, reduces the risk of medication for the elderly, improves the reliability and user experience of auxiliary medication, solves the technical pain points of taking medicine up and down stairs, and improves the efficiency and safety of auxiliary medication. sex.
Smart Images

Figure CN118514103B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of robot technology, and in particular to a control method and related device based on humanoid robot-assisted medication. Background Art
[0002] At present, for elderly users who live alone in multi-storey villas and need to take medicine on time, the location of the required medicine may not be on the same floor as the elderly, and the elderly users need to go up and down the stairs to find the medicine. For the elderly with inconvenient legs and feet, frequent up and down stairs poses certain safety hazards. At the same time, in the process of taking medicine, due to memory loss, the elderly may forget the type or amount of medicine to be taken in the current period, which may lead to dangerous situations such as misuse, overuse or underuse.
[0003] Although existing traditional general-purpose robots can help the elderly take medicines, they are limited by terrain factors and can only travel on flat roads. They cannot solve the technical pain point of assisting in taking medicines on stairs, and their versatility and efficiency are low. Summary of the invention
[0004] The embodiment of the present application provides a control method and related devices based on humanoid robot-assisted medication, which can ensure that the robot can stably walk on continuous up and down stairs during the assisted medication delivery process, while ensuring that the posture of taking medication is stable and the medication does not spill, thereby solving the problem of elderly people living alone in multi-story villas having difficulty taking medication and optimizing the user's medication experience.
[0005] In a first aspect, an embodiment of the present application provides a control method based on humanoid robot-assisted medication, which is applied to a controller of a humanoid robot, wherein the humanoid robot includes a controller, a first robotic arm, a second robotic arm, and a visual sensor, wherein the controller is connected to the first robotic arm and the second robotic arm, and the controller is connected to the visual sensor; the method includes:
[0006] Controlling the humanoid robot to reach a first target position where target objects are placed, the target objects including: a medicine tray, medicines, and the medicines including target medicines;
[0007] Controlling the first robot arm to lift the medicine tray in a first preset posture, where the first preset posture is a posture in which the humanoid robot lifts an object with the first robot arm and ensures that the object is balanced;
[0008] Analyze the image features of the medicines through the visual sensor, and control the second robot arm to grab the target medicine from the medicines according to the image features;
[0009] Analyzing the type of the first continuous stair section in the first route through a visual sensor, the type includes ascending stairs or descending stairs; and determining a first motion control strategy according to the type of the first continuous stair, the first route is a route from the first target position to the second target position of the user, the first route includes the first continuous stair section and the first flat ground section, the first motion control strategy is a bipedal gait control algorithm for a humanoid robot to ascend or descend stairs in a first preset posture; and determining a second motion control strategy according to the first flat ground section, the second motion control strategy is a bipedal gait control algorithm for a humanoid robot to walk on flat ground in a first preset posture;
[0010] According to the first preset posture, the first motion control strategy and the second motion control strategy, the humanoid robot is controlled to reach the second target position along the first route.
[0011] In a second aspect, an embodiment of the present application provides a control device based on a humanoid robot-assisted medication, including: a first control unit, a second control unit, an image analysis unit, a determination unit, and a third control unit; wherein the first control unit is used to control the humanoid robot to reach a first target position for placing a target object, the target objects include: a medicine tray, medicines, and the medicines include target medicines; the second control unit is used to control the first robot arm to lift the medicine tray with a first preset posture, the first preset posture is the posture of the humanoid robot lifting the object with the first robot arm and ensuring the balance of the supported object; the image analysis unit is used to analyze the image features of the medicine through a visual sensor, and control the second robot arm to grab the target medicine in the medicine according to the image features; the determination unit is used to analyze the image features of the medicine through a visual sensor a type of the first continuous stair section in the first route, the type including ascending stairs or descending stairs; and, determining a first motion control strategy according to the type of the first continuous stair section, the first route being a route from a first target position to a second target position of a user, the first route including a first continuous stair section and a first flat ground section, the first motion control strategy being a bipedal gait control algorithm for a humanoid robot to ascend or descend stairs in a first preset posture; and, determining a second motion control strategy according to the first flat ground section, the second motion control strategy being a bipedal gait control algorithm for a humanoid robot to walk on flat ground in a first preset posture; and a third control unit, for controlling the humanoid robot to reach the second target position along the first route according to the first preset posture, the first motion control strategy and the second motion control strategy.
[0012] In a third aspect, an embodiment of the present application provides an electronic device, comprising a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, and the program includes instructions for executing the steps of any method in the first aspect of the embodiment of the present application.
[0013] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for electronic data exchange, wherein the computer program enables a computer to execute part or all of the steps described in any method of the first aspect of the embodiment of the present application.
[0014] In a fifth aspect, an embodiment of the present application provides a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute some or all of the steps described in any method of the first aspect of the embodiment of the present application. The computer program product may be a software installation package.
[0015] It can be seen that in the embodiment of the present application, the humanoid robot is first controlled to reach the first target position where the target objects are placed, and the target objects include: a medicine tray and medicines, and the medicines include target medicines; secondly, the first robot arm is controlled to lift the medicine tray in a first preset posture, and the first preset posture is the posture in which the humanoid robot lifts the object with the first robot arm and ensures the balance of the supported object; then, the image features of the medicines are analyzed by the visual sensor, and the second robot arm is controlled to grab the target medicine in the medicine according to the image features; then, the type of the first continuous step section in the first route is analyzed by the visual sensor, and the type includes ascending steps or descending steps; and according to the first continuous step section, the second robot arm is controlled to grab the target medicine in the medicine. The first motion control strategy is determined according to the type of continuous stairs. The first route is the route from the first target position to the second target position of the user. The first route includes the first continuous stair section and the first flat section. The first motion control strategy is a bipedal gait control algorithm for the humanoid robot to ascend or descend stairs in a first preset posture; and the second motion control strategy is determined according to the first flat section. The second motion control strategy is a bipedal gait control algorithm for the humanoid robot to walk on the flat ground in a first preset posture; finally, according to the first preset posture, the first motion control strategy and the second motion control strategy, the humanoid robot is controlled to reach the second target position along the first route. In this way, while ensuring that the humanoid robot has a stable posture for taking medicine, it can pass through continuous up and down stair sections and flat sections during the medicine delivery process, execute different motion strategies for different sections, and can cope with the stable movement of various different sections, efficiently and flexibly execute the events of taking medicine and delivering medicine, and improve the reliability and comprehensiveness of assisting users in taking medicine. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0017] Figure 1 is a control system architecture diagram of a humanoid robot provided in an embodiment of the present application;
[0018] Figure 2 It is a flow chart of a control method based on humanoid robot-assisted medication provided in an embodiment of the present application;
[0019] Figure 3 is a schematic diagram of a motion scene of a humanoid robot provided in an embodiment of the present application;
[0020] Figure 4 is a schematic diagram of another motion scene of a humanoid robot provided in an embodiment of the present application;
[0021] Figure 5 is a posture schematic diagram of a humanoid robot provided in an embodiment of the present application;
[0022] Figure 6 is a posture schematic diagram of another humanoid robot provided in an embodiment of the present application;
[0023] Figure 7 This is a block diagram of the functional units of a control device based on humanoid robot-assisted medication provided in an embodiment of the present application;
[0024] Figure 8 It is a structural block diagram of an electronic device provided by this application. DETAILED DESCRIPTION
[0025] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0026] The terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.
[0027] It should be understood that the term "and / or" in this article is only a description of the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article indicates that the associated objects before and after are in an "or" relationship.
[0028] The "multiple" in the embodiments of the present application refers to two or more. The "connection" in the embodiments of the present application refers to various connection modes such as direct connection or indirect connection to achieve communication between devices, and the embodiments of the present application do not make any limitation on this.
[0029] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0030] See also Figure 1 , Figure 1 is a control system architecture diagram of a humanoid robot provided in an embodiment of the present application, such as Figure 1 As shown, the humanoid robot 100 includes a controller 101, a first robot arm 102, a second robot arm 103 and a visual sensor 104, wherein the controller 101 is connected to the first robot arm 102 and the second robot arm 103 respectively, and the controller 101 is connected to the visual sensor 104; specifically, the humanoid robot 100 also includes a first robot foot 105 and a second robot foot 106, wherein the first robot foot 105 and the second robot foot 106 include a robot leg part and a robot foot part, which are used to support the balance of the humanoid robot 100 and receive instructions from the controller 101 to realize the bipedal walking of the humanoid robot. It should be understood that the first robot arm 102 can be a left arm and the second robot arm 103 can be a right arm, or the first robot arm 102 can be a right arm and the second robot arm 103 can be a left arm, and this is not limited here, and the same applies to the first robot foot 105 and the second robot foot 106.
[0031] Among them, the humanoid robot 100 may be a humanoid robot with a torso and a robotic arm. The humanoid robot 100 may refer to a robot with similar body structure and morphological characteristics to that of a human, such as having basic structures such as a head, torso, and limbs, and being able to simulate some human movement methods and behaviors, but the appearance details may not be completely consistent with those of humans, and there may be some simplified or unique designs.
[0032] Among them, the controller 101 can control all parts of the humanoid robot 100 by executing control instructions to complete predetermined actions; the first robotic arm 102 and the second robotic arm 103 are two symmetrical and identical robotic arms. In other possible examples, the robotic arms can also include finger joints, wrist joints, elbow joints and other parts; the visual sensor 104 can be used to obtain and identify feature information of images of the surrounding environment.
[0033] See also Figure 2 , Figure 2 is a flow chart of a control method based on humanoid robot-assisted medication provided in an embodiment of the present application. The control method based on humanoid robot-assisted medication is applied to Figure 1 The controller 101 of the humanoid robot 100 shown in the figure comprises a controller, a first robotic arm, a second robotic arm and a visual sensor, the controller is connected to the first robotic arm and the second robotic arm, and the controller is connected to the visual sensor; the method comprises the following steps:
[0034] Step S210, controlling the humanoid robot to reach a first target position where a target object is placed.
[0035] Among them, the target items include: medicine trays, medicines, and the medicines include target medicines.
[0036] Among them, the controller detects an indication message, which is used to represent the first target position where the target object is located. The controller can automatically generate an indication message according to the pre-set medication time when the time reaches the medication time to control the humanoid robot; the indication message includes information about the target drug, and the information about the target drug includes the name of the target drug, the method of taking the target drug, the dosage of the target drug, etc.
[0037] In one possible example, controlling a humanoid robot to reach a first target position where a target object is placed includes: determining a second route based on the first target position and an initial position of the humanoid robot, the second route including: a second flat ground section and a second continuous step section; controlling the humanoid robot to walk on the second flat ground section with a second preset posture and a third motion control strategy, the second preset posture being a free walking posture of the humanoid robot's arms without carrying objects, and the third motion control strategy being a bipedal gait control algorithm for the humanoid robot to walk on flat ground with the second preset posture; analyzing through a visual sensor whether the type of the second continuous step section is an ascending step or a descending step, and determining a fourth motion control strategy based on the type of the second continuous step section, the fourth motion control strategy being a bipedal gait control algorithm for the humanoid robot to ascend or descend the stairs with the second preset posture; and walking along the second route according to the second preset posture, the third motion control strategy, and the fourth motion control strategy until reaching the first target position.
[0038] Among them, the third motion control strategy is the default motion control strategy of the humanoid robot. At this time, the humanoid robot is in a posture with both hands swinging freely, and both feet take steps alternately at a constant speed to complete walking on the flat road section.
[0039] Among them, when the visual sensor detects that the road section ahead is the second continuous step section, the step type of the second continuous step section is analyzed. The step type includes upward steps or downward steps. The initial step is determined according to the visual sensor. If the height of the continuous steps behind the initial step is higher than the initial step, it is determined to be an upward step; if the height of the continuous steps behind the initial step is lower than the initial step, it is determined to be a downward step.
[0040] Please refer to Figure 3 , Figure 3 is a schematic diagram of a motion scene of a humanoid robot provided in an embodiment of the present application, such as Figure 3 As shown, the first arrow 300 indicates that the fourth motion control is a bipedal gait control algorithm for ascending stairs in a second preset posture, according to Figure 1 The visual sensor 104 collects and analyzes the height h1 of the initial step; the initial step height h1 is used as the default height of each step, and the step height is subsequently monitored continuously. If the step height meets the default height, there is no need to adjust the fourth motion control strategy. If the subsequent step height does not match the default height, the fourth motion strategy is adjusted according to the monitored step height (the leg lifting height of the robot foot is increased); the lifting height of the first robot foot 105 of the humanoid robot is determined according to the default height, and the center of gravity is adjusted to the second robot foot 106 to ensure the single-leg balanced standing of the humanoid robot; when the first robot foot 105 steps on the initial step, the center of gravity is adjusted to the first robot foot 105, and the second robot foot 106 is controlled to lift twice the default height, that is, h1×2, to step on the next step of the initial step; repeat the above steps until the second continuous step section is completed.
[0041] Please refer to Figure 4 , Figure 4 It is a schematic diagram of another motion scene of a humanoid robot provided in an embodiment of the present application. Similarly, when the second arrow 400 indicates that the fourth motion control is a bipedal gait control algorithm for descending stairs in a second preset posture, the first machine foot 105 of the humanoid robot is bent to a default height h2 according to the default height, and the center of gravity is adjusted to the first machine foot 105, so that the second machine foot 106 extends toward the initial step, while ensuring the single-foot balanced standing of the humanoid robot; when the second machine foot 106 steps on the initial step, the center of gravity is adjusted to the second machine foot 106, and the second machine foot 106 is controlled to bend twice the default height, that is, h2×2, so that the first machine foot 105 steps on the next step of the initial step; repeat the above steps until the second continuous step section is completed.
[0042] It can be seen that in this example, firstly, according to the first target position and the initial position of the humanoid robot, the second route is determined, and the second route includes: the second flat road section and the second continuous step road section; secondly, the humanoid robot is controlled to walk on the second flat road section with the second preset posture and the third motion control strategy, the second preset posture is the free walking posture of the humanoid robot's arms without carrying objects, and the third motion control strategy is the bipedal gait control algorithm of the humanoid robot walking on the flat ground with the second preset posture; then, the type of the second continuous step road section is analyzed by the visual sensor as an upward step or a downward step, and the fourth motion control strategy is determined according to the type of the second continuous step road section; finally, according to the second preset posture, the third motion control strategy and the fourth motion control strategy, the robot walks along the second route until it reaches the first target position. In this way, through this example, the humanoid robot can walk stably on both the flat road section and the continuous step road section, and different motion control strategies are executed according to different sections, which enriches the application scenarios for the humanoid robot to travel and improves the efficiency of the humanoid robot to get medicine.
[0043] Step S220, controlling the first robotic arm to lift the medicine tray in a first preset posture.
[0044] The first preset posture is a posture in which the humanoid robot lifts an object with the first robot arm and ensures the balance of the object.
[0045] Specifically, see Figure 5 , Figure 5 is a posture diagram of a humanoid robot provided in an embodiment of the present application, such as Figure 5 As shown, the first preset posture is the posture of the first robot arm 102 lifting the medicine tray 510, and the palm part 520 of the first robot arm 102 is aligned with the center of gravity of the medicine tray 510 for lifting. When the default medicine tray is a round tray, it is the center position of the disk of the medicine tray 510.
[0046] In a possible example, controlling the first robot arm to hold up the medicine tray in a first preset posture includes:
[0047] Collecting environmental images through visual sensors, where the environmental images are images of relevant areas where target objects are placed;
[0048] According to the environment image, a first image having image features consistent with the image features of the medicine tray is identified;
[0049] Analyze first three-dimensional data of the medicine tray, where the first three-dimensional data is three-dimensional spatial data of the medicine tray when it is in a placed state;
[0050] Determine the center of mass position of the medicine tray according to the first three-dimensional data, and determine joint driving data according to the center of mass position, wherein the joint driving data includes first joint driving data and second joint driving data, and the joint driving data is driving data of multiple joints of the humanoid robot;
[0051] Controlling the first robot arm to grab the medicine tray using the first joint driving data;
[0052] The second joint driving data is used to control the first robot arm to lift the medicine tray.
[0053] Among them, see Figure 5 , Figure 5 Including Figure 1 The visual sensor 104 shown in the figure analyzes the image of the relevant area through the visual sensor 104 and identifies the first image consistent with the medicine tray 510; determines the center of mass position of the medicine tray according to the three-dimensional data of the placement state of the medicine tray 510 in space; controls the knuckles of the palm part 520 to grasp the edge of the plate of the medicine tray 510, and controls the knuckles to coordinate so that the palm part 520 coincides with the center of mass position and maintains the lifting posture. Among them, the first joint includes the knuckles of the palm part 520; the second joint includes the first elbow joint 530 and the first shoulder joint 540 of the first robot arm.
[0054] It can be seen that in this example, first, the environment image is collected through the visual sensor; secondly, based on the environment image, the first image consistent with the image features of the medicine tray is identified; then the first three-dimensional data of the medicine tray is analyzed, and the first three-dimensional data is the three-dimensional space data when the medicine tray is in a placed state; then the center of mass position of the medicine tray is determined according to the first three-dimensional data, and the joint drive data is determined according to the center of mass position, and the joint drive data includes the first joint drive data and the second joint drive data, and the joint drive data is the drive data of multiple joints of the humanoid robot; finally, the first joint drive data is used to control the first robot arm to grab the medicine tray, and the second joint drive data is used to control the first robot arm to lift the medicine tray. In this way, the center of mass of the medicine tray is determined in multiple dimensions, and the robot arm is accurately controlled to perform the lifting operation according to the center of mass position, which ensures the balance and stability of the lifted medicine tray, reduces the risk of spilling medicines in the subsequent drug delivery process, optimizes the user's medication experience, and improves the intelligence of the humanoid robot in taking medicines.
[0055] Step S230, analyzing the image features of the medicines through a visual sensor, and controlling the second robotic arm to grab the target medicine from the medicines according to the image features.
[0056] Specifically, the characteristic information of the target drug is determined according to the indication message, and the characteristic information of the target drug includes the name of the target drug, the method of taking the target drug, the dosage of the target drug, etc.
[0057] In one possible example, image features of a drug are analyzed by a visual sensor, and a second robotic arm is controlled to grab a target drug from the drugs based on the image features, including: identifying a second image that matches appearance features of the target drug through a visual sensor, where the appearance features include at least one of the following: drug name, outer packaging color, and outer packaging shape; analyzing second three-dimensional spatial data of the target drug based on the second image; generating third joint drive data based on the second three-dimensional spatial data; and controlling the second robotic arm of the humanoid robot to grab the target drug based on the third joint drive data.
[0058] Specifically, according to the third joint driving data, it is possible to pick up the bottle of target medicine or the package of target medicine and place it directly in the center of the medicine tray. Alternatively, it is possible to control the second robot arm to open the above-mentioned medicine or package, take out the quantity that meets the target medicine dosage, and place it in the center of the medicine tray.
[0059] It can be seen that in this example, the second image that meets the appearance characteristics of the target drug is first identified by the visual sensor; the second three-dimensional spatial data of the target drug is analyzed according to the second image; the third joint drive data is generated according to the second three-dimensional spatial data; and the second robot arm of the humanoid robot is controlled to grab the target drug according to the third joint drive data. In this way, the image characteristics of the target drug are accurately analyzed by the visual sensor, and the second robot arm is coordinated with the second robot arm to control the second robot arm to accurately grab the target drug, improve the accuracy and reliability of grabbing the drug, reduce the probability of grabbing the wrong drug, and help improve the intelligence of grabbing the drug.
[0060] In one possible example, after controlling the second robotic arm to grab the target drug among the drugs according to the image features, the method also includes: analyzing and determining the weight of the drug tray and the target drug; adjusting the center of mass data of the humanoid robot according to the weight of the target drug on the drug tray and the first preset posture, the center of mass data being preset data when the humanoid robot does not carry any items, and using the center of mass data as a reference to ensure that the humanoid robot performs stable movements, and stable movements refer to movements performed by the humanoid robot when the center of gravity is stable; determining a first motion control strategy according to the adjusted center of mass data, the first motion control strategy including walking parameters of the humanoid robot's two feet, and the walking parameters including at least one of the following: gait cycle, stride amplitude, step frequency, support phase and swing phase, wherein the support phase refers to the stage in which the two feet of the humanoid robot are in contact with the ground, and the swing phase refers to the stage in which one foot of the humanoid robot is swinging in the air to prepare for the next step of walking.
[0061] The center of mass data is the location of the center of mass of the humanoid robot as a whole, and is determined according to the posture of the humanoid robot and the distribution of the weight it bears. For example, when the humanoid robot is in the second preset posture, the center of mass data is represented by the lower abdomen area, and when the humanoid robot is in the first preset posture, the center of mass data is represented by the upper abdomen and biased towards the first robot arm area. The center of mass data changes with different postures and different weights.
[0062] Among them, the gait cycle refers to the time required to complete a step of walking. The humanoid robot needs to determine the duration and speed of each step based on the gait cycle.
[0063] Specifically, the first motion control strategy also includes: step length and pace. The step length refers to the distance of each step, and the pace refers to the number of steps taken per minute, ensuring stable and smooth walking; gait stability. The humanoid robot needs to maintain a stable gait to avoid swaying and losing balance. Therefore, it is necessary to consider data such as body posture, center of gravity offset, and gait adjustment; ground adaptability. The humanoid robot needs to consider the ground conditions when walking, such as the friction, slope, and unevenness of different terrains, in order to adjust the gait data; load adaptability. When the robot needs to carry an additional load, the walking gait data needs to be adjusted to ensure stability and adaptability; rhythm and coordination. The walking rhythm and coordination are very important for maintaining balance and stability. The robot needs to adjust its gait according to these data. In summary, the gait data that need to be considered when a humanoid robot walks include step length, step speed, gait cycle, gait stability, ground adaptability, load adaptability, rhythm and coordination, etc. The stability and balance of the humanoid robot's walking can be ensured through precise control and adjustment of the above parameters, thereby ensuring the stability and reliability of the humanoid robot in the process of picking up and delivering medicines, and optimizing the user's medication experience.
[0064] In one possible example, the target object includes a water cup; after controlling the second robot arm to grab the target medicine from the medicine according to the image features, the method further includes: controlling the second robot arm to perform a water pouring operation on the water cup, the water pouring operation refers to the operation of the second robot arm taking a kettle to pour water into the water cup; when determining through a visual sensor that the water level of the water cup reaches a preset water level, stopping the water pouring operation and controlling the second robot arm to hold the water cup; walking on the first route in a third preset posture, the third preset posture refers to the posture in which the first robot arm of the humanoid robot is in the first preset posture and the second robot arm is holding the water cup; monitoring the water in real time through a visual sensor The first shaking condition of the water level in the cup, and the second shaking condition of the target medicine in the medicine tray; when the first shaking condition and / or the second shaking condition exceeds the preset shaking range, the humanoid robot is controlled to take target measures to ensure that the first shaking condition and / or the second shaking condition returns to the preset shaking range. The first shaking condition exceeding the preset shaking range means that the distance between the water level of the water cup and the cup mouth of the water cup is less than the first preset distance. The second shaking condition exceeding the preset shaking range means that the distance between the target medicine and the edge of the medicine tray is less than the second preset distance. The target measures include: reducing the stride distance, stopping movement, and reducing the walking frequency.
[0065] Specifically, see Figure 6 , Figure 6 is a posture diagram of another humanoid robot provided in an embodiment of the present application, such as Figure 6 As shown, the third preset posture of the humanoid robot is that the first robot arm is in the first preset posture, and at the same time, the wrist joint 610, the second elbow joint 620 and the second shoulder joint 630 of the second robot arm are adjusted to each other to maintain a fixed posture of holding the water cup 640, wherein the angle between the second elbow joint 620 and the second shoulder joint 630 is not restricted, and the wrist joint 610 is adjusted to ensure that the water cup 640 is in a state parallel to the ground.
[0066] The water level in the water cup 640 can be identified and analyzed by the visual sensor 104. If the water level is not parallel to the cup mouth plane of the water cup 640, it is determined that the water cup 640 is not held stably and is in a tilted state relative to the ground. There may be water spillage or the water cup may slip. At this time, an XYZ three-dimensional axis with the wrist joint 610 as the origin is established, wherein the wrist joint 610 can adjust the angle in the three directions of XYZ, with the ground as the X-axis. When it is determined that the water cup 640 is not held stably, the wrist joint 610 is slowly adjusted to adjust the angle. 610 on the Y-axis and the Z-axis, and monitors the positional relationship of the water level in the water cup 640 relative to the cup mouth in real time through the visual sensor 104; if during the adjustment process, the angle between the water level and the cup mouth becomes smaller, the adjustment angle is correct, and the adjustment is continued until the water level and the cup mouth are parallel; if during the adjustment process, the angle between the water level and the cup mouth becomes larger, the adjustment angle is wrong, and the adjustment action on the current direction axis is stopped immediately, and the angle is adjusted along the current direction axis in the opposite direction of the previous adjustment direction until the water level and the cup mouth are parallel.
[0067] Specifically, the visual sensor monitors the first shaking condition and the second shaking condition in real time, and the target measures are executed in the following order: first reduce the stride distance, then reduce the walking frequency, and finally stop moving, so as to cope with the severity of the first shaking condition and the second shaking condition from low to high, among which the severity of the second shaking condition is prioritized for judgment to ensure that the medicines can be stably placed in the medicine tray without being spilled.
[0068] It can be seen that in this example, the second robot arm is controlled to perform a pouring operation on the water cup; when the water level of the water cup reaches the preset water level through the visual sensor, the pouring operation is stopped and the second robot arm is controlled to hold the water cup; the robot walks on the first route in the third preset posture, and the third preset posture refers to the posture in which the first robot arm of the humanoid robot is in the first preset posture and the second robot arm holds the water cup; the first shaking condition of the water level of the water cup and the second shaking condition of the target drug in the medicine tray are monitored in real time through the visual sensor; when the first shaking condition and / or the second shaking condition exceeds the preset shaking range, the humanoid robot is controlled to take target measures to ensure that the first shaking condition and / or the second shaking condition return to the preset shaking range. In this way, by monitoring the movement of the water cup and the target drug through the visual sensor and adjusting the movement amplitude of the humanoid robot at the same time, the controllability of the shaking of the water cup and the drug in the process of delivering water and medicine is realized, ensuring that the water in the water cup does not spill out and the drug does not fall out of the tray range, and the drug delivery task is stably performed, which is conducive to improving the reliability of assisting users in taking medicine.
[0069] In one possible example, controlling a second robot arm to perform a pouring operation on a water cup includes: determining the position of a handle of the kettle through a visual sensor; controlling two or more robot fingers of the second robot arm to perform a gripping operation on the handle, the second robot arm including a palm portion and a wrist portion, and the palm portion including five robot fingers; controlling the second robot arm to be lifted in a vertical direction so that the kettle stops when the water level is higher than the mouth of the cup, wherein the second robot arm maintains a gripping posture on the handle during the lifting process, wherein the horizontal plane of the kettle is the horizontal direction, and the vertical horizontal plane is the vertical direction; controlling the adjustment of a first angle of the wrist portion so that the spout of the kettle is aligned with the mouth of the cup, the first angle being the angle of the wrist portion in the horizontal direction; and; controlling the uniform increase of a second angle of the wrist portion, and judging the pouring speed of the kettle through a visual sensor, the second angle being the angle of the wrist portion in the vertical direction; if the pouring speed is greater than a preset water flow rate, slowing down the increase speed of the second angle; if the pouring speed is less than or equal to the preset water flow rate, maintaining the pouring speed to perform the pouring operation.
[0070] The gripping operation refers to the operation of the second robot arm passing through the gap in the handle and closing and tightening it through at least two robot fingers; for example, the ground is the X-axis and the vertical direction is the Y-axis.
[0071] It can be seen that in this example, the position of the handle of the kettle is determined by the visual sensor; the two or more robot fingers of the second robot arm are controlled to hold the handle; the second robot arm is controlled to be lifted in the vertical direction so that the kettle stops when the water level is higher than the mouth of the water cup; the first angle of the wrist part is controlled to be adjusted so that the spout of the kettle is aligned with the mouth of the water cup; and; the second angle of the wrist part is controlled to be increased at a uniform speed, and the pouring speed of the kettle is determined by the visual sensor; if the pouring speed is greater than the preset water flow rate, the increase speed of the second angle is slowed down; if the pouring speed is less than or equal to the preset water flow rate, the pouring speed is maintained for the pouring operation. In this way, the humanoid robot achieves the uniform speed pouring task by judging the angle between the water level and the water cup, which improves the intelligence of the humanoid robot, and ensures the accuracy and stability of the pouring action through the cooperation of the visual sensor and the joint drive.
[0072] Step S240, analyzing the type of the first continuous step section in the first route by a visual sensor, and determining a first motion control strategy according to the type of the first continuous step section, and determining a second motion control strategy according to the first flat ground section.
[0073] Among them, the types include ascending stairs or descending stairs, the first route is the route from the first target position to the second target position of the user, the first route includes a first continuous stair section and a first flat ground section, and the first motion control strategy is a bipedal gait control algorithm for a humanoid robot to ascend or descend stairs in a first preset posture.
[0074] Among them, the second motion control strategy is a bipedal gait control algorithm for the humanoid robot to walk on flat ground in a first preset posture.
[0075] The method for determining the first continuous step section is the same as the method for determining the second continuous step section, which will not be described in detail here.
[0076] Step S250, controlling the humanoid robot to reach a second target position along the first route according to the first preset posture, the first motion control strategy and the second motion control strategy.
[0077] In other possible examples, a speaker is provided in the humanoid robot; after reaching the second target position, the method further includes: controlling the speaker to play medication reminder information, the medication reminder information is information to remind the user of the usage and dosage of one or more target drugs; after recognizing through the visual sensor that the user has completed taking the target drugs, walking from the second target position to the first target position according to the instructions of the first route, according to the second preset posture, the first motion control and the second motion control, until reaching the first target position.
[0078] It can be seen that in this example, by controlling the speaker to play the medication reminder information, the visual sensor recognizes that the user has completed taking the target medicine, and then walks from the second target position to the first target position according to the instructions of the first route, according to the second preset posture, the first motion control and the second motion control, until reaching the first target position. The user is reminded of medication, ensuring that the user completes the medication safely and accurately. At the same time, it is recognized that the user returns to the original route after completing the medication, which optimizes the user's medication experience, reduces the loneliness of the user living alone, and is conducive to protecting the user's mental health.
[0079] It can be seen that in the embodiment of the present application, the humanoid robot is first controlled to reach the first target position where the target objects are placed, and the target objects include: a medicine tray and medicines, and the medicines include target medicines; secondly, the first robot arm is controlled to lift the medicine tray in a first preset posture, and the first preset posture is the posture in which the humanoid robot lifts the object with the first robot arm and ensures the balance of the supported object; then, the image features of the medicines are analyzed by the visual sensor, and the second robot arm is controlled to grab the target medicine in the medicine according to the image features; then, the type of the first continuous step section in the first route is analyzed by the visual sensor, and the type includes ascending steps or descending steps; and according to the first continuous step section, the second robot arm is controlled to grab the target medicine in the medicine. The first motion control strategy is determined according to the type of continuous stairs. The first route is the route from the first target position to the second target position of the user. The first route includes the first continuous stair section and the first flat section. The first motion control strategy is a bipedal gait control algorithm for the humanoid robot to ascend or descend stairs in a first preset posture; and the second motion control strategy is determined according to the first flat section. The second motion control strategy is a bipedal gait control algorithm for the humanoid robot to walk on the flat ground in a first preset posture; finally, according to the first preset posture, the first motion control strategy and the second motion control strategy, the humanoid robot is controlled to reach the second target position along the first route. In this way, while ensuring that the humanoid robot has a stable posture for taking medicine, it can pass through continuous up and down stair sections and flat sections during the medicine delivery process, execute different motion strategies for different sections, and can cope with the stable movement of various different sections, efficiently and flexibly execute the events of taking medicine and delivering medicine, and improve the reliability and comprehensiveness of assisting users in taking medicine.
[0080] The above mainly introduces the scheme of the embodiment of the present application from the perspective of the execution process on the method side. It is understandable that in order to realize the above functions, the mobile electronic device includes a hardware structure and / or software module corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiment provided in this article, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0081] The embodiment of the present application can divide the electronic device into functional units according to the above method example. For example, each functional unit can be divided according to each function, or two or more functions can be integrated into one processing unit. The above integrated unit can be implemented in the form of hardware or in the form of software functional units. It should be noted that the division of units in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.
[0082] and Figure 2 For details, see Figure 7 , Figure 7 : This is a functional unit composition block diagram of a control device based on humanoid robot-assisted medication provided by an embodiment of the present application. The control device 700 based on humanoid robot-assisted medication includes: a first control unit 710, a second control unit 720, an image analysis unit 730, a determination unit 740, and a third control unit 750; wherein the first control unit 710 is used to control the humanoid robot to reach a first target position for placing target items, and the target items include: a medicine tray, medicines, and the medicines include target medicines; the second control unit 720 is used to control the first robot arm to hold up the medicine tray in a first preset posture, and the first preset posture is the posture of the humanoid robot holding up the item with the first robot arm and ensuring the balance of the held item; the image analysis unit 730 is used to analyze the image features of the medicine through a visual sensor, and control the second robot arm to grasp the medicine according to the image features. Take the target medicine; a determination unit 740 is used to analyze the type of the first continuous step section in the first route through a visual sensor, the type including ascending steps or descending steps; and, determine the first motion control strategy according to the type of the first continuous steps, the first route is a route from the first target position to the second target position of the user, the first route includes the first continuous step section and the first flat section, the first motion control strategy is a bipedal gait control algorithm for a humanoid robot to ascend or descend the stairs in a first preset posture; and, determine the second motion control strategy according to the first flat section, the second motion control strategy is a bipedal gait control algorithm for a humanoid robot to walk on flat ground in a first preset posture; a third control unit 750 is used to control the humanoid robot to reach the second target position along the first route according to the first preset posture, the first motion control strategy and the second motion control strategy.
[0083] In one possible example, the humanoid robot is controlled to reach a first target position where a target object is placed, and the first control unit 710 is specifically used to: determine a second route according to the first target position and the initial position of the humanoid robot, the second route including: a second flat ground section and a second continuous step section; control the humanoid robot to walk on the second flat ground section with a second preset posture and a third motion control strategy, the second preset posture being a free walking posture of the humanoid robot's arms without carrying objects, and the third motion control strategy being a bipedal gait control algorithm for the humanoid robot to walk on flat ground with the second preset posture; analyze the type of the second continuous step section as ascending steps or descending steps through a visual sensor, and determine a fourth motion control strategy according to the type of the second continuous step section, the fourth motion control strategy being a bipedal gait control algorithm for the humanoid robot to ascend or descend stairs with the second preset posture; and walk along the second route according to the second preset posture, the third motion control strategy and the fourth motion control strategy until the first target position is reached.
[0084] In one possible example, the first robotic arm is controlled to lift the medicine tray in a first preset posture, and the second control unit 720 is specifically used to: collect an environmental image through a visual sensor, where the environmental image is an image of a relevant area where the target item is placed; identify a first image consistent with the image features of the medicine tray based on the environmental image; analyze first three-dimensional data of the medicine tray, where the first three-dimensional data is three-dimensional spatial data of the medicine tray when it is in a placed state; determine the center of mass position of the medicine tray based on the first three-dimensional data, and determine joint drive data based on the center of mass position, where the joint drive data includes first joint drive data and second joint drive data, and the joint drive data is drive data of multiple joints of the humanoid robot; control the first robotic arm to grab the medicine tray with the first joint drive data; and control the first robotic arm to lift the medicine tray with the second joint drive data.
[0085] In one possible example, after controlling the second robotic arm to grab the target drug among the drugs according to the image features, the image analysis unit 730 is specifically used to: analyze and determine the weight of the drug tray and the target drug; adjust the center of mass data of the humanoid robot according to the weight of the target drug on the drug tray and the first preset posture, the center of mass data is preset, and is the data when the humanoid robot does not carry any items, and the center of mass data is used as a reference to ensure that the humanoid robot performs stable movements, and stable movements refer to the movements performed by the humanoid robot when the center of gravity is stable; determine the first motion control strategy according to the adjusted center of mass data, the first motion control strategy includes the walking parameters of the two feet of the humanoid robot, and the walking parameters include at least one of the following: gait cycle, stride amplitude, step frequency, support phase and swing phase, wherein the support phase refers to the stage when the two feet of the humanoid robot are in contact with the ground, and the swing phase refers to the stage when one foot of the humanoid robot is swinging in the air to prepare for the next step of walking.
[0086] In one possible example, the target object includes a water cup; after controlling the second robot arm to grab the target medicine from the medicine according to the image features, the image analysis unit 730 is further specifically used to: control the second robot arm to perform a water pouring operation on the water cup, the water pouring operation refers to the operation of the second robot arm taking a kettle to pour water into the water cup; when it is determined through a visual sensor that the water level of the water cup reaches a preset water level, the water pouring operation is stopped and the second robot arm is controlled to hold the water cup; walk on the first route in a third preset posture, the third preset posture refers to the posture in which the first robot arm of the humanoid robot is in the first preset posture and the second robot arm is holding the water cup; through the visual sensor Real-time monitoring of the first shaking condition of the water level in the water cup and the second shaking condition of the target medicine in the medicine tray; when the first shaking condition and / or the second shaking condition exceeds the preset shaking range, the humanoid robot is controlled to take target measures to ensure that the first shaking condition and / or the second shaking condition returns to the preset shaking range. The first shaking condition exceeding the preset shaking range means that the distance between the water level of the water cup and the cup mouth of the water cup is less than the first preset distance. The second shaking condition exceeding the preset shaking range means that the distance between the target medicine and the edge of the medicine tray is less than the second preset distance. The target measures include: reducing the stride distance, stopping movement, and reducing the walking frequency.
[0087] In one possible example, the second robot arm is controlled to perform a pouring operation on a water cup, and the image analysis unit 730 is specifically used to: determine the position of the handle of the kettle through a visual sensor; control two or more robot fingers of the second robot arm to perform a gripping operation on the handle, the second robot arm includes a palm part and a wrist part, and the palm part includes five robot fingers; control the second robot arm to be lifted in a vertical direction so that the kettle stops when the water level is higher than the mouth of the cup, wherein the second robot arm maintains a gripping posture on the handle during the lifting process, wherein the horizontal plane of the kettle is the horizontal direction, and the vertical horizontal plane is the vertical direction; control the adjustment of a first angle of the wrist part so that the spout of the kettle is aligned with the mouth of the cup, and the first angle is the angle of the wrist part in the horizontal direction; and; control the uniform increase of the second angle of the wrist part, and judge the pouring speed of the kettle through the visual sensor, and the second angle is the angle of the wrist part in the vertical direction; if the pouring speed is greater than the preset water flow rate, slow down the increase speed of the second angle; if the pouring speed is less than or equal to the preset water flow rate, maintain the pouring speed to perform the pouring operation.
[0088] In one possible example, a visual sensor is used to analyze image features of a drug, and a second robotic arm is controlled to grab a target drug from the drugs based on the image features. The image analysis unit 730 is specifically used to: identify a second image that meets the appearance features of the target drug through a visual sensor, where the appearance features include at least one of the following: drug name, outer packaging color, and outer packaging shape; analyze second three-dimensional spatial data of the target drug based on the second image; generate third joint drive data based on the second three-dimensional spatial data; and control the second robotic arm of the humanoid robot to grab the target drug based on the third joint drive data.
[0089] It can be understood that since the method embodiment and the device embodiment are different presentation forms of the same technical concept, the content of the method embodiment part in this application should be synchronously adapted to the device embodiment part and will not be repeated here.
[0090] Figure 8 This is a structural block diagram of an electronic device provided by this application. Figure 8 As shown, the electronic device 800 may include one or more of the following components: a processor 801, a memory 802 coupled to the processor 801, wherein the memory 802 may store one or more computer programs, and the one or more computer programs may be configured to implement the methods described in the above examples when executed by one or more processors 801. The electronic device 800 may be the above Figure 1 The controller 101 in FIG.
[0091] The processor 801 may include one or more processing cores. The processor 801 uses various interfaces and lines to connect the various parts of the entire electronic device 800, and executes various functions and processes data of the electronic device 800 by running or executing instructions, programs, code sets or instruction sets stored in the memory 802, and calling data stored in the memory 802. Optionally, the processor 801 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 801 can integrate one or more combinations of a central processing unit (Central Processing Unit, CPU), an image processor (Graphics Processing Unit, GPU) and a modem. It is understandable that the above-mentioned modem may not be integrated into the processor 801, and may be implemented separately through a communication chip.
[0092] The memory 802 may include a random access memory (RAM) or a read-only memory (ROM). The memory 802 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 802 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method examples, etc. The data storage area may also store data created by the electronic device 800 during use, etc.
[0093] It is understandable that the electronic device 800 may include more or fewer structural elements than those in the above structural block diagram, for example, a power module, physical buttons, a WiFi (Wireless Fidelity) module, a speaker, a Bluetooth module, a sensor, etc., which are not limited here.
[0094] An embodiment of the present application also provides a computer storage medium, on which a computer program / instruction is stored. When the computer program / instruction is executed by a processor, part or all of the steps of any method recorded in the above method embodiments are implemented.
[0095] An embodiment of the present application also provides a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute part or all of the steps of any method recorded in the above method embodiments.
[0096] It should be understood that in the various embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0097] In the several embodiments provided in the present application, it should be understood that the disclosed methods, devices and systems can be implemented in other ways. For example, the device embodiments described above are only schematic; for example, the division of units is only a logical function division, and there may be other division methods in actual implementation; for example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0098] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0099] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may be physically included separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0100] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform some steps of the methods of various embodiments of the present invention. The aforementioned storage medium includes: a USB flash drive, a mobile hard disk, a magnetic disk, an optical disk, a volatile memory or a non-volatile memory. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM) or a flash memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of random access memory (RAM) are available, such as static RAM (SRAM), dynamic random access memory (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM) and direct RAM bus random access memory (DR RAM), among other media that can store program code.
[0101] Although the present invention is disclosed as above, the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions without departing from the spirit and scope of the present invention, and can make various changes and modifications, including the combination of the above-mentioned different functions and implementation steps, including software and hardware implementation methods, all of which are within the scope of protection of the present invention.
Claims
1. A control method based on humanoid robot-assisted medication, characterized in that: The method is applied to a controller of a humanoid robot, wherein the humanoid robot comprises the controller, a first robotic arm, a second robotic arm, and a visual sensor, wherein the controller is connected to the first robotic arm and the second robotic arm, and the controller is connected to the visual sensor; the method comprises: Controlling the humanoid robot to reach a first target position where a target object is placed, wherein the target object includes: a medicine tray and medicines, and the medicines include target medicines; Controlling the first robot arm to hold up the medicine tray in a first preset posture, wherein the first preset posture is a posture in which the humanoid robot holds an object with the first robot arm and ensures that the object is balanced; Analyzing the image features of the medicine by the visual sensor, and controlling the second robot arm to grab the target medicine from the medicine according to the image features; Analyzing the type of the first continuous stair section in the first route by the visual sensor, the type including ascending stairs or descending stairs; and determining a first motion control strategy according to the type of the first continuous stair, the first route being a route from the first target position to the second target position of the user, the first route including the first continuous stair section and the first flat ground section, the first motion control strategy being a bipedal gait control algorithm for the humanoid robot to ascend or descend stairs in the first preset posture; and determining a second motion control strategy according to the first flat ground section, the second motion control strategy being a bipedal gait control algorithm for the humanoid robot to walk on flat ground in the first preset posture; According to the first preset posture, the first motion control strategy and the second motion control strategy, the humanoid robot is controlled to reach the second target position along the first route.
2. The method according to claim 1, characterized in that The controlling the humanoid robot to reach a first target position where a target object is placed comprises: Determining a second route according to the first target position and the initial position of the humanoid robot, wherein the second route includes: a second flat ground section and a second continuous step section; Controlling the humanoid robot to walk on the second flat ground section in a second preset posture and a third motion control strategy, wherein the second preset posture is a free walking posture of the humanoid robot with both arms not carrying any objects, and the third motion control strategy is a bipedal gait control algorithm for the humanoid robot to walk on flat ground in the second preset posture; Analyzing by the visual sensor whether the type of the second continuous stair section is an ascending stair or a descending stair, and determining a fourth motion control strategy according to the type of the second continuous stair section, wherein the fourth motion control strategy is a bipedal gait control algorithm for the humanoid robot to ascend or descend the stairs in the second preset posture; According to the second preset posture, the third motion control strategy and the fourth motion control strategy, the vehicle walks along the second route until reaching the first target position.
3. The method according to claim 1 or 2, characterized in that: The controlling the first robot arm to hold up the medicine tray in a first preset posture includes: Collecting an environmental image by means of the visual sensor, wherein the environmental image is an image of a relevant area where the target object is placed; According to the environmental image, identifying a first image that is consistent with the image features of the medicine tray; analyzing first three-dimensional data of the medicine tray, where the first three-dimensional data is three-dimensional spatial data of the medicine tray when it is in a placed state; Determine the center of mass position of the medicine tray according to the first three-dimensional data, and determine joint driving data according to the center of mass position, wherein the joint driving data includes first joint driving data and second joint driving data, and the joint driving data is driving data of multiple joints of the humanoid robot; Controlling the first robot arm to grab the medicine tray using the first joint driving data; The first robot arm is controlled by the second joint driving data to lift the medicine tray.
4. The method according to claim 3, characterized in that After controlling the second robot arm to grab the target drug from the drugs according to the image features, the method further includes: Analyzing and determining the weight of the medicine tray and the target medicine; According to the weight of the target medicine on the medicine tray and the first preset posture, adjusting the center of mass data of the humanoid robot, the center of mass data being preset data when the humanoid robot does not carry any items, and using the center of mass data as a reference to ensure that the humanoid robot performs a stable action, the stable action being an action performed by the humanoid robot when the center of mass is stable; According to the adjusted center of mass data, the first motion control strategy is determined, and the first motion control strategy includes walking parameters of the two feet of the humanoid robot, and the walking parameters include at least one of the following: gait cycle, stride amplitude, step frequency, support phase and swing phase, wherein the support phase refers to the stage when the two feet of the humanoid robot are in contact with the ground, and the swing phase refers to the stage when one foot of the humanoid robot is swinging in the air to prepare for the next step of walking.
5. The method according to claim 2, characterized in that: The target object includes a water cup; after controlling the second robot arm to grab the target medicine from the medicine according to the image feature, the method further includes: Controlling the second robotic arm to perform a water pouring operation on the water cup, wherein the water pouring operation refers to an operation in which the second robotic arm takes the kettle and pours water into the water cup; When it is determined by the visual sensor that the water level of the water cup reaches a preset water level, the pouring operation is stopped and the second robot arm is controlled to hold the water cup; walking on the first route in a third preset posture, where the third preset posture refers to a posture in which the first robot arm of the humanoid robot is in the first preset posture and the second robot arm is holding the water cup; Monitoring in real time through the visual sensor a first shaking condition of the water level of the water cup and a second shaking condition of the target medicine in the medicine tray; When the first shaking condition and / or the second shaking condition exceeds the preset shaking range, the humanoid robot is controlled to take target measures to ensure that the first shaking condition and / or the second shaking condition returns to the preset shaking range. The first shaking condition exceeding the preset shaking range means that the distance between the water level of the water cup and the cup mouth of the water cup is less than a first preset distance. The second shaking condition exceeding the preset shaking range means that the distance between the target medicine and the edge of the medicine tray is less than a second preset distance. The target measures include: reducing the stride distance, stopping movement, and reducing the walking frequency.
6. The method according to claim 5, characterized in that The controlling the second robot arm to perform a water pouring operation on the water cup includes: determining the position of the handle of the kettle by the visual sensor; Controlling two or more robot fingers of the second robot arm to perform a gripping operation on the handle, wherein the second robot arm comprises a palm portion and a wrist portion, and the palm portion comprises five robot fingers; Controlling to lift the second robot arm in a vertical direction, so that the second robot arm stops when the water level of the kettle is higher than the mouth of the cup, wherein the second robot arm maintains a gripping posture of the handle during the lifting process, wherein the horizontal plane of the kettle is the horizontal direction, and the vertical direction is the vertical direction; Controlling and adjusting a first angle of the wrist part so that the spout of the kettle is aligned with the mouth of the cup, the first angle being the angle of the wrist part in the horizontal direction; and; Controlling a uniform increase in a second angle of the wrist part, and determining a pouring speed of the kettle by using the visual sensor, wherein the second angle is an angle of the wrist part in the vertical direction; If the pouring speed is greater than the preset water flow rate, the increasing speed of the second angle is slowed down; if the pouring speed is less than or equal to the preset water flow rate, the pouring operation is performed while maintaining the pouring speed.
7. The method according to claim 1, characterized in that The step of analyzing the image features of the medicine by the visual sensor and controlling the second robot arm to grab the target medicine from the medicine according to the image features includes: Recognize, by the visual sensor, a second image that matches the appearance characteristics of the target drug, wherein the appearance characteristics include at least one of the following: drug name, outer packaging color, and outer packaging shape; analyzing second three-dimensional spatial data of the target drug according to the second image; generating third joint driving data according to the second three-dimensional spatial data; According to the third joint driving data, the second robot arm of the humanoid robot is controlled to grab the target medicine.
8. A control device based on humanoid robot-assisted medication, characterized in that: include: A first control unit, a second control unit, an image analysis unit, a determination unit, and a third control unit; wherein, The first control unit is used to control the humanoid robot to reach a first target position where a target object is placed, wherein the target object includes: a medicine tray and medicines, and the medicines include target medicines; The second control unit is used to control the first robot arm to hold up the medicine tray in a first preset posture, where the first preset posture is a posture in which the humanoid robot holds an object with the first robot arm and ensures that the object is balanced; The image analysis unit is used to analyze the image features of the medicine through a visual sensor, and control the second robot arm to grab the target medicine from the medicine according to the image features; The determining unit is used to analyze the type of a first continuous step section in a first route through the visual sensor, the type including ascending steps or descending steps; and determine a first motion control strategy according to the type of the first continuous steps, the first route is a route from the first target position to the second target position of the user, the first route includes the first continuous step section and a first flat ground section, the first motion control strategy is a bipedal gait control algorithm for the humanoid robot to ascend or descend the stairs in the first preset posture; and determine a second motion control strategy according to the first flat ground section, the second motion control strategy is a bipedal gait control algorithm for the humanoid robot to walk on flat ground in the first preset posture; The third control unit is used to control the humanoid robot to reach the second target position along the first route according to the first preset posture, the first motion control strategy and the second motion control strategy.
9. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory is used to store one or more programs and is configured to be executed by the processor, wherein the programs include instructions for executing the steps in the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: A computer program for electronic data exchange is stored, wherein the computer program enables a computer to execute the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Three-dimensional path planning method for biped robot
CN111830986A
Robot gait planning method and device, readable storage medium and robot
CN112947398A
Gait planning method and device for climbing stairs, readable storage medium and robot
CN113253607A
Dynamic jumping and balance control method for humanoid robot, electronic equipment and medium
CN116551669A
Humanoid robot
WO2024129735A1
