A real-time path planning method for multi-sensory fusion medical robot

Through the multi-sensory fusion technology of lidar and depth cameras, obstacle avoidance paths can be distinguished and planned in real time, which solves the problem of insufficient path planning accuracy when medical robots face dynamic obstacles, and enables timely and safe delivery of medicines.

CN118534912BActive Publication Date: 2024-09-20SHANXI DIRECTION SIGN INFORMATION TECH CO LTD

Patent Information

Application Number
CN202410996090.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-24
Publication Date
2024-09-20
Estimated Expiration
2044-07-24

AI Technical Summary

Technical Problem

When existing medical robots face dynamic obstacles, their path planning accuracy is not high, resulting in possible collisions or long delivery times, making it impossible to deliver medicines in a timely and safe manner.

Method used

A multi-sensory fusion method combining lidar and depth cameras is used to build a three-dimensional space model in real time, distinguish static and dynamic obstacles, and plan obstacle avoidance paths based on real-time dynamic distance to ensure that medical robots can move safely.

Benefits of technology

It achieves more accurate path planning for medical robots, avoids collisions with dynamic obstacles, and ensures that drugs can be delivered to their destinations in a timely and safe manner.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118534912B
    Figure CN118534912B
Patent Text Reader

Abstract

The present invention relates to the field of robot path planning technology, and specifically to a real-time path planning method for a multi-sensory fusion medical robot. The present invention first performs three-dimensional modeling on the corridor where the medical robot that delivers medicines is located, thereby obtaining a real-time three-dimensional spatial model of the corridor and the real-time position of the medical robot; at the same time, the real-time dynamic distance and safety distance are calculated in combination with the real-time depth image, so that static objects and dynamic objects can be accurately distinguished, thereby providing the medical robot with an accurate active obstacle avoidance path, so that the medical robot can safely and smoothly reach the destination even in the presence of obstacles.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of robot path navigation planning, and in particular to a real-time path planning method for a multi-sensory fusion medical robot. Background Art

[0002] At present, most hospitals usually have medical staff transport patients' belongings to the nurse station in the inpatient department for the patients' treatment. This manual transportation method not only takes up a lot of medical staff's time, but also consumes a lot of their energy, increasing the hospital's personnel and material costs. Therefore, a method that can reduce manual participation is needed to improve this situation.

[0003] As the technology of medical robots for transporting medical supplies becomes increasingly mature, it has been widely used to use certain algorithms to plan an optimal path for medical robots to reach a designated target point or the shortest distance or the shortest time or the smoothest path. When the medical robot moves along the optimal path, it must not hit obstacles in the environment to ensure safe transportation. Among them, the more commonly used algorithm is the fuzzy control algorithm. In the fuzzy control algorithm, the medical robot uses its own sensor and other sensing systems to perceive environmental information such as obstacles. When an obstacle is detected, the robot can avoid it based on previous obstacle avoidance experience, but this obstacle avoidance method is only effective for static obstacle analysis. In the corridors of hospitals, people often walk around in an undirected and irregular manner. For such dynamic obstacles, the mobile path deduced by the fuzzy control algorithm is not accurate enough, resulting in the problem that the medical robot collides with dynamic obstacles or the transportation time is too long due to avoiding dynamic obstacles, resulting in the inability to deliver the medicine to the destination in a timely and safe manner. It can be seen that for dynamic obstacles, the accuracy of the obstacle avoidance path of the medical robot planned by the current path planning method needs to be improved. Summary of the invention

[0004] In order to avoid and overcome the technical problems existing in the prior art, the present invention provides a real-time path planning method for a multi-sensory fusion medical robot. The present invention plans the moving path of the medical robot more accurately, thereby enabling the medical robot to deliver the medicine to the destination in a timely and safe manner.

[0005] To achieve the above object, the present invention provides the following technical solutions:

[0006] A real-time path planning method for a multi-sensory fusion medical robot comprises the following steps:

[0007] S1. Use the laser radar on the medical robot to perform real-time scanning of the corridor where the medical robot is currently located, and build a real-time three-dimensional space model of the corridor, while marking the real-time position of the medical robot in the real-time three-dimensional space model;

[0008] S2. Combined with the real-time three-dimensional space model, the depth camera on the medical robot is used to take real-time photos of the corridor where the medical robot is currently located, and the real-time depth image obtained by the real-time shooting is used to determine the motion state of each object in the corridor, and obtain the real-time dynamic distance between each object and the medical robot;

[0009] S3. Based on the real-time dynamic distance, when the object is a static object, a static obstacle avoidance path is planned at the static object so that the medical robot can bypass the static object and continue to move forward; when the object is a dynamic object, a dynamic obstacle avoidance path is planned at the dynamic object so that the medical robot can continue to move; the medical robot continues to move after passing the static object or the dynamic object along the corresponding obstacle avoidance path;

[0010] S4. According to the contents of step S1 to step S3, all corridors that the medical robot needs to pass through are traversed in sequence until the medical robot reaches the destination.

[0011] As a further solution of the present invention: the specific steps of step S1 are as follows:

[0012] S11. When the medical robot moves along the current moving path, the laser radar is used to continuously emit laser beams and receive signals reflected from the corridor environment, and these signals are converted into point cloud data in three-dimensional space;

[0013] S12, extracting geometric features in the corridor environment from the point cloud data, where the geometric features include corridor walls, corridor floors, and objects in the corridor;

[0014] S13, taking the corridor ground as the XOY plane and the corridor height as the Z axis, establishing a three-dimensional rectangular coordinate system, and then using the extracted geometric features and point cloud data to construct a real-time three-dimensional spatial model of the corridor in the three-dimensional rectangular coordinate system through a three-dimensional modeling algorithm;

[0015] S14. Mark the real-time position of the medical robot in the real-time three-dimensional space model.

[0016] As a further solution of the present invention: after obtaining the real-time three-dimensional spatial model of the corridor, the corridor floor is evenly divided into multiple rectangular grids; after the corridor floor is gridded and before obstacle avoidance is performed, a combination of rectangular grids located in the middle of the corridor floor and arranged along the length direction of the corridor constitutes the initial moving path of the medical robot; and the rectangular grids occupied by static objects and the rectangular grid parts occupied by dynamic objects at the current moment are all black, and the remaining rectangular grids are all blank.

[0017] As a further solution of the present invention: the specific steps of step S3 are as follows:

[0018] S31, after obtaining the real-time three-dimensional spatial model of the corridor, photographing the corridor in real time by using a depth camera to obtain a real-time depth image of the corridor;

[0019] S32, by comparing the real-time depth images of consecutive frames, all static objects in the current corridor are determined using a static object determination criterion; the static object determination criterion is as follows: if an object is in front of the medical robot and the coordinate position of the object in the real-time three-dimensional space model does not change before the medical robot meets the object, the object is a static object;

[0020] S33. After all the static objects in the current corridor are determined, the rectangular grids occupied by each static object are marked in black and the black area is defined as an inaccessible static forbidden area; if the static forbidden area interferes with the initial moving path of the medical robot, the blank rectangular grids at the edge of the static forbidden area are connected and combined into a static obstacle avoidance moving path, and the first and last ends of the static obstacle avoidance moving path are respectively connected to the initial moving paths on both sides of the static forbidden area; along the forward direction of the medical robot, each static obstacle avoidance moving path is sequentially connected to the initial moving path to form a static obstacle avoidance path for the medical robot to avoid all static objects;

[0021] S34, after determining the static object and planning the static obstacle avoidance path, the medical robot moves along the static obstacle avoidance path; then, all dynamic objects in the current corridor are determined using the dynamic object determination criteria; the dynamic object determination criteria are as follows: if an object is in front of the medical robot and before the medical robot encounters the object, the coordinate position of the object in the real-time three-dimensional space model changes continuously or discontinuously, the object is a dynamic object;

[0022] S35. After determining all the dynamic objects in the current corridor, obtain the real-time position of each dynamic object in the real-time three-dimensional space model; then calculate the real-time dynamic distance between the real-time position of each dynamic object and the real-time position of the medical robot moving along the static obstacle avoidance path, and construct a dynamic obstacle avoidance path generated by the medical robot in order to avoid all dynamic objects while moving forward based on the real-time dynamic distance, and enable the medical robot to continue moving along the dynamic obstacle avoidance path.

[0023] As a further solution of the present invention: the process of generating a dynamic obstacle avoidance path is as follows:

[0024] S351. After all static prohibited areas in the current corridor are determined, the corridor floor becomes a black and white area, and the white area is a feasible area; while the medical robot moves forward in the feasible area, it will obtain the corresponding real-time dynamic distance;

[0025] S352, after obtaining the corresponding real-time dynamic distance, determine whether each real-time dynamic distance at the current moment is less than the safety distance; if not, the medical robot continues to move along the static obstacle avoidance path; otherwise, it is necessary to perform the obstacle avoidance action of step S353;

[0026] S353, marking each dynamic object whose current real-time dynamic distance is less than or equal to the safety distance as an obstacle, and moving the medical robot laterally toward the edge of the feasible area that can increase the real-time dynamic distance between the medical robot and each obstacle according to the lateral movement rule;

[0027] When the real-time dynamic distance between the medical robot in lateral movement and all dynamic objects is greater than the safety distance, the medical robot stops lateral movement and continues to move forward along the length direction of the corridor; if the medical robot encounters a static obstacle avoidance path during the process of continuing to move forward, the medical robot continues to move forward along the static obstacle avoidance path;

[0028] When the medical robot in lateral movement reduces the real-time dynamic distance between it and one or more obstacles, the medical robot retreats along the length of the corridor for a set distance and remains stationary. After the real-time dynamic distance between all dynamic objects and the medical robot is greater than the safety distance, the medical robot continues to move forward along the length of the corridor; if the medical robot encounters a static obstacle avoidance path during the process of continuing to move forward, the medical robot continues to move forward along the static obstacle avoidance path;

[0029] S354. The medical robot continues to move forward according to the contents of step S351 to step S353 until the medical robot reaches the destination; in the process of reaching the destination, the lateral moving path generated by the medical robot to avoid dynamic objects, the forward path along the length of the corridor, and the moving path formed by the static obstacle avoidance path are the dynamic obstacle avoidance path.

[0030] As a further solution of the present invention: the process of defining the safe distance is specifically expressed as follows: first, the vertical projection of the medical robot on the corridor floor is obtained, and a circle with the smallest diameter surrounding the vertical projection is obtained, and the circle is recorded as the basic circle; then, the vertical projection of the dynamic object on the corridor floor is obtained, and a circle with the smallest diameter surrounding the vertical projection is obtained, and the circle is recorded as the dynamic circle of the dynamic object; in this way, the dynamic circle corresponding to each dynamic object is obtained; finally, when the dynamic object and the medical robot are close to each other, the shortest distance between the dynamic circle of the dynamic object and the basic circle of the medical robot is the diameter of the dynamic circle of the dynamic object, and the shortest distance is the safe distance between the dynamic object and the medical robot;

[0031] The real-time dynamic distance calculation formula is as follows:

[0032] ;

[0033] Where D(t) represents the real-time dynamic distance between the dynamic object and the medical robot at time t; x0(t) represents the coordinate of the vertical projection point of the basic circle center of the medical robot in the XOY plane on the X-axis at time t; y0(t) represents the coordinate of the vertical projection point of the basic circle center of the medical robot in the XOY plane on the Y-axis at time t; m (t) represents the coordinate of the vertical projection point of the center of the dynamic circle of the dynamic object in the XOY plane on the X axis at time t; y m (t) represents the coordinate of the vertical projection point of the dynamic circle center of the dynamic object in the XOY plane on the Y axis at time t; r0 represents the radius of the basic circle of the medical robot; r m Indicates the radius of the dynamic circle of the dynamic object.

[0034] As a further solution of the present invention: after determining each obstacle, separate each obstacle with a center straight line passing through the center point of the medical robot and along the length direction of the corridor; after separation, respectively determine the number, angle and real-time dynamic distance of obstacles on the left side of the center straight line of the medical robot at the current moment, and the number, angle and real-time dynamic distance of obstacles on the right side of the center straight line of the medical robot at the current moment; then perform corresponding lateral movement according to the lateral movement rule;

[0035] The specific rules for lateral movement are as follows:

[0036] ;

[0037] ;

[0038] Where A(t) represents the lateral displacement coefficient to the right of the center line of the medical robot at time t; R(t) represents the total number of obstacles to the right of the center line of the medical robot at time t; θ R,i (t) represents the angle between the line connecting the center of the dynamic circle of the ith obstacle on the right side of the center line of the medical robot at time t and the center line of the basic circle of the medical robot; D R,i (t) represents the real-time dynamic distance between the medical robot and the ith obstacle on the right side of the center line of the medical robot at time t;

[0039] B(t) represents the lateral displacement coefficient on the left side of the center line of the medical robot at time t; L(t) represents the total number of obstacles on the left side of the center line of the medical robot at time t; θ L,j (t) represents the angle between the line connecting the center of the jth obstacle dynamic circle on the left side of the center line of the medical robot at time t and the center line of the basic circle of the medical robot; D L,j(t) represents the real-time dynamic distance between the medical robot and the j-th obstacle on the left side of the center straight line of the medical robot at time t;

[0040] When the lateral movement coefficient B(t) is greater than the lateral movement coefficient A(t), the medical robot moves laterally to the right; when the lateral movement coefficient B(t) is less than the lateral movement coefficient A(t), the medical robot moves laterally to the left; when the lateral movement coefficient B(t) is equal to the lateral movement coefficient A(t) and the medical robot is on the static obstacle avoidance path at time t, the medical robot randomly moves laterally to the left or right; when the lateral movement coefficient B(t) is equal to the lateral movement coefficient A(t) and the medical robot is outside the static obstacle avoidance path at time t, the medical robot moves laterally to the side close to the static obstacle avoidance path.

[0041] As a further solution of the present invention: in the process of the medical robot avoiding dynamic objects, the shortest lateral distance from the medical robot's base circle to the boundary of the feasible area on the right side of the medical robot is the maximum dynamic circle diameter among all obstacles on the right side of the medical robot at the current moment, and the shortest lateral distance from the medical robot's base circle to the boundary of the feasible area on the left side of the medical robot is the maximum dynamic circle diameter among all obstacles on the left side of the medical robot at the current moment; if there is no obstacle in front of the medical robot at the current moment, the shortest lateral distance from the medical robot's base circle to the boundary of the feasible area on the right or left side of the medical robot is the base circle diameter.

[0042] As a further solution of the present invention: in step S353, the set distance that the medical care robot retreats along the length direction of the corridor is the maximum dynamic circle diameter of all obstacles of the medical care robot at the current moment.

[0043] As a further solution of the present invention: in step S33, when the static prohibited area interferes with the initial moving path of the medical robot, it is first necessary to obtain the position of the static prohibited area in the real-time three-dimensional space model, and then calculate the shortest distance from both sides of the static prohibited area to the corresponding side corridor wall according to the position of the static prohibited area, obtain the maximum value of the two shortest distances by comparison, and generate the static obstacle avoidance moving path in the area corresponding to the maximum value

[0044] Compared with the prior art, the present invention has the following beneficial effects:

[0045] The present invention firstly performs three-dimensional modeling of the corridor where the medical robot transporting medicines is located, so as to obtain a real-time three-dimensional spatial model of the corridor and the real-time position of the medical robot; at the same time, the real-time dynamic distance and the safety distance are calculated in combination with the real-time depth image, so that static objects and dynamic objects can be accurately distinguished, thereby providing the medical robot with an accurate active obstacle avoidance path, enabling the medical robot to reach the destination safely and smoothly even in the presence of obstacles. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] Figure 1 It is the main planning flow chart of the present invention.

[0047] Figure 2 Schematic diagram of part of the initial moving path in the present invention.

[0048] Figure 3 Schematic diagram of some static obstacle avoidance paths in the present invention.

[0049] Figure 4 It is a schematic diagram of the lateral movement process state in the present invention. DETAILED DESCRIPTION

[0050] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0051] See also Figure 1 In the embodiment of the present invention, the main purpose of the medical robot is to accurately, safely and quickly deliver the medicines from the pharmacy to the corresponding nurse station in the inpatient department, and then the medicines will be received by the nurses at the nurse station and used in the treatment of each patient thereafter. The medical robot for transporting medicines of the present invention is mainly composed of an autonomously driven four-wheeled cart, inside which is installed a medicine box that can accommodate various medicines. At the same time, various sensors, depth cameras, and laser radars are also installed on the cart. The laser radar and the corresponding depth camera assist in the planning of the obstacle avoidance path of the medical robot, thereby achieving the purpose of transporting medicines.

[0052] 1. Build a real-time 3D space model.

[0053] When the medical robot is fully loaded with medicine and moves at a set speed in the corridor, the laser radar installed on the medical robot is used to perform 3D modeling of the corridor. The specific process of 3D modeling is as follows:

[0054] S11. When the medical robot just enters the corridor and prepares to move toward the destination along the length of the corridor, the laser radar on the medical robot will continuously emit laser beams and receive signals reflected from the corridor environment, thereby obtaining the distance, shape and position information of the corridor walls, corridor floors, objects in the corridor, etc., and then converting this information into point cloud data in three-dimensional space.

[0055] S12. Extract geometric features in the corridor environment from the point cloud data, where the geometric features include corridor walls, corridor floors, and objects in the corridor. These geometric features are described by basic geometric models, such as planes, spheres, cylinders, and the like.

[0056] S13. Using the extracted geometric features and point cloud data, a real-time three-dimensional spatial model of the corridor is constructed through a three-dimensional modeling algorithm (such as NeRF, multi-layer perceptron MLP, etc.). The real-time three-dimensional spatial model can accurately reflect the spatial structure and layout of the corridor where the medical robot is currently moving. Since the medical robot is in a moving state, the laser radar performs real-time scanning during the movement process, and then continuously completes the real-time three-dimensional spatial model of the corridor corresponding to the entire movement process of the medical robot.

[0057] S14, marking the real-time position of the medical robot in the constructed real-time three-dimensional space model. Since the medical robot is in a moving state, the position of the medical robot in the real-time three-dimensional space model also changes in real time.

[0058] 2. Construct a feasible area.

[0059] After obtaining the real-time three-dimensional spatial model of the corridor, the corridor floor is evenly divided into multiple rectangular grids. The purpose of grid division is to obtain the position of the vertical projection of each static object on the corridor floor, and to divide the corridor floor into feasible areas and prohibited areas according to the position of the static objects. The rectangular grids occupied by static objects and the rectangular grids occupied by dynamic objects at the current moment are both black, and the remaining rectangular grids are blank. In this way, the impact of static objects can be reduced in the early stage of the movement of the medical robot, and the interference of static objects can be reduced, so that there are fewer external factors in the later analysis, thereby improving the accuracy of obstacle avoidance path planning.

[0060] After the corridor floor is gridded and before dynamic obstacle avoidance is performed, the combination of rectangular grids arranged in the middle of the corridor floor along the length of the corridor constitutes the initial movement path of the medical robot, which means that the medical robot will move along the middle of the corridor without any interference from obstacles. This is mainly because there are often some patients and their families walking on both sides of the corridor, and the medical robot is prevented from colliding with them. In this way, the initial movement path of the medical robot in the entire real-time three-dimensional space model can be obtained. Figure 2 Shown is part of the initial movement path in the corridor. Figure 2 The black vertical lines on both sides of the corridor are the vertical projections of the corridor walls on the corridor floor. The cross-sectional squares represent the medical robots moving along the corridor. Figure 2 Move in the direction of the arrow in the figure, and the path corresponding to the arrow is the initial moving path.

[0061] After obtaining the real-time three-dimensional spatial model of the corridor, the corridor is photographed in real time by a depth camera to obtain a real-time depth image of the corridor. Then, by comparing the real-time depth images of consecutive frames, all static objects in the corridor are determined. The criteria for judging static objects are as follows: the object is in front of the medical robot, and before the medical robot meets the object, the coordinate position of the object in the real-time three-dimensional spatial model has never changed, and the object is a static object. That is, during the period before the medical robot moves to the static object, no matter how the medical robot moves, the coordinate position of the static object in the real-time three-dimensional spatial model will not change. After determining the various static objects in the current corridor, the area occupied by the static object is marked in black and defined as a static prohibited area; the remaining areas not occupied by static objects are marked in white and defined as feasible areas.

[0062] After the static forbidden area is divided, if the static forbidden area interferes with the initial moving path of the medical robot, the blank rectangular grids at the edge of the static forbidden area are connected and combined into a static obstacle avoidance moving path, and the first and last ends of the static obstacle avoidance moving path are respectively connected with the initial moving paths on both sides of the static forbidden area. If the static forbidden area and the initial moving path do not interfere with each other, the medical robot in the feasible area still moves along the initial moving path. Along the forward direction of the medical robot, each static obstacle avoidance moving path is connected to the initial moving path in sequence to form a static obstacle avoidance path for the medical robot to avoid all static objects. When the static forbidden area interferes with the initial moving path of the medical robot, it is first necessary to obtain the position of the static forbidden area in the real-time three-dimensional space model, and then calculate the shortest distance from both sides of the static forbidden area to the corresponding side corridor wall according to the position of the static forbidden area, obtain the maximum value of the two shortest distances by comparison, and generate the static obstacle avoidance moving path in the area corresponding to the maximum value.

[0063] like Figure 3 As shown, in Figure 2 On the basis of Figure 3 The black area in the figure represents a static object, and the black ellipse and black rectangle represent static objects of different shapes. Figure 3 The curved arrow in the figure represents the static obstacle avoidance moving path, and the straight arrow represents the initial moving path. Figure 3 It can be seen that the original entire initial moving path is divided into segments by static objects. Each segment of the static obstacle avoidance moving path and each segment of the initial moving path are connected end to end to form a static obstacle avoidance path. Figure 3 It can be seen that the static obstacle avoidance path is a curve with straight lines and curves arranged alternately. Figure 3 Moving along a static obstacle avoidance path.

[0064] During the movement of the medical robot, in the stage without obstacles, the shortest lateral distance from the basic circle of the medical robot to the boundary of the feasible area on the right or left side of the medical robot is the diameter of the basic circle. In the stage with obstacles, that is, in the process of the medical robot avoiding dynamic objects, the shortest lateral distance from the basic circle of the medical robot to the boundary of the feasible area on the right side of the medical robot is the maximum dynamic circle diameter among all obstacles on the right side of the medical robot at the current moment, and the shortest lateral distance from the basic circle of the medical robot to the boundary of the feasible area on the left side of the medical robot is the maximum dynamic circle diameter among all obstacles on the left side of the medical robot at the current moment. The shortest lateral distance is set so that when the medical robot stops, the dynamic object can also pass by the side of the medical robot. At the same time, the lateral distance here can also be greater than the shortest lateral distance, so that the dynamic object will not rub against the medical robot and the corresponding feasible area edge when passing through them, and can effectively avoid collision. The diameters of each dynamic circle and basic circle, as well as the coordinates of the plumb projection point of the corresponding center of the circle on the XOY plane can be obtained through the detection of the laser radar.

[0065] After obtaining the feasible area, if the lateral distance between the feasible areas, that is, the distance along the width of the corridor in the feasible area, is less than three times the diameter of the basic circle, the medical robot will sound an alarm and notify the medical staff to remove the static object that caused the problem. At this time, the static object is converted into a dynamic object, and then it is analyzed according to the analysis method of the dynamic object.

[0066] 3. Build a dynamic obstacle avoidance path.

[0067] After the static objects are identified and the static obstacle avoidance path is planned, the medical robot moves forward along the static obstacle avoidance path. Then, the dynamic object judgment criteria are used to identify all dynamic objects in the current corridor. The dynamic object judgment criteria are as follows: if an object is in front of the medical robot and the coordinate position of the object in the real-time three-dimensional space model changes continuously or discontinuously before the medical robot encounters the object, the object is a dynamic object.

[0068] After determining that the object is a dynamic object, the real-time dynamic distance between each dynamic object and the medical robot is obtained through the real-time depth image in combination with the real-time dynamic distance calculation formula, and each dynamic object marker whose real-time dynamic distance is less than the safety distance at the current moment is recorded as an obstacle. The dynamic obstacle avoidance path generated by the medical robot in order to avoid all dynamic objects while moving forward is constructed based on the real-time dynamic distance, and the medical robot continues to move forward along the generated dynamic obstacle avoidance path.

[0069] After all the static prohibited areas are determined, the corridor floor becomes a black and white area, with the white area being the feasible area; while the medical robot moves forward in the feasible area, it obtains the corresponding real-time dynamic distance.

[0070] After obtaining the corresponding real-time dynamic distance, it is determined whether the real-time dynamic distances at the current moment are less than the safety distance; if not, the medical robot continues to move along the static obstacle avoidance path; otherwise, obstacle avoidance action is required.

[0071] The process of defining the safe distance is specifically expressed as follows: First, obtain the plumb projection of the medical robot on the corridor floor, and obtain a circle with the smallest diameter surrounding the plumb projection, and record the circle as the basic circle. Then obtain the plumb projection of the dynamic object on the corridor floor, and obtain a circle with the smallest diameter surrounding the plumb projection, and record the circle as the dynamic circle, so as to obtain the dynamic circle corresponding to each dynamic object. Finally, when the dynamic object and the medical robot are close to each other, the shortest distance between the dynamic circle of the dynamic object and the basic circle of the medical robot is the dynamic circle diameter of the dynamic object, and the shortest distance is the safe distance between the dynamic object and the medical robot. The setting of the safe distance is to avoid collision between the medical robot and the dynamic object due to the small real-time dynamic distance. The circle division method is adopted because in the corridor of the inpatient department, there are usually people, medical staff's carts, etc. moving, and the shapes of these dynamic objects are relatively regular, so they can be regarded as cylindrical structures, and then the distance between the two is characterized by the projection circle.

[0072] Each dynamic object whose current real-time dynamic distance is less than or equal to the safety distance is recorded as an obstacle, and the medical robot is moved laterally to the edge of the feasible area where the real-time dynamic distance between the medical robot and each obstacle can be increased. When the real-time dynamic distance between the medical robot in lateral movement and all dynamic objects is greater than the safety distance, it is in a safe state. The medical robot can stop lateral movement and continue to move forward along the length of the corridor. If it encounters a static obstacle avoidance path during the forward movement, the medical robot continues to move along the static obstacle avoidance path. In this way, the medical robot can move according to the previously planned static obstacle avoidance path, thereby improving the reliability and stability of the medical robot's moving path, so that the medical robot will not produce an irregular moving trajectory when facing dynamic objects.

[0073] After determining each obstacle, separate each obstacle with a center straight line passing through the center point of the medical robot and along the length of the corridor; after separation, determine the number, angle and real-time dynamic distance of obstacles on the left side of the center straight line of the medical robot at the current moment, as well as the number, angle and real-time dynamic distance of obstacles on the right side of the center straight line of the medical robot at the current moment; then perform corresponding lateral movement according to the lateral movement rules.

[0074] The specific rules for lateral movement are as follows:

[0075] ; ;

[0076] When the lateral displacement coefficient B(t) is greater than the lateral displacement coefficient A(t), the medical robot moves laterally to the right; when the lateral displacement coefficient B(t) is less than the lateral displacement coefficient A(t), the medical robot moves laterally to the left; when the lateral displacement coefficient B(t) is equal to the lateral displacement coefficient A(t) and the medical robot is located on the static obstacle avoidance path at time t, the medical robot randomly moves laterally to the left or right; when the lateral displacement coefficient B(t) is equal to the lateral displacement coefficient A(t) and the medical robot is located outside the static obstacle avoidance path at time t, the medical robot moves laterally to the side close to the static obstacle avoidance path. In the above calculation formula, the real-time dynamic distance indicates the distance between the medical robot and the obstacle. The smaller the distance, the greater the risk factor. When the obstacles on one side of the medical robot are getting closer and closer to the medical robot and the number of obstacles is increasing, the risk factor increases accordingly. The angle represents the dispersion of the obstacles. The more dispersed, the more uncertain the movement direction of the dynamic object, and the risk factor will be relatively large. Therefore, the medical robot will avoid it first, so the cosine value is used to indicate the importance of the angle. The lateral movement coefficient is actually a comprehensive representation of the risk factor. The larger it is, the more dangerous it is and the more it should be avoided. Therefore, the medical robot will preferentially move to the side with a smaller lateral movement coefficient.

[0077] like Figure 4 , is an embodiment of the transverse shifting process of the present invention, Figure 4 1, 2, 3, 4 and 5 represent five different pedestrians, including adults and children, and the diameters of the dynamic circles are different. The diameters of adults are relatively larger and those of children are relatively smaller. At this time, the medical robot is located in the middle of the corridor. The thick black lines on both sides represent the corridor walls, and the thin black line between the two thick black lines is the center line of the medical robot. If the center of the dynamic circle is on the left side of the center line, it means that the dynamic object corresponding to the dynamic circle is on the left side of the center line. If the center of the dynamic circle is on the right side of the center line, it means that the dynamic object corresponding to the dynamic circle is on the right side of the center line. When the center of the dynamic circle is on the center line, the dynamic object corresponding to the dynamic circle is divided into both sides of the center line at the same time. Figure 3 The circles in the figure represent the dynamic circles and the basic circles, where the medical robot is represented by 0, 1 and 2 are located on the left side of the center line of the medical robot, and 3, 4 and 5 are all located on the right side of the center line of the medical robot. The specific data are shown in Table 1.

[0078] Table 1 Dynamic object parameters

[0079]

[0080] According to the data in Table 1, combined with the calculation formula of the lateral displacement coefficient, A is calculated to be 1.7134 and B is 1.2826, which shows that the medical robot will move to the left. Figure 4 It can also be seen that the medical robot has a tendency to move to the left in the current scenario.

[0081] The above lateral movement process reflects that in the process of selecting the lateral movement direction, try to avoid moving to the side with more obstacles. Because dynamic objects usually move along the two sides of the corridor when moving in the corridor, the medical robot moves to the side with fewer obstacles, adhering to the principle of giving way to the side with more people, so as to quickly clear the obstacles, increase the movement speed of the medical robot, and reduce the time of drug delivery.

[0082] When the medical robot in lateral movement reduces the real-time dynamic distance between one or more obstacles, it means that the medical robot cannot increase the corresponding real-time dynamic distance no matter how it moves horizontally. Therefore, it can only start to reverse when the reversing prompt is turned on. That is, the medical robot retreats along the length of the corridor for a set distance and remains stationary to allow dynamic objects to pass. The set distance is the maximum dynamic circle diameter among all obstacles of the medical robot at the current moment. Of course, the specific set distance and the direction of retreat in the actual retreat process will depend on the situation, but the preferred set distance is the above-mentioned maximum dynamic circle diameter, and the retreat direction is along the length of the corridor. After the real-time dynamic distance between all dynamic objects and the medical robot is greater than the safe distance, the medical robot starts to start again and continues to move forward along the length of the corridor. If the static obstacle avoidance path is encountered during the forward movement, the medical robot will also continue to move forward along the static obstacle avoidance path.

[0083] The medical robot continues to move in the above-mentioned manner of avoiding dynamic objects until the medical robot reaches the destination. In the process of reaching the destination, the moving path formed by the combination of the lateral moving path, the forward path, and the static obstacle avoidance path generated by the medical robot to avoid dynamic objects is the dynamic obstacle avoidance path.

[0084] During the entire process of the medical robot delivering medicines, since there are different corridors, when analyzing static objects, a single corridor can be used as the analysis unit, or all corridors can be used as the analysis unit, but they are ultimately integrated into the same real-time three-dimensional space model. Similarly, the analysis of dynamic objects can also be a single corridor, or of course all corridors. The present invention first performs three-dimensional modeling on the corridor where the medical robot that delivers medicines is located, so as to obtain a real-time three-dimensional space model of the corridor and the real-time position of the medical robot; at the same time, the real-time dynamic distance and safety distance are calculated in combination with the real-time depth image, so that static objects and dynamic objects can be accurately distinguished, thereby providing the medical robot with an accurate active obstacle avoidance path, enabling the medical robot to reach its destination safely and smoothly even in the presence of obstacles.

[0085] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can make equivalent replacements or changes according to the technical scheme and inventive concept of the present invention within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.

Claims

1. A real-time path planning method for a multi-sensory fusion medical robot, characterized in that: The following steps are involved: S1. Use the laser radar on the medical robot to perform real-time scanning of the corridor where the medical robot is currently located, and build a real-time three-dimensional space model of the corridor, while marking the real-time position of the medical robot in the real-time three-dimensional space model; S2. Combined with the real-time three-dimensional space model, the depth camera on the medical robot is used to take real-time photos of the corridor where the medical robot is currently located, and the real-time depth image obtained by the real-time shooting is used to determine the motion state of each object in the corridor, and obtain the real-time dynamic distance between each object and the medical robot; S3. Based on the real-time dynamic distance, when the object is a static object, a static obstacle avoidance path is planned at the static object so that the medical robot can bypass the static object and continue to move forward; When the object is a dynamic object, a dynamic obstacle avoidance path is planned at the dynamic object so as to avoid the dynamic object and allow the medical robot to continue to move; the medical robot continues to move after passing the static object or the dynamic object along the corresponding obstacle avoidance path; S4, traversing all corridors that the medical robot needs to pass through in sequence according to the contents of steps S1 to S3 until the medical robot reaches the destination; The specific steps of step S1 are as follows: S11. When the medical robot moves along the current moving path, the laser radar is used to continuously emit laser beams and receive signals reflected from the corridor environment, and these signals are converted into point cloud data in three-dimensional space; S12, extracting geometric features in the corridor environment from the point cloud data, where the geometric features include corridor walls, corridor floors, and objects in the corridor; S13, taking the corridor ground as the XOY plane and the corridor height as the Z axis, establishing a three-dimensional rectangular coordinate system, and then using the extracted geometric features and point cloud data to construct a real-time three-dimensional spatial model of the corridor in the three-dimensional rectangular coordinate system through a three-dimensional modeling algorithm; S14, marking the real-time position of the medical robot in the real-time three-dimensional space model; After obtaining the real-time three-dimensional spatial model of the corridor, the corridor floor is evenly divided into multiple rectangular grids; after the corridor floor is gridded and before obstacle avoidance is performed, the combination of rectangular grids arranged in the middle of the corridor floor along the length direction of the corridor constitutes the initial moving path of the medical robot; and the rectangular grids occupied by static objects and the rectangular grids occupied by dynamic objects at the current moment are all black, and the remaining rectangular grids are all blank; The specific steps of step S3 are as follows: S31, after obtaining the real-time three-dimensional spatial model of the corridor, photographing the corridor in real time by using a depth camera to obtain a real-time depth image of the corridor; S32, by comparing the real-time depth images of consecutive frames, all static objects in the current corridor are determined using a static object determination criterion; the static object determination criterion is as follows: if an object is in front of the medical robot and the coordinate position of the object in the real-time three-dimensional space model does not change before the medical robot meets the object, the object is a static object; S33. After all the static objects in the current corridor are determined, the rectangular grids occupied by each static object are marked in black and the black area is defined as an inaccessible static forbidden area; if the static forbidden area interferes with the initial moving path of the medical robot, the blank rectangular grids at the edge of the static forbidden area are connected and combined into a static obstacle avoidance moving path, and the first and last ends of the static obstacle avoidance moving path are respectively connected to the initial moving paths on both sides of the static forbidden area; along the forward direction of the medical robot, each static obstacle avoidance moving path is sequentially connected to the initial moving path to form a static obstacle avoidance path for the medical robot to avoid all static objects; S34, after determining the static object and planning the static obstacle avoidance path, the medical robot moves along the static obstacle avoidance path; then, all dynamic objects in the current corridor are determined using the dynamic object determination criteria; the dynamic object determination criteria are as follows: if an object is in front of the medical robot and before the medical robot encounters the object, the coordinate position of the object in the real-time three-dimensional space model changes continuously or discontinuously, the object is a dynamic object; S35. After determining all dynamic objects in the current corridor, obtain the real-time position of each dynamic object in the real-time three-dimensional space model; then calculate the real-time dynamic distance between the real-time position of each dynamic object and the real-time position of the medical robot moving along the static obstacle avoidance path, and construct a dynamic obstacle avoidance path generated by the medical robot in order to avoid all dynamic objects while moving forward according to the real-time dynamic distance, and make the medical robot continue to move forward along the dynamic obstacle avoidance path; The process of generating a dynamic obstacle avoidance path is as follows: S351. After all static prohibited areas in the current corridor are determined, the corridor floor becomes a black and white area, and the white area is a feasible area; while the medical robot moves forward in the feasible area, it will obtain the corresponding real-time dynamic distance; S352, after obtaining the corresponding real-time dynamic distance, determine whether each real-time dynamic distance at the current moment is less than the safety distance; if not, the medical robot continues to move along the static obstacle avoidance path; otherwise, it is necessary to perform the obstacle avoidance action of step S353; S353, marking each dynamic object whose current real-time dynamic distance is less than or equal to the safety distance as an obstacle, and moving the medical robot laterally toward the edge of the feasible area that can increase the real-time dynamic distance between the medical robot and each obstacle according to the lateral movement rule; When the real-time dynamic distance between the medical robot in lateral movement and all dynamic objects is greater than the safety distance, the medical robot stops lateral movement and continues to move forward along the length direction of the corridor; if the medical robot encounters a static obstacle avoidance path during the process of continuing to move forward, the medical robot continues to move forward along the static obstacle avoidance path; When the medical robot in lateral movement reduces the real-time dynamic distance between it and one or more obstacles, the medical robot retreats along the length of the corridor for a set distance and remains stationary. After the real-time dynamic distance between all dynamic objects and the medical robot is greater than the safety distance, the medical robot continues to move forward along the length of the corridor; if the medical robot encounters a static obstacle avoidance path during the process of continuing to move forward, the medical robot continues to move forward along the static obstacle avoidance path; S354, the medical robot continues to move forward according to the contents of step S351 to step S353 until the medical robot reaches the destination; in the process of reaching the destination, the moving path formed by the combination of the lateral moving path generated by the medical robot to avoid dynamic objects, the forward path along the length direction of the corridor, and the static obstacle avoidance path is the dynamic obstacle avoidance path; The process of defining the safe distance is specifically expressed as follows: first, the vertical projection of the medical robot on the corridor floor is obtained, and a circle with the smallest diameter surrounding the vertical projection is obtained, and the circle is recorded as the basic circle; then, the vertical projection of the dynamic object on the corridor floor is obtained, and a circle with the smallest diameter surrounding the vertical projection is obtained, and the circle is recorded as the dynamic circle of the dynamic object; in this way, the dynamic circle corresponding to each dynamic object is obtained; finally, when the dynamic object and the medical robot are close to each other, the shortest distance between the dynamic circle of the dynamic object and the basic circle of the medical robot is the diameter of the dynamic circle of the dynamic object, and the shortest distance is the safe distance between the dynamic object and the medical robot; The real-time dynamic distance calculation formula is as follows: ; Where D(t) represents the real-time dynamic distance between the dynamic object and the medical robot at time t; x0(t) represents the coordinate of the vertical projection point of the basic circle center of the medical robot in the XOY plane on the X-axis at time t; y0(t) represents the coordinate of the vertical projection point of the basic circle center of the medical robot in the XOY plane on the Y-axis at time t; m (t) represents the coordinate of the vertical projection point of the center of the dynamic circle of the dynamic object in the XOY plane on the X axis at time t; y m (t) represents the coordinate of the vertical projection point of the dynamic circle center of the dynamic object in the XOY plane on the Y axis at time t; r0 represents the radius of the basic circle of the medical robot; r m Indicates the radius of the dynamic circle of the dynamic object; After determining each obstacle, separate each obstacle with a center straight line passing through the center point of the medical robot and along the length of the corridor; after separation, determine the number, angle, and real-time dynamic distance of obstacles on the left side of the center straight line of the medical robot at the current moment, and the number, angle, and real-time dynamic distance of obstacles on the right side of the center straight line of the medical robot at the current moment; then perform corresponding lateral movement according to the lateral movement rule; The specific rules for lateral movement are as follows: ; ; Where A(t) represents the lateral displacement coefficient to the right of the center line of the medical robot at time t; R(t) represents the total number of obstacles to the right of the center line of the medical robot at time t; θ R,i (t) represents the angle between the line connecting the center of the dynamic circle of the ith obstacle on the right side of the center line of the medical robot at time t and the center line of the basic circle of the medical robot; D R,i (t) represents the real-time dynamic distance between the medical robot and the ith obstacle on the right side of the center line of the medical robot at time t; B(t) represents the lateral displacement coefficient on the left side of the center line of the medical robot at time t; L(t) represents the total number of obstacles on the left side of the center line of the medical robot at time t; θ L,j (t) represents the angle between the line connecting the center of the jth obstacle dynamic circle on the left side of the center line of the medical robot at time t and the center line of the basic circle of the medical robot; D L,j (t) represents the real-time dynamic distance between the medical robot and the j-th obstacle on the left side of the center line of the medical robot at time t; When the lateral movement coefficient B(t) is greater than the lateral movement coefficient A(t), the medical robot moves laterally to the right; when the lateral movement coefficient B(t) is less than the lateral movement coefficient A(t), the medical robot moves laterally to the left; when the lateral movement coefficient B(t) is equal to the lateral movement coefficient A(t) and the medical robot is on the static obstacle avoidance path at time t, the medical robot randomly moves laterally to the left or right; when the lateral movement coefficient B(t) is equal to the lateral movement coefficient A(t) and the medical robot is outside the static obstacle avoidance path at time t, the medical robot moves laterally to the side close to the static obstacle avoidance path.

2. A real-time path planning method for a multi-sensory fusion medical robot according to claim 1, characterized in that: When the medical robot is avoiding dynamic objects, the shortest lateral distance from the medical robot's base circle to the boundary of the feasible area on the right side of the medical robot is the maximum dynamic circle diameter among all obstacles on the right side of the medical robot at the current moment, and the shortest lateral distance from the medical robot's base circle to the boundary of the feasible area on the left side of the medical robot is the maximum dynamic circle diameter among all obstacles on the left side of the medical robot at the current moment; if there is no obstacle in front of the medical robot at the current moment, the shortest lateral distance from the medical robot's base circle to the boundary of the feasible area on the right or left side of the medical robot is the base circle diameter.

3. A real-time path planning method for a multi-sensory fusion medical robot according to claim 2, characterized in that: In step S353, the set distance that the medical care robot retreats along the length direction of the corridor is the maximum dynamic circle diameter of all obstacles of the medical care robot at the current moment.

4. A real-time path planning method for a multi-sensory fusion medical robot according to claim 1, characterized in that: In step S33, when the static no-entry area interferes with the initial moving path of the medical robot, it is first necessary to obtain the position of the static no-entry area in the real-time three-dimensional space model, and then calculate the shortest distance from both sides of the static no-entry area to the corresponding side corridor wall according to the position of the static no-entry area. The maximum value of the two shortest distances is obtained by comparison, and the static obstacle avoidance moving path is generated in the area corresponding to the maximum value.

Citation Information

Patent Citations

  • Office building goods delivery control method and device, and computer readable storing medium

    CN109324615A

  • Disclosed is substation equipment state monitoring panoramic analysis system

    CN110610542A

  • Autonomous obstacle avoidance and path planning method and system for automatic cruise electric sickbed

    CN110908371A

  • Robot system and path planning method thereof

    CN112859860A

  • Wheelchair autonomous movement method in hospital scene and wheelchair robot

    CN115167482A

Cited By

  • Robot obstacle avoidance inspection system based on visual monitoring

    CN119596952A