Robot auxiliary feeding task planning method, control device and auxiliary feeding robot
By obtaining the key points and curve parameters of auxiliary feeding and planning the robot joint control parameters, the problem of low anthropomorphism of the motion trajectory of the auxiliary feeding robot in the existing technology is solved, the safety and comfort of the user are improved, and a more suitable and healthy Task planning during mealtime processes in adults.
Patent Information
- Application Number
- CN202410875096.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-02
- Publication Date
- 2024-09-06
AI Technical Summary
In the planning of auxiliary feeding tasks, existing auxiliary feeding robots have low anthropomorphism of motion trajectories and lack of consideration of the actual situation of the user, resulting in insufficient safety and interactivity, and are unable to achieve smooth and natural auxiliary feeding without manual intervention.
By obtaining the coordinate information of five auxiliary feeding key points (A, B, C, D, E), and obtaining the parameter information of each curve based on these key points, the control parameters of the robot joints are planned, including angular displacement, angular velocity and angular acceleration. , using the fifth-degree polynomial interpolation method and the seven-segment S-curve speed planning method to control the robot to complete the feeding task, and adjust the feeding point in real time to adapt to the dynamic position of the user's mouth.
It improves the degree of anthropomorphism of assisted feeding, enhances user safety and comfort, realizes task planning that is more suitable for healthy adults' dining process, and ensures the real-time, safety and comfort of human-computer interaction.
Smart Images

Figure CN118596154A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of robot-assisted feeding, and in particular to a robot-assisted feeding task planning method, a control device and an assisted feeding robot. Background Art
[0002] As they lose the ability to move their upper limbs, eating becomes a major problem for them. When feeding users who cannot take care of themselves, medical staff or family members usually deliver food to their mouths one spoonful at a time, which is a time-consuming and laborious process.
[0003] In response to the above problems, people have introduced various assisted feeding robots to assist feeding users who have lost the ability to move their upper limbs independently. The more successful assisted feeding robots include Handy1 from the UK, MySpoon from Japan, and Obi, a meal partner from the United States.
[0004] However, the auxiliary feeding robots in the prior art still have the following deficiencies in planning the auxiliary feeding tasks: First, the safety is insufficient. When assisting users to eat, the auxiliary feeding robots feed by setting feeding positions or controlling buttons, without considering environmental factors and the actual situation of the users. In some cases, it is even inevitable to cause discomfort to the user's mouth or damage to other parts of the user's body. Second, the human-computer interaction is insufficient. In the process of taking food and feeding, some methods deliver food to the user's head, use a fixed feeding point as the target point for repeated operations, and require the user to stretch his neck to eat. The relevant interaction methods are not friendly, and there are problems such as poor anthropomorphism in motion trajectory planning, unreasonable planning routes, inability to autonomously identify the end of feeding when close to the human body, and too fast or too slow auxiliary feeding speed.
[0005] That is, the existing assisted feeding robots can only simply realize the assisted feeding function without considering the actual situation of the user. There are problems such as low anthropomorphism of the assisted feeding movement trajectory and insufficient interactivity, which is far from achieving the goal of assisted feeding without human intervention and smoothly and naturally. Summary of the invention
[0006] The first object of the present invention is to provide a robot-assisted feeding task planning method to solve the technical problem of low anthropomorphism of the motion trajectory of the auxiliary feeding robot existing in the prior art.
[0007] The robot-assisted feeding task planning method provided by the present invention comprises the following steps:
[0008] Obtain the coordinate information of the five key points of auxiliary feeding, A, B, C, D, and E; among them, point A is the initial position of the robot's end effector; point B is the preparation point, located obliquely above the plate; point C is the feeding point, close to the bottom of the plate but not touching it; point D is the transition point, located above the food and directly above point C; point E is the feeding point, which is determined according to the dynamic position of the user's mouth;
[0009] Acquire parameter information of a plurality of curves; wherein the plurality of curves include an AB curve, an EB curve, an EA curve, a BC curve, a CD curve and a DE curve, and the parameter information includes: an initial joint angle, an initial speed, a maximum speed, a maximum acceleration and a motion duration of the robot corresponding to each of the curves;
[0010] For each curve, the control parameters of each joint in the robot are planned according to the parameter information of the curve; wherein the control parameters include at least one of the following: angular displacement, angular velocity and angular acceleration;
[0011] Each joint in the robot is controlled to operate according to the corresponding control parameters in each curve to complete the feeding task.
[0012] Furthermore, the step of planning the control parameters of each joint in the robot for each curve according to the parameter information of the curve includes: for the AB curve, the EB curve and the EA curve, using the quintic polynomial interpolation method to obtain the angular displacement expressions of each joint of the robot on the three different curves, and deriving the corresponding angular velocity expressions and angular acceleration expressions; wherein the AB curve is used to represent the stage in which the robot prepares to take food, the EB curve is used to represent the stage in which the robot returns to continue taking food after feeding is completed, and the EA curve is used to represent the stage in which the robot returns to the initial position after feeding is completed.
[0013] Furthermore, the step of planning the control parameters of each joint in the robot for each curve according to the parameter information of the curve includes: for the BC curve, the CD curve and the DE curve, based on the seven-segment S-curve speed planning method, obtaining the velocity expression, acceleration expression and displacement expression of the robot end effector on three different curves, and then obtaining the angular displacement expression, angular velocity expression and angular acceleration expression of each joint in the robot through the inverse kinematics of the robot; wherein the BC curve is used to characterize the feeding stage of the robot, the CD curve is used to characterize the transition stage between the completion of feeding and the feeding of the robot, and the DE curve is used to characterize the feeding stage of the robot.
[0014] Furthermore, the method also includes: when the robot end effector is located at the point D, acquiring a user mouth image; and determining the point E based on the YOLO algorithm and the user mouth image.
[0015] Furthermore, the method also includes: when the robot end effector is located at the point E, acquiring the user's mouth image; determining the user's mouth state based on the user's mouth image; if the mouth state is a closed state, controlling the robot to end the feeding task.
[0016] Furthermore, the method also includes: determining a change range of the user's mouth position based on a plurality of images of the user's mouth; if the change range of the mouth position is greater than a preset range, controlling the robot to end the feeding task.
[0017] Furthermore, the point D is at a first set height from the point C, or at a second set height from the bottom of the dinner plate.
[0018] The robot-assisted feeding task planning method provided by the present invention can produce the following beneficial effects:
[0019] The robot-assisted feeding task planning method provided by the present invention first obtains five key points of assisted feeding, namely A, B, C, D, and E. The five key points can divide the robot-assisted feeding task into the food preparation stage, the food taking stage, the transition stage after the food taking is completed and before the feeding, the feeding stage, the stage of returning to continue the food taking after the feeding is completed, and the stage of returning to the initial position after the feeding is completed. The above division of the feeding task is very consistent with the dining process of healthy adults, so the degree of anthropomorphism of the present invention is relatively high, which can improve the safety and comfort of the user. Moreover, the E point is determined according to the dynamic position of the user's mouth, which can ensure the real-time, safety and comfort of human-computer interaction.
[0020] Then, the present invention obtains the parameter information of the curve corresponding to each stage, and accordingly plans the control parameters of each joint in the robot, and controls each joint in the robot to operate according to the corresponding control parameters at each stage to complete the feeding task. Among them, the parameter information of each curve can use data reflecting the dining characteristics of healthy adults at different stages, so that the planning of the present invention can be more humanized, and the safety and comfort of user use can be further improved.
[0021] The second object of the present invention is to provide a robot-assisted feeding control device to solve the technical problem of low anthropomorphism of the motion trajectory of the auxiliary feeding robot in the prior art.
[0022] The robot-assisted feeding control device provided by the present invention comprises:
[0023] The first acquisition module is used to obtain the coordinate information of five auxiliary feeding key points A, B, C, D, and E; among them, point A is the initial position of the robot's end effector; point B is the preparation point, which is located obliquely above the plate; point C is the feeding point, which is close to the bottom of the plate but not in contact with the plate; point D is the transition point, which is located above the food and directly above point C; point E is the feeding point, which is determined according to the dynamic position of the user's mouth;
[0024] A second acquisition module is used to acquire parameter information of a plurality of curves; wherein the plurality of curves include an AB curve, an EB curve, an EA curve, a BC curve, a CD curve and a DE curve, and the parameter information includes: an initial joint angle, an initial speed, a maximum speed, a maximum acceleration and a motion duration of the robot corresponding to each of the curves;
[0025] A planning module, for planning control parameters of each joint in the robot for each curve according to the parameter information of the curve; wherein the control parameters include at least one of the following: angular displacement, angular velocity and angular acceleration;
[0026] The execution module is used to control each joint in the robot to operate according to the corresponding control parameters in each curve to complete the feeding task.
[0027] The control device can implement the above-mentioned robot-assisted feeding task planning method, so it has all the advantages of the above-mentioned task planning method, which will not be repeated here.
[0028] The third object of the present invention is to provide an auxiliary feeding robot to solve the technical problem of low anthropomorphism of the motion trajectory of the auxiliary feeding robot in the prior art.
[0029] The auxiliary feeding robot provided by the present invention includes a controller and a plurality of joints; wherein the controller includes a processor and a memory, the memory stores a computer program, and the computer program implements the above-mentioned task planning method when executed by the processor.
[0030] The assisted feeding robot can implement the above-mentioned robot-assisted feeding task planning method, so it has all the advantages of the above-mentioned task planning method, which will not be repeated here.
[0031] The fourth object of the present invention is to provide a computer-readable storage medium to solve the technical problem of low anthropomorphism of the motion trajectory of the auxiliary feeding robot in the prior art.
[0032] The computer-readable storage medium provided by the present invention stores a computer program, and when the computer program is read and executed by a processor, the above-mentioned robot-assisted feeding task planning method can be implemented. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] In order to more clearly illustrate the embodiments of the present invention 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 embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0034] Figure 1 is a schematic diagram of an experimental platform constructed to implement the robot-assisted feeding task planning method provided in an embodiment of the present invention;
[0035] Figure 2 is a schematic block diagram of an experimental platform constructed to implement the robot-assisted feeding task planning method provided in an embodiment of the present invention;
[0036] Figure 3 is a flowchart of a robot-assisted feeding task planning method provided by an embodiment of the present invention;
[0037] Figure 4 is a schematic diagram of five key points in the robot-assisted feeding task planning method provided by an embodiment of the present invention;
[0038] Figure 5 is a schematic diagram of the motion trajectory of the robot end effector planned by the robot-assisted feeding task planning method provided in an embodiment of the present invention;
[0039] Figure 6a , 6b 6c are respectively the angular displacement curve, angular velocity curve, and angular acceleration curve of each joint of the robot in the preparation stage obtained by using the robot-assisted feeding task planning method provided by the embodiment of the present invention;
[0040] Figure 7a , 7b 7c are respectively the displacement curve, velocity curve, and acceleration curve of the robot end effector in the transition phase obtained by using the robot-assisted feeding task planning method provided by the embodiment of the present invention;
[0041] Figure 8a , 8b 8c are respectively the angular displacement curve, angular velocity curve, and angular acceleration curve of each joint of the robot in the transition stage obtained by using the robot-assisted feeding task planning method provided by the embodiment of the present invention;
[0042] Fig. 9 This is an auxiliary feeding flow chart of the auxiliary feeding robot provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0043] In order to make the above-mentioned objects, features and advantages of the present invention more clearly understood, the specific embodiments of the present invention are described in detail below in conjunction with the accompanying drawings. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0044] This embodiment provides a robot-assisted feeding task planning method, and builds a robot-assisted feeding experimental platform to implement the robot-assisted feeding task planning method provided in this embodiment, and also performs simulation through MATLAB.
[0045] Figure 1 The composition of the experimental platform is shown. Figure 2 The figure shows the connection of each part in the experimental platform. Figure 1 and Figure 2 As shown in FIG. 1 , the experimental platform includes a robot, a collection device, a main computer, an optical test platform and a plate containing food. The robot includes a main body (i.e. Figure 1 The robot body is a robot arm (in the figure) and its control box. The end effector of the robot body is a spoon, which can also be a fork or spoon. Preferably, the robot body has seven degrees of freedom. In this way, as an actuator for auxiliary feeding, it is responsible for collecting and transporting food and has high flexibility and stability. Considering the difference between the height and mouth of the user, the acquisition device is used to locate the user's mouth position (i.e. Figure 1 The oral position in the robot body), so that the accuracy of feeding can be greatly improved. In this embodiment, the acquisition device used is a Real Sense D435i camera with a resolution of 1280×720, which is installed at the last joint of the robot body and communicates with the main computer via a USB data cable. Of course, the acquisition device can also be a visual sensor or a camera. The main computer uses a laptop computer equipped with an Intel i7-12700H 2.3GHz processor, a NVIDIA Ge ForceRTX3050 4G graphics card and 16G (4800MHz) memory. Its main function is to receive and process the data transmitted by the acquisition device, input the processed data into the control program, communicate with the control box through an Ethernet cable, and control the robot body to complete the auxiliary feeding task. In addition, in this embodiment, the optical test platform is used as a dining table for placing dinner plates, which can not only provide the location information of the dinner plates, but also help the acquisition device detect visual information.
[0046] The robot-assisted feeding task planning method provided in this embodiment is described in detail below.
[0047] like Figure 3 As shown, the robot-assisted feeding task planning method provided in this embodiment includes the following steps:
[0048] Obtain the coordinate information of the five key points of auxiliary feeding, A, B, C, D, and E; among them, point A is the initial position of the robot's end effector; point B is the preparation point, located obliquely above the plate; point C is the feeding point, close to the bottom of the plate but not touching it; point D is the transition point, located above the food and directly above point C; point E is the feeding point, which is determined according to the dynamic position of the user's mouth;
[0049] Obtain parameter information of multiple curves; wherein the multiple curves include AB curve, EB curve, EA curve, BC curve, CD curve and DE curve, and the parameter information includes: initial joint angle, initial speed, maximum speed, maximum acceleration and motion duration of the robot corresponding to each curve;
[0050] For each curve, the control parameters of each joint in the robot are planned according to the parameter information of the curve; wherein the control parameters include at least one of the following: angular displacement, angular velocity and angular acceleration;
[0051] Each joint in the robot is controlled to run according to the corresponding control parameters in each curve to complete the feeding task.
[0052] Figure 4 The five key points in the robot-assisted feeding task planning method provided in this embodiment are shown. Figure 4As shown, point A is the initial position of the robot's end effector. Theoretically, point A can be at any position, but considering the user's comfort, this embodiment selects a position far from the user but close to the plate. Point B is the preparation point, located at the upper left of the plate, and of course it can also be located at the upper right of the plate. The position of point B is selected taking into account the height and diameter or length and width of the plate to avoid collision between the robot's end effector and the plate when taking food. Point C is the feeding point. In order to ensure the safety of the auxiliary feeding system, i.e., the device and the person, and to take as much food as possible to ensure the efficiency of auxiliary feeding, point C is set at a position close to the bottom of the plate but not touching the plate. In this embodiment, it is determined according to the position of the food in the plate identified by the collection device installed on the last joint of the robot. Point D is the transition point. More specifically, point D is the transition point between point C and point E, which is used to ensure that the robot's end effector can transport food out of the plate without colliding with the plate. Point D is located above the food and directly above point C. In this way, overflowed or dropped food will fall into the plate instead of falling on the table. The position of point D changes with the position of point C. Point E is the feeding point, which is set at a position close to the user's mouth and is determined according to the user's mouth position detected by the acquisition device. More specifically, point E is the center of the user's mouth, or along the feeding direction, a certain distance from the center of the user's mouth to prevent the robot end effector from touching the user's mouth. In this way, the real-time, safety and comfort of human-computer interaction can be ensured, and the robot can perform auxiliary feeding in the fastest and most effective way.
[0053] It can be seen from the above that when the dinner plate and its position are determined, point A and point B are static fixed points, which can be set in advance according to the actual situation and habits of the user; point C, point D, and point E are dynamic points, and point C and point E are obtained through visual positioning. In order to obtain the coordinates of point C, the camera locates the position of the food through the method of visual positioning. Specifically, the edge features of the image are used to locate the object, and the image information is transmitted to the main computer through the camera, and then the main computer processes to obtain the coordinates of point C. Of course, when the position of the dinner plate and the food inside it is determined on the optical test platform, it can also be directly determined manually, eliminating the process of visual positioning. Point D changes with point C. When determining the position of point D, point D can be higher than the first set height of point C, or point D can be higher than the second set height of the bottom of the dinner plate. As for the acquisition of point E, when the robot's end effector is at point D, the user's mouth image is acquired through the camera and transmitted to the main computer; the main computer determines point E based on the YOLO algorithm and the user's mouth image. Specifically, the image is segmented into a grid, and the image is used as the network input. The bounding box position is directly regressed and the category to which the bounding box belongs is predicted in the output layer, thereby determining the user's mouth position and, based on this, the position of point E is determined.
[0054] Using the above five key points, the general auxiliary feeding sequence of the robot is A→B→C→D→E→B, and the last auxiliary feeding sequence is A→B→C→D→E→A. The motion trajectory curves of the robot's end effector include AB curve, BC curve, CD curve, DE curve, EB curve and EA curve. Specifically, the robot drives the end effector from point A at the initial position to point B to prepare for food, so the AB curve is used to characterize the robot's preparation for food. In the feeding stage, the robot drives the end effector from point B to point C and completes the movement of taking food, so the BC curve is used to characterize the robot's feeding stage. In the transition stage, excess food overflows or falls into the plate, so the CD curve is used to characterize the transition stage after the robot completes the feeding and before feeding. Point D is the transition point. At point D, the camera detects the user's mouth position. Once determined, the robot delivers the food to the feeding point E, so the DE curve is used to characterize the robot's feeding stage. In the feeding stage, the user eats at point E. After the user eats, the robot drives the end effector back to point B to prepare for the subsequent feeding. Therefore, the EB curve is used to represent the stage when the robot returns to continue feeding after the feeding is completed. If the user stops eating, the robot drives the end effector from point E back to the initial position point A to complete the entire meal assistance process. Therefore, the EA curve is used to represent the stage when the robot returns to the initial position after feeding.
[0055] Regarding determining the user's intention to stop eating, the method adopted in this embodiment is: when the robot end effector is located at point E, obtain the user's mouth image; determine the user's mouth state based on the user's mouth image; if the mouth state is closed, it means that the user has stopped eating, then control the robot to end the feeding task; otherwise, control the robot to return to point B to prepare for subsequent feeding.
[0056] Alternatively, the following method can be used to determine the user's intention to stop eating: determine the range of change in the user's mouth position based on multiple images of the user's mouth; if the range of change in the mouth position is greater than a preset range, it means that the user has stopped eating, and the robot is controlled to end the feeding task; otherwise, the robot is controlled to return to point B to prepare for subsequent feeding.
[0057] Considering the efficiency of assisted feeding and the interactivity between the user and the robot, too much time should not be spent on each assisted link or stage. Although increasing the speed can shorten the time spent, moving the spoon too quickly may cause food to splash and make the user feel psychologically frightened. Therefore, this embodiment adopts different methods to plan the movement of the robot joints or spoons according to the characteristics of different links or stages. One method is to minimize the assisted feeding path to improve the efficiency of the robot; another method is to plan the speed of robot-assisted feeding to ensure the safety and comfort of the user. The following is the process of selecting different planning methods according to the movement characteristics of the robot joints or spoons at different stages:
[0058] After observing the dining process of a healthy adult in a real scene, it was found that during the entire dining process, the motion trajectories of using a spoon and eating are arcs and straight lines, respectively. In order to enhance the anthropomorphism of the robot in the actual feeding process, in the robot-assisted feeding task planning method provided in this embodiment, a circular motion trajectory is assigned to the motion trajectory of the spoon in the feeding stage, that is, the BC curve is an arc; a straight motion trajectory is assigned to the transition stage and the feeding stage, that is, the CD curve and the DE curve are both straight lines; a curved motion trajectory is assigned to the preparation stage and the two return stages, that is, the AB curve, the EB curve, and the EA curve are all curved. Figure 5 The motion trajectory of the robot end effector planned by the robot-assisted feeding task planning method provided in this embodiment is shown.
[0059] Among them, in the preparation stage represented by the AB curve, the return feeding stage represented by the EB curve, and the return to the initial position stage represented by the EA curve, the robot end effector is a simple point-to-point motion, and there are no special requirements for posture and motion trajectory. Therefore, the robot joint space trajectory planning method can meet the task requirements. In the feeding stage represented by the BC curve, the transition stage represented by the CD curve, and the feeding stage represented by the DE curve, the motion trajectories of the robot end effector are arcs, straight lines, and straight lines, respectively. In these three stages, it is necessary not only to control the path of the end effector, but also to control its speed, so it is necessary to plan the motion trajectory and speed at the same time. That is, this embodiment adopts different and targeted trajectory planning methods for different motion trajectories to improve human-computer interactivity.
[0060] For the AB curve, EB curve and EA curve, the fifth-order polynomial interpolation method is used to obtain the angular displacement expressions of each joint of the robot in the three different curves, and the corresponding angular velocity expressions and angular acceleration expressions are obtained by derivation. This method can effectively avoid the acceleration discontinuity problem caused by the cubic polynomial interpolation method, and the calculation amount is smaller than that of the seventh-order polynomial interpolation method. The specific steps are as follows:
[0061] (1) Suppose the expression of the quintic polynomial is:
[0062] q(t)=a0+a1t+a2t 2 +a3t 3 +a4t 4 +a5t 5
[0063] Where t is time and q is angular displacement. After solving the coefficients, the above formula is the angular displacement expression of each joint of the robot. By taking the first and second derivatives, we can get the angular velocity expressions of each joint of the robot on the spatial trajectory. And the expression of angular acceleration
[0064] (2) The following are the angular displacement q0 and angular velocity of the joint at the starting point of each segment: Angular acceleration and the angular displacement q at the end of each segment f , angular velocity Angular acceleration By substituting the following constraints into the expressions of joint angular displacement, angular velocity and angular acceleration, each coefficient of the quintic polynomial can be solved, thereby obtaining the spatial trajectory planning function based on the quintic polynomial interpolation method.
[0065]
[0066] (3) The coefficients of the fifth-order polynomial are as follows. In this way, the joint space trajectory planning function based on the fifth-order polynomial interpolation method is obtained, namely, the angular displacement expression, angular velocity expression and angular acceleration expression.
[0067]
[0068] The above is the spatial trajectory planning of each joint of the robot when the robot end effector moves in the preparation stage, the return feeding stage and the return to the initial position stage. As important as the spatial trajectory planning of each joint of the robot is the speed planning of the robot end effector. The acceleration is continuous and the transition at the joint is natural so that there will be no jitter and impact. Therefore, for the BC curve, CD curve and DE curve, this embodiment obtains the speed expression, acceleration expression and displacement expression of the robot end effector in three different curves based on the seven-segment S-curve speed planning method, and obtains the angular displacement expression, angular velocity expression and angular acceleration expression of each joint in the robot through the inverse kinematics of the robot. The following are the detailed steps:
[0069] Cartesian space trajectory planning is performed for the movement of the robot end effector in the feeding stage, transition stage and feeding stage, and the equations of the spoon's displacement, velocity and acceleration are derived using the seven-segment S-curve velocity planning method. According to the different speed changes, the movement of the spoon in each stage is divided into seven segments: acceleration segment 0-t1, uniform acceleration segment t1-t2, deceleration segment t2-t3, uniform speed segment t3-t4, acceleration and deceleration segment t4-t5, uniform deceleration segment t5-t6 and deceleration segment t6-t7. In the seven-segment S-curve velocity planning, the initial velocity v0, maximum velocity v max , maximum acceleration a max , joint acceleration J (constant), where the linear velocity of the spoon is v, and the time required from the starting point to the end point is T i , i is the serial number of each segment. The acceleration, velocity and displacement of each stage are as follows:
[0070]
[0071]
[0072] By utilizing the inverse kinematics of the robot, the position of the end effector in each stage is converted into the change of the angle of each joint of the robot in Cartesian space. That is, the angular displacement, angular velocity and angular acceleration of each joint of the robot in each stage can be obtained, so that the robot can be controlled to drive the end effector to move according to the planned path, speed and acceleration.
[0073] According to the motion characteristics of each joint or end effector of the robot in each stage, after planning using different methods, this embodiment also performs MATLAB simulation. After obtaining the coordinates of the five key points, they are introduced into the proposed algorithm program to obtain the overall simulation of the robot's auxiliary feeding trajectory, wherein the spatial trajectory planning method of the preparation stage is the same as that of the return feeding stage and the return initial position stage, and the speed planning of the feeding stage, transition stage and feeding stage is the same. The following only analyzes the changes in the joints of the robot in the preparation stage and transition stage, and the other stages are omitted and will not be repeated:
[0074] The coordinates of point A and point B are obtained through the teach pendant. In the preparation stage, the robot moves from point A (363.6, 59.3, 152) (mm) corresponding to the joint angle [70, -44, -134, 122, 36, -90, -150] to point B (512.6, 289.4, 80.05) (mm) corresponding to the joint angle [137, -46, -170, 107, 49, -73, -79]. The angular velocity and angular acceleration of the starting and ending points are both 0, the time is 2s, the number of interpolation points is 99, and the curves of the angular displacement, angular velocity and angular acceleration of each joint of the robot obtained by quintic polynomial interpolation over time are as follows: Figure 6a , Figure 6b and Figure 6c As shown in the figure, it can be seen that the curves of angular displacement, angular velocity and angular acceleration of each joint of the robot obtained by quintic polynomial interpolation planning are smooth and continuous. Therefore, this method can ensure that the robot runs smoothly in the preparation stage of the assisted feeding task without jitter problems, and meets the requirements of planning space trajectory.
[0075] The robot end effector moves from point C (566.4, 307.9, 63) (mm) to point D (566.4, 307.9, 163) (mm), and its maximum speed and maximum acceleration are set to 0.1m / s and 0.3m / s 2 , with 500 interpolation points, takes 1.5 seconds. The displacement, velocity, and acceleration of the end effector obtained by linear interpolation of seven S-curve segments in Cartesian space are as follows Figures 7a to 7c Using the inverse kinematics of the robot, the position of the end effector is converted into the change of the angle of each joint of the robot in Cartesian space, as shown in Figures 8a to 8c As shown in the figure, it can be seen that in Cartesian space, the position and velocity distribution of the robot end effector obtained by seven-segment S-curve velocity planning are smooth and continuous, and the acceleration is also continuous. Therefore, this method can ensure that the robot moves smoothly during the feeding stage, transition stage, and feeding stage, and meet the auxiliary feeding requirements of the robot for feeding, feeding, etc., which have high requirements on motion trajectory and speed smoothness.
[0076] The above two methods can ensure that the robot moves smoothly in each stage, and the movement at each connection point is smooth and natural, and there will be no vibration and food spilling problems. Therefore, the method proposed in this embodiment can smoothly and efficiently complete the auxiliary feeding task.
[0077] This embodiment also provides a robot-assisted feeding control device, the control device comprising:
[0078] The first acquisition module is used to obtain the coordinate information of five auxiliary feeding key points A, B, C, D, and E; among them, point A is the initial position of the robot's end effector; point B is the preparation point, which is located obliquely above the plate; point C is the feeding point, which is close to the bottom of the plate but not in contact with the plate; point D is the transition point, which is located above the food and directly above point C; point E is the feeding point, which is determined according to the dynamic position of the user's mouth;
[0079] The second acquisition module is used to acquire parameter information of multiple curves; wherein the multiple curves include AB curve, EB curve, EA curve, BC curve, CD curve and DE curve, and the parameter information includes: the initial joint angle, initial speed, maximum speed, maximum acceleration and movement duration of the robot corresponding to each curve;
[0080] A planning module, for planning control parameters of each joint in the robot according to parameter information of each curve; wherein the control parameters include at least one of the following: angular displacement, angular velocity and angular acceleration;
[0081] The execution module is used to control each joint in the robot to operate according to the corresponding control parameters in each curve to complete the feeding task.
[0082] The control device can implement the above-mentioned robot-assisted feeding task planning method, so it has all the advantages of the above-mentioned task planning method, which will not be repeated here.
[0083] This embodiment also provides an auxiliary feeding robot, including a controller and multiple joints. The controller includes a processor and a memory. The memory stores a computer program. When the computer program is executed by the processor, the above-mentioned task planning method is implemented.
[0084] Specifically, in this embodiment, the end effector of the auxiliary feeding robot is a spoon, a fork or chopsticks, and the last joint is provided with a collection device, such as a camera, a camera or a visual sensor, and the collection device is connected to the control device. Fig. 9 As shown, the process of assisted feeding is roughly as follows:
[0085] Get key point coordinate information;
[0086] Arrive at the initial position A;
[0087] Move from point A to point B, and when you reach point B, prepare to eat;
[0088] Move from point B to point C to get food;
[0089] Move from point C to point D, and excess food spills or falls onto the plate;
[0090] At point D, obtain the user's mouth image and determine point E;
[0091] After determining point E, deliver food from point D to point E;
[0092] At point E, after the user has finished eating, it is determined whether the user continues to eat;
[0093] If yes, return to point B and continue feeding; otherwise, return to the initial position point A and end assisted feeding.
[0094] This embodiment also provides a computer-readable storage medium, which stores a computer program. When the computer program is read and executed by a processor, the above-mentioned robot-assisted feeding task planning method can be implemented.
[0095] Finally, it should be noted that, in this article, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device that includes a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.
[0096] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to the embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A robot-assisted feeding task planning method, characterized in that: The steps include: Obtain the coordinate information of the five key points of auxiliary feeding, A, B, C, D, and E; among them, point A is the initial position of the robot's end effector; point B is the preparation point, located obliquely above the plate; point C is the feeding point, close to the bottom of the plate but not touching it; point D is the transition point, located above the food and directly above point C; point E is the feeding point, which is determined according to the dynamic position of the user's mouth; Acquire parameter information of a plurality of curves; wherein the plurality of curves include an AB curve, an EB curve, an EA curve, a BC curve, a CD curve and a DE curve, and the parameter information includes: an initial joint angle, an initial speed, a maximum speed, a maximum acceleration and a motion duration of the robot corresponding to each of the curves; For each curve, the control parameters of each joint in the robot are planned according to the parameter information of the curve; wherein the control parameters include at least one of the following: angular displacement, angular velocity and angular acceleration; Each joint in the robot is controlled to operate according to the corresponding control parameters in each curve to complete the feeding task.
2. The robot-assisted feeding task planning method according to claim 1, characterized in that: The step of planning the control parameters of each joint in the robot according to the parameter information of each curve comprises: For the AB curve, the EB curve and the EA curve, the quintic polynomial interpolation method is used to obtain the angular displacement expressions of each joint of the robot in the three different curves, and the corresponding angular velocity expressions and angular acceleration expressions are derived; wherein, the AB curve is used to characterize the stage in which the robot prepares to take food, the EB curve is used to characterize the stage in which the robot returns to continue taking food after feeding is completed, and the EA curve is used to characterize the stage in which the robot returns to the initial position after feeding is completed.
3. The robot-assisted feeding task planning method according to claim 1, characterized in that: The step of planning the control parameters of each joint in the robot according to the parameter information of each curve comprises: For the BC curve, the CD curve and the DE curve, the velocity expression, acceleration expression and displacement expression of the robot end effector on three different curves are obtained based on the seven-segment S-curve velocity planning method, and then the angular displacement expression, angular velocity expression and angular acceleration expression of each joint in the robot are obtained through the inverse kinematics of the robot; wherein, the BC curve is used to characterize the feeding stage of the robot, the CD curve is used to characterize the transition stage after the robot completes feeding and before feeding, and the DE curve is used to characterize the feeding stage of the robot.
4. The robot-assisted feeding task planning method according to claim 1, characterized in that: The method further comprises: When the robot end effector is located at the point D, acquiring a user's mouth image; The point E is determined according to the YOLO algorithm and the user's mouth image.
5. The robot-assisted feeding task planning method according to claim 4, characterized in that: The method further comprises: When the robot end effector is located at the point E, acquiring the user's mouth image; Determining a mouth state of the user according to the user mouth image; If the mouth is in a closed state, the robot is controlled to end the feeding task.
6. The robot-assisted feeding task planning method according to claim 5, characterized in that: The method further comprises: Determining a change range of the user's mouth position according to a plurality of the user's mouth images; If the change range of the mouth position is greater than a preset range, the robot is controlled to end the feeding task.
7. The robot-assisted feeding task planning method according to claim 1, characterized in that: The point D is at a first set height from the point C, or at a second set height from the bottom of the dinner plate.
8. A robot-assisted feeding control device, characterized in that: The control device comprises: The first acquisition module is used to obtain the coordinate information of five auxiliary feeding key points A, B, C, D, and E; among them, point A is the initial position of the robot's end effector; point B is the preparation point, which is located obliquely above the plate; point C is the feeding point, which is close to the bottom of the plate but not in contact with the plate; point D is the transition point, which is located above the food and directly above point C; point E is the feeding point, which is determined according to the dynamic position of the user's mouth; A second acquisition module is used to acquire parameter information of a plurality of curves; wherein the plurality of curves include an AB curve, an EB curve, an EA curve, a BC curve, a CD curve and a DE curve, and the parameter information includes: an initial joint angle, an initial speed, a maximum speed, a maximum acceleration and a motion duration of the robot corresponding to each of the curves; A planning module, for planning control parameters of each joint in the robot for each curve according to the parameter information of the curve; wherein the control parameters include at least one of the following: angular displacement, angular velocity and angular acceleration; The execution module is used to control each joint in the robot to operate according to the corresponding control parameters in each curve to complete the feeding task.
9. An auxiliary feeding robot, characterized in that: It comprises a controller and a plurality of joints; wherein the controller comprises a processor and a memory, the memory stores a computer program, and when the computer program is executed by the processor, the method as described in any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium, characterized in that: A computer program is stored, and when the computer program is read and executed by a processor, the robot-assisted feeding task planning method according to any one of claims 1 to 7 can be implemented.
Citation Information
Patent Citations
Safety nursing control method for auxiliary feeding of feeding assisting robot based on multi-perception
CN112917475A
Cartesian space trajectory planning method and device
CN115179298A
Mechanical arm trajectory planning method and system with given time and initial and final speeds
CN116277038A
Autonomous meal assisting robot based on active flexibility of joints
CN116494263A
Track planning method and system for assisting feeding through mechanical arm
CN117381784A
Cited By
Accurate positioning control system and method for heavy movable loading and unloading vehicle
CN121433331A
