Robot forward path planning method, device and storage medium
By combining cameras and lidar to obtain the attributes and motion information of obstacles in the unmanned delivery robot, the path can be re-planned, which solves the problem of inaccurate path planning when the unmanned delivery robot encounters obstacles, and improves safety and efficiency.
Patent Information
- Application Number
- CN202011019495.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-24
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2040-09-24
AI Technical Summary
It is difficult for existing unmanned delivery robots to accurately identify the status of obstacles when encountering them, resulting in inaccurate walking path planning, poor safety, and low delivery efficiency.
Combined with the robot's preset camera and lidar, the attribute information and operation information of the obstacles are obtained in the preset scene recognition mode, and the type, identification number, motion parameters and motion information of the obstacles are extracted through information fusion processing, and the robot's movement parameters are re-planned. path forward.
It achieves accurate identification of obstacles and path planning, improves the safety and delivery efficiency of the robot when walking outdoors, and avoids collisions and traffic accidents.
Smart Images

Figure CN112363494B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence, and in particular to a method, device and storage medium for planning a robot's forward path. Background Art
[0002] With the rapid development of robots, the use of outdoor unmanned delivery robots is becoming more and more widespread. At present, unmanned delivery robots often encounter obstacles such as pedestrians and traffic that hinder delivery during operation. When encountering obstacles, existing unmanned delivery robots directly identify the obstacles through cameras. However, it is difficult to accurately obtain the status of the obstacles by only identifying the obstacles through cameras, which makes it difficult for outdoor unmanned delivery robots to accurately plan their walking paths, resulting in low delivery efficiency and even causing traffic accidents. In other words, there are technical problems of poor safety and low delivery efficiency in the existing robot material delivery process.
[0003] The above contents are only used to assist in understanding the technical solution of the present invention and do not constitute an admission that the above contents are prior art. Summary of the invention
[0004] The main purpose of the present invention is to provide a method for planning a robot's forward path, aiming to solve the technical problems of poor safety and low distribution efficiency in the existing robot material distribution process.
[0005] To achieve the above object, the present invention provides a method for planning a robot's forward path, which is applied to the robot. The method for planning the robot's forward path includes:
[0006] When the robot is in a preset scene recognition mode, combining the preset camera and preset laser radar of the robot to obtain the attribute information and operation information of the obstacle in the preset scene recognition mode;
[0007] According to the attribute information and operation information of the obstacle, the forward path of the robot is planned to obtain a target planned path.
[0008] Optionally, when the robot is in a preset scene recognition mode, the step of obtaining the attribute information and operation information of the obstacle in the preset scene recognition mode in combination with a preset camera and a preset laser radar of the robot includes:
[0009] When the robot is in a preset scene recognition mode, the preset camera and the preset laser radar are used to respectively collect image information of different scenes in the preset scene recognition mode;
[0010] Performing information fusion processing on the different scene image information to obtain scene image data in the preset scene recognition mode;
[0011] According to the scene image data, attribute information and operation information of the obstacle are extracted.
[0012] Optionally, the preset scene recognition mode includes an obstacle scene mode, and the attribute information includes a type and an identification number of the obstacle;
[0013] The step of obtaining the attribute information and operation information of the obstacle in the preset scene recognition mode by combining the preset camera and the preset laser radar of the robot when the robot is in the preset scene recognition mode comprises:
[0014] When the robot is in the obstacle scene mode, collecting scene image data of the robot through a preset camera of the robot;
[0015] Extracting the type of the obstacle and the identification number of the obstacle from the scene image data of the robot, and extracting the motion parameters of the obstacle;
[0016] Identify the contour information of the obstacle by using the preset laser radar, and determine the motion information of the obstacle based on the contour information that changes in different time periods;
[0017] The motion parameters of the obstacle and the motion information of the obstacle are integrated to obtain the movement information of the obstacle.
[0018] Optionally, the motion parameter of the obstacle includes a motion direction of the obstacle, and the step of extracting the motion parameter of the obstacle includes:
[0019] Determining a scene road based on the scene image data, and determining a contact point between the obstacle and the scene road;
[0020] Based on the scene image data, determine the projection height of the obstacle on the scene image and the installation height of the preset camera from the scene road, and determine the imaging distance of the preset camera to obtain the relative distance from the obstacle to the preset camera;
[0021] Obtaining the relative coordinates of the obstacle according to the relative distance and the calibration parameters of the preset camera;
[0022] The relative coordinates of the obstacle are tracked to determine the moving direction of the obstacle.
[0023] Optionally, the movement information of the obstacle includes a movement trajectory and a movement speed of the obstacle, and the step of identifying the contour information of the obstacle by the preset laser radar and determining the movement information of the obstacle based on the contour information that changes in different time periods includes:
[0024] By using the preset laser radar, the outline of the obstacle is identified to obtain the outline information of the obstacle, and the center of mass of the obstacle is determined according to the outline information of the obstacle;
[0025] The position change of the center of mass of the obstacle in different time periods is obtained, the movement trajectory and movement speed of the obstacle are determined, and the movement information of the obstacle is obtained.
[0026] Optionally, the step of extracting the type of the obstacle and the identification number of the obstacle from the scene image data of the robot comprises:
[0027] Comparing scene images of two adjacent frames in the scene image data to obtain obstacles in the scene image, encoding each obstacle to obtain an identification number of the obstacle;
[0028] Acquire image information of the obstacle, perform feature extraction processing on the image information according to a preset training model, and obtain the type of the obstacle;
[0029] The preset training model is a target model obtained by iteratively training a preset basic model based on obstacle data with preset type labels.
[0030] Optionally, the step of planning the forward path of the robot according to the attribute information and operation information of the obstacle to obtain a target planned path includes:
[0031] Obtain destination information, plan the forward path according to the destination information, and obtain the initial path;
[0032] The initial path is replanned and adjusted according to the attribute information and operation information of the obstacle to obtain a target planned path.
[0033] Optionally, the step of replanning and adjusting the initial path according to the attribute information and operation information of the obstacle to obtain a target planned path includes:
[0034] Obtaining obstacles moving in the surrounding environment according to the attribute information and operation information of the obstacles, and determining the approach state of the moving obstacles;
[0035] According to the approach state of the moving obstacle, determining the stopping area, acceleration area, deceleration area, detour area and straight-line driving area of the robot, and obtaining a forward strategy;
[0036] According to the forward strategy, the initial path is replanned and adjusted to obtain a target planned path.
[0037] In addition, to achieve the above-mentioned purpose, the present invention further provides a robot forward path planning device, the robot path planning device comprising:
[0038] A scene recognition module, used to obtain the attribute information and operation information of the obstacles in the preset scene recognition mode by combining the preset camera and preset laser radar of the robot when the robot is in the preset scene recognition mode;
[0039] The path planning module is used to plan the forward path of the robot according to the attribute information and operation information of the obstacle to obtain a target planned path.
[0040] Optionally, the scene recognition module includes:
[0041] An image information acquisition unit, used to respectively acquire different scene image information in the preset scene recognition mode by using the preset camera and the preset laser radar when the robot is in the preset scene recognition mode;
[0042] An information fusion processing unit, configured to obtain scene image data in the preset scene recognition mode by performing information fusion processing on the different scene image information;
[0043] The information extraction unit is used to extract the attribute information and operation information of the obstacle according to the scene image data.
[0044] Optionally, the scene recognition module further includes:
[0045] A data extraction unit, used to extract the type of the obstacle and the identification number of the obstacle from the scene image data of the robot, and extract the motion parameters of the obstacle;
[0046] A motion information extraction unit, configured to identify the contour information of the obstacle through the preset laser radar, and determine the motion information of the obstacle based on the contour information that changes in different time periods;
[0047] The data integration unit is used to integrate the motion parameters of the obstacle and the motion information of the obstacle to obtain the operation information of the obstacle.
[0048] Optionally, the scene recognition module further includes:
[0049] a contact point determination unit, configured to determine a scene road based on the scene image data, and determine a contact point between the obstacle and the scene road;
[0050] A relative distance determination unit, configured to determine, based on the scene image data, a projection height of the obstacle on the scene image and an installation height of the preset camera from the scene road, and determine an imaging distance of the preset camera, so as to obtain a relative distance from the obstacle to the preset camera;
[0051] A relative coordinate acquisition unit, used to obtain the relative coordinates of the obstacle according to the relative distance and the calibration parameters of the preset camera;
[0052] The target tracking unit is used to track the relative coordinates of the obstacle and determine the moving direction of the obstacle.
[0053] Optionally, the scene recognition module further includes:
[0054] A centroid acquisition unit, configured to identify the outline of the obstacle by using the preset laser radar to obtain the outline information of the obstacle, and determine the centroid of the obstacle according to the outline information of the obstacle;
[0055] The motion information acquisition subunit is used to acquire the position change of the center of mass of the obstacle in different time periods, determine the motion trajectory and motion speed of the obstacle, and obtain the motion information of the obstacle.
[0056] Optionally, the scene recognition module further includes:
[0057] An encoding unit, used for comparing scene images of two adjacent frames in the scene image data, obtaining obstacles in the scene image, encoding each obstacle, and obtaining an identification number of the obstacle;
[0058] A type recognition unit, used to obtain image information of the obstacle, perform feature extraction processing on the image information according to a preset training model, and obtain the type of the obstacle;
[0059] Optionally, the scene recognition module includes:
[0060] A destination information acquisition unit, used to acquire destination information, plan a forward path, and obtain an initial path;
[0061] The path planning unit is used to replan and adjust the initial path according to the attribute information and operation information of the obstacle to obtain a target planned path.
[0062] Optionally, the scene recognition module further includes:
[0063] an approach state determination unit, configured to obtain a moving obstacle in the surrounding environment according to the attribute information and operation information of the obstacle, and determine the approach state of the moving obstacle;
[0064] A forward strategy determination unit, used to determine the stopping area, acceleration area, deceleration area, detour area and straight-line driving area of the robot according to the approach state of the moving obstacle, and obtain a forward strategy;
[0065] The path planning subunit is used to replan and adjust the initial path according to the forward strategy to obtain a target planned path.
[0066] In addition, to achieve the above-mentioned purpose, the present invention also provides a robot forward path planning device, the robot forward path planning device includes: a monocular camera, a laser radar, a memory, a processor and a program for implementing the robot forward path planning method stored in the memory, the processor is used to execute the program for implementing the robot forward path planning method to implement the steps of the robot forward path planning method as described above.
[0067] In addition, to achieve the above-mentioned purpose, the present invention also provides a storage medium, on which is stored a program for implementing a method for planning a robot's forward path, and the program for implementing a method for planning a robot's forward path is executed by a processor to implement the steps of the method for planning a robot's forward path as described above.
[0068] The present invention provides a method, device and readable storage medium for planning a robot's forward path. Compared with the prior art, which only uses a camera to identify obstacles, resulting in poor safety and low delivery efficiency in the material delivery process of the delivery robot, the present application combines the robot's preset camera and preset laser radar when the robot is in a preset scene recognition mode to obtain the attribute information and operation information of the obstacle in the preset scene recognition mode; according to the attribute information and operation information of the obstacle, the forward path of the robot is planned to obtain a target planning path. Since in the present application, the attribute information and operation information of the obstacle are identified in combination with the preset camera and the preset laser radar, rather than just identifying the obstacle by the camera alone, the obstacle can be accurately identified, and the forward path of the robot can be timely and accurately planned to obtain the target planning path. The robot travels according to the target planning path, can avoid obstacles in time, ensure the safety of the robot itself, and solve the problems of poor safety and low delivery efficiency in the material delivery process of the unmanned delivery robot in the prior art. BRIEF DESCRIPTION OF THE DRAWINGS
[0069] Figure 1 A schematic diagram of the hardware structure of an implementation of a robot forward path planning device provided in an embodiment of the present invention;
[0070] Figure 2 It is a schematic flow chart of a first embodiment of a method for planning a robot's forward path according to the present invention;
[0071] Figure 3 This is a detailed flow chart of step S10 in the first embodiment of the method for planning the forward path of the robot of the present invention;
[0072] Figure 4 A schematic diagram of the three-sided cosine principle in another embodiment of the method for planning the forward path of the robot of the present invention;
[0073] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0074] 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.
[0075] In the subsequent description, the suffixes such as "module", "component" or "unit" used to represent elements are only used to facilitate the description of the present invention, and have no specific meanings. Therefore, "module", "component" or "unit" can be used in a mixed manner.
[0076] The axis motion configuration terminal (also called terminal, device or terminal equipment) of the embodiment of the present invention may be a PC, or may be a mobile terminal equipment with a display function such as a smart phone, a tablet computer and a portable computer.
[0077] like Figure 1 As shown, the terminal may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, and a communication bus 1002. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory, or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.
[0078] Optionally, the terminal may also include a camera, an RF (Radio Frequency) circuit, a sensor, an audio circuit, a WiFi module, and the like. Among them, sensors include light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display screen according to the brightness of the ambient light, and the proximity sensor may turn off the display screen and / or backlight when the mobile terminal is moved to the ear. As a type of motion sensor, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally three axes), and can detect the magnitude and direction of gravity when stationary. It can be used for applications that identify the posture of the mobile terminal (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; of course, the mobile terminal may also be configured with other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which will not be repeated here.
[0079] Those skilled in the art will understand that Figure 1 The terminal structure shown in the figure does not constitute a limitation on the terminal, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0080] like Figure 1 As shown, the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a program of a method for planning a robot's forward path.
[0081] exist Figure 1 In the terminal shown, the network interface 1004 is mainly used to connect to the background server and communicate data with the background server; the user interface 1003 is mainly used to connect to the client (user end) and communicate data with the client; and the processor 1001 can be used to call the program of the robot forward path planning method stored in the memory 1005. When the program of the robot forward path planning method is executed by the processor, the operations in the robot forward path planning method provided in the following embodiment are implemented.
[0082] Based on the above-mentioned device hardware structure, an embodiment of the method for planning the forward path of the robot of the present invention is proposed.
[0083] Reference Figure 2 The first embodiment of the method for planning a robot forward path of the present invention provides a path planning method, and the path planning method includes the following steps S10-S20:
[0084] Step S10, when the robot is in a preset scene recognition mode, combining the preset camera and preset laser radar of the robot to obtain the attribute information and operation information of the obstacle in the preset scene recognition mode.
[0085] Step S20, planning the forward path of the robot according to the attribute information and operation information of the obstacle to obtain a target planned path.
[0086] The specific steps are as follows:
[0087] Step S10, when the robot is in a preset scene recognition mode, combining a preset camera and a preset laser radar of the robot to obtain attribute information and operation information of obstacles in the preset scene recognition mode;
[0088] In this embodiment, the robot forward path planning method is applied to the robot forward path planning device, and the robot forward path planning device is applied to the robot. In this embodiment, the robot forward path planning method can be applied to the scene of outdoor delivery of unmanned delivery robots. At present, when the existing unmanned delivery robots walk outdoors, they only determine obstacles through cameras, and cannot accurately estimate the movement trend of obstacles. Specifically, the robot will have a large visual blind spot. When encountering moving obstacles such as pedestrians and vehicles, it is impossible to quickly and accurately identify the type and movement direction of the obstacles. In turn, the robot's forward path is disturbed, and it is easy to collide or traffic accidents, affecting the robot's own safety and delivery efficiency. Therefore, the unmanned delivery robot has poor safety and low delivery efficiency when walking outdoors. In this embodiment, the robot can obtain the attribute information and operation information of the obstacle according to the preset scene recognition mode, combined with the preset camera and laser radar, and plan the forward path according to the attribute information and operation information of the obstacle to obtain the target planning path, walk according to the target planning path, avoid collisions or traffic accidents, and improve the safety and delivery efficiency of the robot when walking outdoors. On the one hand, the robot uses the camera to obtain the image of the obstacle, identify the type and identification number of the obstacle and other attribute information, and can use the image information to complete the outline information of the obstacle obtained by the laser radar to determine the center of mass of the obstacle, which is conducive to the laser radar tracking of the obstacle; on the other hand, the robot uses the laser radar to track the obstacle, and at the same time completes the trajectory information of the moving obstacle obtained by the camera, and can obtain the movement speed and relative distance of the obstacle. At the same time, the robot can also calculate the relative distance to the obstacle through the image obtained by the camera. When the obstacle is in the blind spot of the laser radar, the robot can calculate the relative distance to the obstacle through the image obtained by the camera installed in the direction of the obstacle. The combination of the camera and the laser radar can locate and track the obstacle, obtain the relative coordinates of the obstacle, and distinguish different obstacles by the identification number of the obstacle. Among them, the obstacle can be fixed or moving. The fixed obstacle can be a street lamp, a building, a trash can, and the moving obstacle can be a pedestrian, a vehicle, etc.
[0089] In the present embodiment, it should be noted that the preset camera can be a monocular camera, a multi-eye camera, etc. The preset camera can be set at different positions of the robot to obtain scene images, relative distances to obstacles, and attribute information of obstacles when the robot is walking. When the preset camera and the preset laser radar are started at the same time, obstacles can be tracked. It should be noted that in the present embodiment, there can be only one preset laser radar, which is set at the front end of the robot to obtain the contour information of the obstacle, calculate the relative distance to the obstacle, and obtain the motion trajectory of the obstacle. It should be noted that there can be multiple preset laser radars, which are not specifically limited here. When the preset laser radar and the preset camera are started at the same time, obstacles can be tracked.
[0090] By starting the camera and the laser radar, the image of the obstacle is obtained and the image of the obstacle is analyzed to obtain the attribute information and operation information of the obstacle, wherein the attribute information of the obstacle includes the type and identification number of the obstacle, and the operation information of the obstacle includes the motion parameters and motion information of the obstacle. Furthermore, the motion parameters of the obstacle include the motion direction of the obstacle, and the motion information of the obstacle includes the motion trajectory and motion speed of the obstacle. The motion trajectory of the obstacle refers to the trajectory of the actual movement of the obstacle, which can provide a basis for the robot to estimate the motion trend of the obstacle, and the motion speed can determine the speed of the obstacle movement. When the robot is driving in a straight line, it can determine its own acceleration and deceleration strategy according to the motion speed of the obstacle. It should be noted that the motion trend of the obstacle refers to the operation information of the obstacle estimated by the robot. Specifically, when the robot is driving in a straight line, the preset camera and preset laser radar set at the front end of the robot are turned on, the scene image is obtained and the attribute information of the obstacle is extracted through the preset camera, and the operation information of the obstacle is obtained in combination with the preset laser radar. When the robot passes through an intersection, it is necessary to turn on the preset cameras set at the front end and on both sides, obtain the scene images of the front and the intersections on both sides and extract the attribute information of the obstacle, and obtain the operation information of the obstacle in combination with the preset laser radar. Among them, parsing the image of the obstacle refers to using different preset algorithms to obtain the information of the obstacle.
[0091] In this embodiment, it should be noted that the preset scene recognition modes can be divided into three types: obstacle scene recognition mode, straight-line passage mode and intersection passage mode. When the robot is in different scene recognition modes, it is necessary to turn on a preset number of cameras and lidars to identify the scene and environmental obstacles in the scene and determine the forward strategy.
[0092] When the robot is in the preset scene recognition mode, combining the preset camera and the preset laser radar of the robot, obtaining the attribute information and operation information of the obstacle in the preset scene recognition mode includes at least the following methods:
[0093] Method 1: When the robot is in the preset obstacle scene recognition mode, all preset cameras and lidars are turned on, and the robot stops moving to obtain scene images of the surrounding environment and analyze the scene images to obtain the attribute information and operation information of the obstacles in the obstacle recognition mode;
[0094] Method 2: When the robot is in the preset straight-line mode, only the preset camera and preset laser radar at the front end are turned on. When a moving obstacle is identified in front, the robot stops moving and uses the preset camera at the front end to obtain the image of the obstacle. The image of the obstacle is analyzed in combination with the laser radar to obtain the attribute information and operation information of the obstacle in the straight-line mode.
[0095] Method 3: When the robot is in the preset intersection traffic mode, at least the preset cameras on the front and both sides are turned on to obtain scene images in front and on the left and right sides, and combined with the preset laser radar, the attribute information and operation information of the obstacles in the intersection traffic mode are obtained;
[0096] Among them, method three may also include the following sub-methods:
[0097] When the robot is in the preset intersection passage mode, all preset cameras at the front, rear and both sides are turned on to obtain scene images of the surrounding environment, and combined with the preset laser radar, the attribute information and operation information of the obstacles in the intersection passage mode are obtained.
[0098] Reference Figure 3 , when the robot is in the preset scene recognition mode, combining the preset camera and the preset laser radar of the robot, obtaining the attribute information and operation information of the obstacle in the preset scene recognition mode, including the following steps S11-S13:
[0099] Step S11, when the robot is in a preset scene recognition mode, using the preset camera and the preset laser radar to respectively collect different scene image information in the preset scene recognition mode;
[0100] The preset cameras of the robot are arranged on various surfaces of the robot. When the robot is in the preset scene recognition mode, different preset numbers of cameras and preset laser radars are selected to be turned on according to the preset scene recognition mode to obtain scene image information of the surrounding environment. The time for obtaining the scene image information can be preset. Generally, the shorter the time interval for obtaining the scene image information, the more accurate the scene image data obtained according to the scene image information. The robot obtains the first scene image sub-information, mainly including image information, through the preset camera, and obtains the second scene image sub-information, mainly including contour information of scene objects, through the preset laser radar.
[0101] Step S12, obtaining scene image data in the preset scene recognition mode by performing information fusion processing on the different scene image information;
[0102] The scene image data collected by the preset camera and the preset laser radar are subjected to information fusion processing. The information fusion processing refers to the process of associating, relating and integrating the data or information obtained from a single or multiple information sources, and automatically analyzing and comprehensively processing them under certain criteria. It is also a process of continuous self-correction during information processing. The robot performs information fusion processing on the different scene image information collected by the preset camera and the preset laser radar as the two information sources, and obtains the scene image data under the preset scene recognition mode.
[0103] Step S13: extracting attribute information and operation information of the obstacle according to the scene image data.
[0104] The robot identifies obstacles in the preset scene mode based on the scene image data, and uses a preset algorithm to respectively extract attribute information and operation information of the obstacles. Through information fusion processing, the information obtained by the preset camera is complemented with the information obtained by the preset lidar, so as to quickly and accurately obtain the attribute information and operation information of the obstacles.
[0105] When the robot is in a preset scene recognition mode, the preset camera and the preset laser radar are used to respectively collect different scene image information in the preset scene recognition mode. Through information fusion processing, the first scene image sub-information obtained by the preset camera and the second scene image sub-information obtained by the preset laser radar are associated, fused and complemented. For example, the preset camera is used to make up for the blind spot of the preset laser radar, and the laser radar is used to track obstacles and complete the movement trajectory of the obstacles obtained by the preset camera, thereby realizing fast and accurate identification and positioning tracking of obstacles.
[0106] The extracting the attribute information and operation information of the obstacle according to the scene image data comprises the following steps A11-A13:
[0107] Step A11, extracting the type of the obstacle and the identification number of the obstacle from the scene image data of the robot, and extracting the motion parameters of the obstacle;
[0108] The acquired scene image is parsed using a preset algorithm to extract the type and identification number of the obstacle, wherein the type of obstacle is determined based on the recognition result of the obstacle feature in the parsing result of the scene image, and the identification number of the obstacle is obtained by obtaining the number of the obstacle; extracting the motion parameter of the obstacle means determining whether the obstacle is a fixed obstacle or a moving obstacle based on the parsing result of the scene image, and obtaining the relative coordinates of the obstacle, and obtaining the movement direction of the obstacle by tracking the relative coordinates of the obstacle.
[0109] Step A12, identifying the contour information of the obstacle by using the preset laser radar, and determining the motion information of the obstacle based on the contour information that changes in different time periods;
[0110] The robot tracks the obstacle through the preset laser radar and obtains the outline information of the obstacle. Then, according to the position change and speed of the outline information in different time periods, it determines the movement trajectory and speed of the obstacle and obtains the movement information of the obstacle.
[0111] Step A13: integrating the motion parameters of the obstacle and the motion information of the obstacle to obtain the movement information of the obstacle.
[0112] Integrating the motion parameters of the obstacle and the motion information of the obstacle means merging the information of the obstacle obtained by the preset camera and the preset laser radar. The information of the same obstacle obtained by the preset camera and the preset laser radar complement each other, and the attribute information and identification number of the obstacle are associated and matched to obtain the complete operation information of the obstacle.
[0113] Step S20, planning the forward path of the robot according to the attribute information and operation information of the obstacle to obtain a target planned path.
[0114] When the robot receives an instruction, it parses the instruction to obtain the destination information, plans an initial path based on the destination information, and during actual driving, continuously adjusts the initial path based on the obstacle information in the surrounding environment, replans the forward path, and obtains the target planned path.
[0115] The step of planning the robot's forward path according to the attribute information and operation information of the obstacle includes the following steps D1-D3:
[0116] Step D1, obtaining destination information, planning the forward path according to the destination information, and obtaining an initial path;
[0117] When the robot receives a command, it parses the command to obtain the destination information, which includes the relative distance and direction from the robot. The robot plans an initial path based on the destination information. There may be multiple initial paths, which are approximate paths preliminarily planned by the robot based on the destination information using a navigation or positioning device before driving. The robot can select one of them as the initial path according to a preset principle, which may be the shortest estimated time, the shortest distance, or the least intersections.
[0118] Step D2, replanning and adjusting the initial path according to the attribute information and operation information of the obstacle to obtain a target planned path.
[0119] When the robot is traveling on the initial path, it obtains the attribute information and operation information of the surrounding obstacles by analyzing the acquired scene images. The robot needs to determine the forward strategy based on the attribute information and operation information of the obstacles.
[0120] Determining the forward strategy according to the attribute information and operation information of the obstacle includes the following steps D11-D12:
[0121] Step D11, obtaining moving obstacles in the surrounding environment according to the attribute information and operation information of the obstacles, and determining the approach state of the moving obstacles;
[0122] The robot can determine the obstacles moving around it through the attribute information and operation information of the obstacles. By tracking each obstacle with the preset laser radar, the proximity status of each obstacle relative to the robot can be determined.
[0123] Step D12, according to the approaching state of the moving obstacle, determine the stopping area, acceleration area, deceleration area, detour area and straight driving area of the robot to obtain a forward strategy.
[0124] The stopping area, acceleration area, deceleration area, detour area and straight driving area of the robot are determined according to the approach state of the moving obstacle to obtain the forward strategy. Specifically, the robot travels in the original target planned path. When a fixed obstacle is identified, the fixed obstacle must be bypassed. When a moving obstacle is identified, it is necessary to determine whether to accelerate or decelerate according to the movement direction and speed of the obstacle. For example, when the robot travels in a straight line according to the original target planned path, if it recognizes that there is a vehicle in front of it with a moving speed lower than its own moving speed and traveling in the same direction as the robot, in order to avoid a collision, the robot will decelerate when the distance to the obstacle is less than a preset safety distance. The original target planned path may be an initial path or an adjusted initial path.
[0125] This embodiment provides a specific application scenario: when the robot is crossing a zebra crossing at an intersection, the following steps E1-E4 are included:
[0126] Step E1, identifying intersections and designing zebra crossings;
[0127] The robot identifies the intersection of the scene road from the image obtained by the preset camera and marks the zebra crossing. The two ends of the zebra crossing are the robot's identification points, marked as the first identification point and the second identification point. The robot marks its own position as the first identification point, and marks the position it will reach after crossing the zebra crossing as the second identification point. The zebra crossing is marked as the forward path.
[0128] Step E2, determining whether the intersection identification point is passable;
[0129] When the robot is at the first recognition point, it pauses to identify obstacles such as vehicles and pedestrians at the intersection. At this time, the robot should activate a preset number of cameras to obtain scene images in different directions. Within the preset time, if it recognizes that there are no moving obstacles at the intersection, it is determined that the intersection is passable. If a moving obstacle is recognized, it is determined that the intersection is impassable.
[0130] Step E3, determining a forward strategy for crossing the zebra crossing;
[0131] When it is determined that the intersection is passable, the robot determines the acceleration and deceleration in the two areas from the first identification point to the zebra crossing and from the zebra crossing to the second identification point based on the approach status and movement speed of the surrounding moving obstacles, integrates the acceleration and deceleration strategies of the two areas, and obtains the overall forward strategy of the robot through the zebra crossing at the intersection.
[0132] Step E4, obtaining the target planned path through the zebra crossing at the intersection.
[0133] By integrating the original target planning path of the robot crossing the zebra crossing from the first identification point to the second identification point, and the robot's forward strategy for passing the intersection identification point, a target planning path for the robot to pass the intersection identification point is obtained.
[0134] Step D3, according to the forward strategy, replan and adjust the initial path to obtain a target planned path.
[0135] When the robot is traveling along the initial path, it will modify and adjust the initial path according to obstacles and road conditions, especially when the initial path is long or the path is tortuous due to road conditions. Specifically, this embodiment gives examples of situations where the initial path needs to be modified. For example, when a road is temporarily blocked on the initial planned path, or there are too many moving objects (such as vehicles) causing path congestion, the robot will modify the initial path. Referring to the existing road navigation scheme, when congestion occurs on the recommended route, the navigation program will modify the recommended route. However, the difference is that the route modification in the prior art is a route arrangement and combination based on known routes, while the initial path of the robot in this application may not be an arrangement and combination of existing roads (which can be obtained through satellite positioning technology). Since the initial path of the robot may be short or there is no obvious identifiable road for the robot to walk (for example, from one point to another on a square), in this case, the modification of the initial path of the robot is essentially different from the modification of the navigation recommended path in the prior art. It can be understood that the method for modifying the initial path in the present application can be to communicate with a movable device (which can be other robots with the same function as the robot in the present application) on and near the initial path, so as to obtain the movement state of obstacles on the initial path near the movable device through the movable device. If there are many obstacles on the initial path near the movable device and the movement is slow, the robot can re-plan the moving path to obtain the target planned path. It can be known that the robot can also preliminarily estimate the time when the robot reaches the mobile device and the time when the obstacles on the initial path near the mobile device pass according to the distance between itself and the above-mentioned movable device, and the number and moving speed of obstacles on the initial path near the mobile device obtained by the mobile device, that is, to judge whether the congestion situation is alleviated when the robot reaches the point near the mobile device on the initial path. It can be seen from the above-mentioned embodiments that there are various methods for modifying the initial path.
[0136] The embodiment of the present application provides a method for planning a robot's forward path. Compared with the prior art, which only uses a camera to identify obstacles, resulting in poor safety and low delivery efficiency in the material delivery process of the delivery robot, the present application uses the robot's preset camera and preset laser radar to collect different scene image information when the robot is in a preset scene recognition mode, performs information fusion processing on the different scene image information, obtains scene image data, and extracts the attribute information and operation information of the obstacle in the preset scene recognition mode from the scene image data; according to the attribute information and operation information of the obstacle, the forward path of the robot is planned to obtain a target planning path. Since in the present application, the attribute information and operation information of the obstacle are identified in combination with the preset camera and the preset laser radar, rather than just identifying the obstacle by the camera alone, the obstacle can be accurately identified, and the forward path of the robot can be timely and accurately planned to obtain the target planning path. The robot travels according to the target planning path, can avoid obstacles in time, ensure the safety of the robot itself, and solves the problems of poor safety and low delivery efficiency in the material delivery process of the unmanned delivery robot in the prior art.
[0137] The present application embodiment provides a method for planning a robot's forward path. In another embodiment of the method for planning a robot's forward path, extracting the type of the obstacle and the identification number of the obstacle from the scene image data of the robot includes the following steps A1-A2:
[0138] Step A1, comparing scene images of two adjacent frames in the scene image data to obtain obstacles in the scene image, encoding each obstacle to obtain an identification number of the obstacle;
[0139] In the acquired scene image, by comparing the images of two adjacent frames, the change information of the position of objects in the environment can be determined. Since the time interval between the acquisition of two adjacent frames of images by the camera is very short, the pixels and sizes of two adjacent frames of images of the same scene do not change much. The robot can select a point on the object in the scene image and a point on the edge of the scene image as fixed reference points, and by comparing the relative distance and relative direction between the fixed reference point on the object and the fixed reference point on the edge of the image in the scene image to see whether they have changed, it can be determined which objects in the scene image are moving objects and which are stationary objects. The stationary objects are used as background references, and the moving objects are encoded. The encoding of each object is unique, and the encoding is the identification number of the obstacle. The identification numbers of obstacles of the same type are also different, which can be used by the robot to distinguish targets tracked by the laser radar.
[0140] Step A2: acquiring image information of the obstacle, performing feature extraction processing on the image information according to a preset training model, and obtaining the type of the obstacle.
[0141] The preset training model is a target model obtained after iterative training of a preset basic model based on obstacle data with preset type labels. A preferred model of the preset training model is a yolov4 (no corresponding Chinese name) target detection model based on deep learning. First, a sample database is established based on obstacle data with preset type labels, and the sample data is trained with the yolov4 model until the recognition accuracy and response speed of the model output reach the preset completion conditions. Based on the training results of the sample data, after acquiring the scene image, the robot can use the yolov4 target detection model to quickly and accurately extract the features of the obstacle and identify it, and obtain the type of the obstacle, that is, determine whether the obstacle is a pedestrian, a vehicle or other fixed obstacle. For example, when the robot is driving straight, it recognizes an obstacle in front with an identification number of 001 and a pedestrian type.
[0142] In this embodiment, the type of obstacles is identified and numbered by a preset camera, and the attribute information of the obstacles is obtained, which is convenient for target differentiation during laser radar multi-target tracking. Compared with existing robots, the present invention realizes rapid and accurate identification of obstacle attribute information.
[0143] The embodiment of the present application provides a method for planning a robot's forward path. In another embodiment of the method for planning a robot's forward path of the present application, the step of extracting the motion parameters of the obstacle includes the following steps B1-B4:
[0144] Step B1, determining a scene road based on the scene image data, and determining a contact point between the obstacle and the scene road;
[0145] The scene image data is identified using a preset target detection model to obtain the type of each object in the scene image, select a scene road, and select a point where the distance between the obstacle and the scene road is 0 as the contact point between the obstacle and the scene road.
[0146] Step B2, based on the scene image data, determining the projection height of the obstacle on the scene image and the installation height of the preset camera from the scene road, and determining the imaging distance of the preset camera to obtain the relative distance from the obstacle to the preset camera;
[0147] Through experimental measurement, the imaging distance of the preset camera and the installation height from the scene road can be obtained. According to the principle of image perspective, the relative distance between the obstacle and the preset camera can be calculated through the projection height of the obstacle on the scene image.
[0148] Step B3, obtaining the relative coordinates of the obstacle according to the relative distance and the calibration parameters of the preset camera;
[0149] The calibration parameters of the preset camera refer to the intrinsic parameters and distortion parameters of the camera, which are the attribute parameters of the camera itself and can be measured by experimental methods. They usually cannot be eliminated, but can be compensated or corrected using certain methods and means. The relative coordinates of the obstacle are obtained according to the relative distance and the calibration parameters of the preset camera. It means that, under the premise of knowing the relative distance of the obstacle, the robot can locate the obstacle by creating a spatial coordinate system, and obtain the relative coordinates of the obstacle after compensating or correcting the calibration parameters of the camera.
[0150] Step B4: Track the relative coordinates of the obstacle to determine the moving direction of the obstacle.
[0151] If the obstacle is moving, its relative coordinates are constantly changing. By using a preset tracking algorithm to track the relative coordinates of the obstacle, the movement direction of the obstacle, that is, the movement parameters of the obstacle, is obtained. A preferred algorithm among the preset tracking algorithms is the Kalman filter tracking algorithm, which is an optimal linear recursive filtering method based on minimum mean square error. It is based on the state equation and the observation equation, and uses a recursive method to predict the changes of the linear system. Using this algorithm, the movement direction of the obstacle can be obtained, the movement trend of the obstacle can be estimated, and information support can be provided for the robot to plan the forward path. The state equation and observation equation of the Kalman filter tracking algorithm are as follows:
[0152] x k =A k,k-1 x k-1 +ξ k-1 (1)
[0153] z k =H k z k +η k (2)
[0154] x k is the state vector at time k, A is the state system matrix, ξ is the state system noise; z kis the observation vector at time k, H is the observation system matrix, η is the observation system noise, the system noise is assumed to be uncorrelated zero-mean Gaussian white noise, and the covariances of ξ and η are Q and R respectively. Kalman filtering can be summarized as the state prediction process (Equation 3-4) and the state correction process (Equation 5-7):
[0155] State prediction equation:
[0156]
[0157] Error covariance prediction equation:
[0158]
[0159] Kalman filter gain:
[0160]
[0161] State correction equation:
[0162]
[0163] Corrected error covariance matrix:
[0164] P k =P k,k-1 -K k H k P k,k-1 (7)
[0165] The state prediction equation is based on the state equation to find the state prediction vector and the error covariance prediction vector P k,k-1 The state correction equation is based on the observation equation and corrects the state prediction vector to obtain the vector The minimum error covariance matrix is calculated and the Kalman filter algorithm is used to observe and correct the states of objects in two adjacent images of the same scene. Moving objects and stationary objects can be identified. Stationary objects are used as background objects for reference and moving objects are used as obstacles for connectivity calculation. Moving obstacles can be detected and tracked with lidar. The movement trend of the obstacle can be predicted by analyzing the state prediction equation of the obstacle, providing information support for the robot to plan its forward path.
[0166] As described above, if the obstacle is moving, the robot tracks the obstacle. The robot can determine whether the obstacle is moving by performing connectivity calculation on the obstacle image obtained by the camera. When driving in a straight line, the robot can also determine whether the obstacle is moving by using a preset algorithm through a laser radar. One preferred algorithm among the preset algorithms is the three-sided cosine principle, which is as follows:
[0167] When the robot is driving in a straight line, if it recognizes an obstacle, it can obtain the relative distance to the obstacle through the laser radar and determine whether the obstacle is moving through the three-sided cosine theorem, such as Figure 4 As shown, it is assumed that the obstacle is marked as point A, that is, the observation point of the robot. The point when the robot recognizes the obstacle is taken as the starting point, marked as point B. After driving for a period of time, the point at which the relative distance to the obstacle is obtained is called the first state point, marked as point C. After the robot travels a certain distance, it observes the obstacle for the second time to obtain information such as the relative distance to the obstacle. The point observed for the second time is the second state point of the robot, marked as point D. Through the preset odometer of the robot, the distance from point B to point C and from point C to point D of the robot can be obtained, that is, the length of BC and CD. The robot can obtain the distance between point A and point B and between point A and point C at the initial point and the first state point through the preset laser radar. Using the three-side cosine theorem, the angle between AB and BC can be obtained, recorded as angle β1. The distance between point A and point D is obtained at the second state point D, that is, the length of AD. Through the three-side cosine theorem, the angle between AB and BD is obtained, recorded as β2. The calculation formula is as follows (Formula 8):
[0168] Three-sided cosine theorem formula:
[0169]
[0170] From formula (8), we can get:
[0171]
[0172]
[0173] The robot determines whether the obstacle is moving by comparing the cosine values of β1 and β2. If the cosine values of β1 and β2 are equal, the obstacle is stationary. If they are not equal, it can be determined that the obstacle is moving.
[0174] In this embodiment, the motion parameters of the obstacle are obtained by combining the preset camera and the laser radar. Specifically, the robot uses the preset camera to obtain the image of the obstacle, obtains the attribute information of the obstacle, and then uses the laser radar to track the obstacle, completes the trajectory information of the moving obstacle obtained by the camera, and can obtain the movement speed and relative distance of the obstacle. At the same time, the robot can also calculate the relative distance to the obstacle through the image obtained by the camera. When the obstacle is in the blind spot of the laser radar, the robot can calculate the relative distance to the obstacle through the image obtained by the camera installed in the direction of the obstacle, which makes up for the blind spot of the radar and realizes all-round recognition, tracking and positioning of the obstacle.
[0175] The embodiment of the present application provides a method for planning a robot's forward path. In another embodiment of the method for planning a robot's forward path of the present application, the step of extracting the motion information of the obstacle includes the following steps C1-C2:
[0176] Step C1, identifying the outline of the obstacle by the preset laser radar to obtain the outline information of the obstacle, and determining the center of mass of the obstacle according to the outline information of the obstacle;
[0177] The robot tracks the obstacle through the preset laser radar and obtains the contour information of the obstacle. When the obstacle is blocked or overlapped in the direction of the preset laser radar, the contour information obtained by the preset laser radar may overlap, but the preset laser radar cannot segment the contour information of the overlapping part of the obstacle. Therefore, the robot cannot distinguish the contour information of different obstacles. Therefore, the contour information of the obstacle obtained by the preset laser radar is not necessarily complete or completely correct. It is necessary to match the obstacle in the scene image obtained by the preset camera based on the relative coordinates and attribute information of the obstacle. Through information fusion processing, the preset laser radar can accurately segment the contour of a single obstacle and complete the contour information of a single obstacle. The robot determines the center of mass of the obstacle based on the complete contour of the obstacle.
[0178] Step C2, obtaining the position change of the center of mass of the obstacle in different time periods, and determining the movement trajectory and movement speed of the obstacle.
[0179] The robot tracks obstacles through a preset laser radar, mainly tracking the center of mass of the obstacle. According to the change of the center of mass position of the obstacle and the speed of the change of the center of mass position, the robot determines the movement trajectory and speed of the obstacle and obtains the movement information of the obstacle.
[0180] This embodiment obtains the outline image of the obstacle through the laser radar, and performs information fusion processing on the relative coordinates and attribute information of the obstacle with the obstacle in the image obtained by the camera to obtain the complete outline information of the obstacle, thereby determining the center of mass of the obstacle. By obtaining the relative coordinates of the center of mass of the obstacle, the obstacle is located and tracked to obtain the movement trajectory of the obstacle. According to the movement direction of the obstacle obtained by the camera, the movement trend of the obstacle can be estimated. The image information obtained by the camera supplements the information obtained by the laser radar, providing information support for the robot's planning of the forward path.
[0181] A first embodiment of the present invention provides a robot forward path planning device, wherein the robot forward path planning device comprises:
[0182] A scene recognition module, used to obtain the attribute information and operation information of the obstacles in the preset scene recognition mode by combining the preset camera and preset laser radar of the robot when the robot is in the preset scene recognition mode;
[0183] The path planning module is used to plan the forward path of the robot according to the attribute information and operation information of the obstacle to obtain a target planned path.
[0184] Optionally, the scene recognition module includes:
[0185] An image information acquisition unit, used to respectively acquire different scene image information in the preset scene recognition mode by using the preset camera and the preset laser radar when the robot is in the preset scene recognition mode;
[0186] An information fusion processing unit, configured to obtain scene image data in the preset scene recognition mode by performing information fusion processing on the different scene image information;
[0187] The information extraction unit is used to extract the attribute information and operation information of the obstacle according to the scene image data.
[0188] Optionally, the scene recognition module further includes:
[0189] A data extraction unit, used to extract the type of the obstacle and the identification number of the obstacle from the scene image data of the robot, and extract the motion parameters of the obstacle;
[0190] A motion information extraction unit, configured to identify the contour information of the obstacle through the preset laser radar, and determine the motion information of the obstacle based on the contour information that changes in different time periods;
[0191] The data integration unit is used to integrate the motion parameters of the obstacle and the motion information of the obstacle to obtain the operation information of the obstacle.
[0192] Optionally, the scene recognition module further includes:
[0193] a contact point determination unit, configured to determine a scene road based on the scene image data, and determine a contact point between the obstacle and the scene road;
[0194] A relative distance determination unit, configured to determine, based on the scene image data, a projection height of the obstacle on the scene image and an installation height of the preset camera from the scene road, and determine an imaging distance of the preset camera, so as to obtain a relative distance from the obstacle to the preset camera;
[0195] A relative coordinate acquisition unit, used to obtain the relative coordinates of the obstacle according to the relative distance and the calibration parameters of the preset camera;
[0196] The target tracking unit is used to track the relative coordinates of the obstacle and determine the moving direction of the obstacle.
[0197] Optionally, the scene recognition module further includes:
[0198] A centroid acquisition unit, configured to identify the outline of the obstacle by using the preset laser radar to obtain the outline information of the obstacle, and determine the centroid of the obstacle according to the outline information of the obstacle;
[0199] The motion information acquisition subunit is used to acquire the position change of the center of mass of the obstacle in different time periods, determine the motion trajectory and motion speed of the obstacle, and obtain the motion information of the obstacle.
[0200] Optionally, the scene recognition module further includes:
[0201] An encoding unit, used for comparing scene images of two adjacent frames in the scene image data, obtaining obstacles in the scene image, encoding each obstacle, and obtaining an identification number of the obstacle;
[0202] A type recognition unit, used to obtain image information of the obstacle, perform feature extraction processing on the image information according to a preset training model, and obtain the type of the obstacle;
[0203] Optionally, the scene recognition module includes:
[0204] A destination information acquisition unit, used to acquire destination information, plan a forward path, and obtain an initial path;
[0205] The path planning unit is used to replan and adjust the initial path according to the attribute information and operation information of the obstacle to obtain a target planned path.
[0206] Optionally, the scene recognition module further includes:
[0207] an approach state determination unit, configured to obtain a moving obstacle in the surrounding environment according to the attribute information and operation information of the obstacle, and determine the approach state of the moving obstacle;
[0208] A forward strategy determination unit, used to determine the stopping area, acceleration area, deceleration area, detour area and straight-line driving area of the robot according to the approach state of the moving obstacle, and obtain a forward strategy;
[0209] The path planning subunit is used to replan and adjust the initial path according to the forward strategy to obtain a target planned path.
[0210] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including 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 system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.
[0211] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0212] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, disk, optical disk) as described above, and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present invention.
[0213] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A method for planning a robot's forward path, characterized in that: The planning method of the robot's forward path includes: When the robot is in a preset scene recognition mode, the preset camera and preset laser radar of the robot are combined to obtain the attribute information and operation information of the obstacle in the preset scene recognition mode, wherein the preset scene recognition mode is divided into an obstacle scene recognition mode, a straight-line passage mode and an intersection passage mode; when the robot is in the preset obstacle scene recognition mode, all preset cameras and laser radars are turned on, and the robot stops moving forward to obtain a scene image of the surrounding environment and analyzes the scene image to obtain the attribute information and operation information of the obstacle in the obstacle recognition mode; when the robot is in the preset straight-line passage mode, only the preset camera and preset laser radar at the front end are turned on, and when a moving obstacle is identified in front, the robot stops moving forward and uses the preset camera at the front end to obtain the image of the obstacle, and analyzes the image of the obstacle in combination with the laser radar to obtain the attribute information and operation information of the obstacle in the straight-line passage mode; when the robot is in the preset intersection passage mode, at least the preset cameras at the front end and on both sides are turned on to obtain scene images of the front and left and right sides, and the attribute information and operation information of the obstacle in the intersection passage mode is obtained in combination with the preset laser radar; According to the attribute information and operation information of the obstacle, the forward path of the robot is planned to obtain a target planned path.
2. The method for planning a robot's forward path according to claim 1, characterized in that: When the robot is in the preset scene recognition mode, the step of obtaining the attribute information and operation information of the obstacle in the preset scene recognition mode in combination with the preset camera and the preset laser radar of the robot includes: When the robot is in a preset scene recognition mode, the preset camera and the preset laser radar are used to respectively collect image information of different scenes in the preset scene recognition mode; Performing information fusion processing on the different scene image information to obtain scene image data in the preset scene recognition mode; According to the scene image data, attribute information and operation information of the obstacle are extracted.
3. The method for planning a robot's forward path as claimed in claim 2, characterized in that: The preset scene recognition mode includes an obstacle scene recognition mode, and the attribute information includes the type and identification number of the obstacle; The step of extracting attribute information and operation information of obstacles according to the scene image data comprises: Extracting the type of the obstacle and the identification number of the obstacle from the scene image data of the robot, and extracting the motion parameters of the obstacle; Identify the contour information of the obstacle by using the preset laser radar, and determine the motion information of the obstacle based on the contour information that changes in different time periods; The motion parameters of the obstacle and the motion information of the obstacle are integrated to obtain the movement information of the obstacle.
4. The method for planning a robot's forward path as claimed in claim 3, characterized in that: The motion parameters of the obstacle include the motion direction of the obstacle, and the step of extracting the motion parameters of the obstacle includes: Determining a scene road based on the scene image data, and determining a contact point between the obstacle and the scene road; Based on the scene image data, determine the projection height of the obstacle on the scene image and the installation height of the preset camera from the scene road, and determine the imaging distance of the preset camera to obtain the relative distance from the obstacle to the preset camera; Obtaining the relative coordinates of the obstacle according to the relative distance and the calibration parameters of the preset camera; The relative coordinates of the obstacle are tracked to determine the moving direction of the obstacle.
5. The method for planning a robot's forward path as claimed in claim 3, characterized in that: The movement information of the obstacle includes the movement trajectory and movement speed of the obstacle. The step of identifying the contour information of the obstacle by the preset laser radar and determining the movement information of the obstacle based on the contour information that changes in different time periods includes: By using the preset laser radar, the outline of the obstacle is identified to obtain the outline information of the obstacle, and the center of mass of the obstacle is determined according to the outline information of the obstacle; The position change of the center of mass of the obstacle in different time periods is obtained to determine the movement trajectory and movement speed of the obstacle.
6. The method for planning a robot's forward path as claimed in claim 3, characterized in that: The step of extracting the type of the obstacle and the identification number of the obstacle from the scene image data of the robot comprises: Comparing scene images of two adjacent frames in the scene image data to obtain obstacles in the scene image, encoding each obstacle to obtain an identification number of the obstacle; Acquire image information of the obstacle, perform feature extraction processing on the image information according to a preset training model, and obtain the type of the obstacle; The preset training model is a target model obtained by iteratively training a preset basic model based on obstacle data with preset type labels.
7. The method for planning a robot's forward path according to claim 1, characterized in that: The step of planning the forward path of the robot according to the attribute information and operation information of the obstacle to obtain a target planned path includes: Obtain destination information, plan the forward path according to the destination information, and obtain the initial path; The initial path is replanned and adjusted according to the attribute information and operation information of the obstacle to obtain a target planned path.
8. The method for planning a robot's forward path as claimed in claim 7, characterized in that: The step of replanning and adjusting the initial path according to the attribute information and operation information of the obstacle to obtain a target planned path includes: Obtaining obstacles moving in the surrounding environment according to the attribute information and operation information of the obstacles, and determining the approach state of the moving obstacles; According to the approach state of the moving obstacle, determining the stopping area, acceleration area, deceleration area, detour area and straight-line driving area of the robot, and obtaining a forward strategy; According to the forward strategy, the initial path is replanned and adjusted to obtain a target planned path.
9. A robot forward path planning device, characterized in that: The planning device for the robot's forward path includes: a memory, a processor, and a program stored in the memory for implementing the planning method for the robot's forward path, and the processor is used to execute the program for implementing the planning method for the robot's forward path to implement the steps of the robot's forward path planning method as described in any one of claims 1 to 7.
10. A storage medium, characterized in that: The storage medium stores a program for implementing a method for planning a robot's forward path, and the program for implementing a method for planning a robot's forward path is executed by a processor to implement the steps of the method for planning a robot's forward path as described in any one of claims 1 to 7.
