A mobile operation robot obstacle avoidance system and real-time obstacle avoidance method
The real-time obstacle avoidance method of the embedded hardware platform solves the problem of insufficient real-time performance of mobile robots in industrial manufacturing scenarios, achieves rapid identification and avoidance of obstacles, improves the obstacle avoidance performance and safety of robots, and meets the needs of high-speed walking in industrial scenarios. and homework requirements.
Patent Information
- Application Number
- CN202410765497.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-14
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2044-06-14
AI Technical Summary
The existing mobile robot control platform has poor real-time performance in industrial manufacturing scenarios, resulting in slow response speed, untimely obstacle recognition and obstacle avoidance operations, which may cause collisions or obstacle avoidance failures, affecting production safety and efficiency.
Adopting the strong real-time characteristics of the embedded hardware platform, the first embedded platform executes a real-time obstacle avoidance algorithm to generate obstacle avoidance data, and sends it directly to the second embedded platform to immediately execute instructions, improving the robot's dynamic obstacle avoidance performance and At the same time, the real-time obstacle avoidance information of the first embedded platform is transmitted to the robot control platform to correct the driving route and improve the reliability and response speed of obstacle avoidance.
It improves the dynamic obstacle avoidance performance and safety of the robot, meets the high safety and high reliability requirements of high-speed walking and high-speed operation in industrial scenarios, and ensures that the robot can quickly and reliably respond to obstacles and reduce the risk of collision.
Smart Images

Figure CN118349007B
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of mobile robot obstacle avoidance, and in particular to a mobile working robot obstacle avoidance system and a real-time obstacle avoidance method. Background Art
[0002] Mobile robots are used in industrial manufacturing scenarios, and their driving behavior is restricted by the conditions of the industrial production line. Only robots that meet the production rhythm and operation requirements of the production line can be successfully applied to such scenarios.
[0003] However, usually, the robot control platform is based on the x86 platform structure, which has poor real-time performance. After the robot sensor data is input, complex and time-consuming calculations are required to obtain the perception results so that the robot control platform can make decisions based on them. This process not only causes the computing power resources of the robot core controller to be tight, but also the robot response speed, obstacle recognition, obstacle avoidance operation, etc., when the robot is driving at high speed, there is a certain degree of untimely response, which will cause the robot to collide or fail to avoid obstacles, thereby causing losses and affecting industrial production.
[0004] Therefore, a new solution for real-time obstacle avoidance of robots is needed. Summary of the invention
[0005] In view of this, the embodiments of this specification provide a mobile working robot obstacle avoidance system and a real-time obstacle avoidance method, so that the mobile working robot can be applied to industrial manufacturing scenarios to meet the production rhythm requirements and operation requirements of the production line.
[0006] The embodiments of this specification provide the following technical solutions:
[0007] The embodiment of this specification provides a robot obstacle avoidance system, including:
[0008] A first embedded platform, a second embedded platform and a robot control platform, wherein the first embedded platform is respectively connected to the robot control platform and the second embedded platform for communication, the first embedded platform is used to execute a real-time obstacle avoidance algorithm and generate obstacle avoidance data, the robot control platform is used to execute an overall control function of the robot and generate decision data, and the second embedded platform is used to execute a robot motion control algorithm according to the obstacle avoidance data and the decision data, so that the robot performs motion actions;
[0009] Among them, the first embedded platform is used to obtain the first sensor data output by the sensor, the first sensor data includes obstacle feature data, and executes the real-time obstacle avoidance algorithm to generate obstacle avoidance data when obtaining the first sensor data; the robot control platform is used to obtain all the sensor data and the obstacle avoidance data output by the sensor, the all sensor data includes the first sensor data and other sensor data except the first sensor data, and generates decision data after obtaining the all sensor data and the obstacle avoidance data; the second embedded platform is used to immediately execute the robot motion control algorithm when receiving the obstacle avoidance data so as to complete the output of the action instructions required for obstacle avoidance according to the obstacle avoidance data, so that the motor used to perform motion actions in the robot executes the action instructions to complete real-time obstacle avoidance, and execute the robot motion control algorithm after receiving the decision data so as to drive the motor to adjust the motion action according to the decision data.
[0010] The embodiment of this specification also provides a robot real-time obstacle avoidance method, the robot real-time obstacle avoidance method comprising:
[0011] The first embedded platform determines that the robot and the obstacle are in an emergency obstacle avoidance state according to the first sensing data, and then generates obstacle avoidance data within the detection range of the robot to transmit an emergency avoidance instruction or a deceleration instruction to the second embedded platform, so as to control the motor driver through the second embedded platform to make the robot avoid or decelerate; wherein the first sensing data includes obstacle feature data, and the obstacle feature data includes obstacle contour edge data and distance information data to the obstacle;
[0012] Among them, based on the robot's dynamic planning and driving process, the operating state between the robot and the obstacle is determined according to the tangent direction along the edge of the obstacle contour detected by the sensor. The distance between the tangent of the edge on both sides of the obstacle and the origin of the robot sensor and the angle between the tangent of the edge on both sides and the robot are detected respectively to determine whether the robot and the obstacle are in an emergency obstacle avoidance state or a normal operating obstacle avoidance state, so as to execute obstacle avoidance decisions.
[0013] Compared with the prior art, the beneficial effects that can be achieved by at least one of the above technical solutions adopted in the embodiments of this specification include at least:
[0014] The present application utilizes the strong real-time characteristics of the embedded hardware platform and adopts the proposed real-time obstacle avoidance method (algorithm strategy) to generate obstacle avoidance information in real time, and sends the real-time obstacle avoidance information directly to the second embedded platform through the first embedded platform to immediately execute instructions, thereby improving the robot's dynamic obstacle avoidance performance and enhancing safety; and the real-time obstacle avoidance information generated by the first embedded platform is transmitted to the robot control platform, which can still provide a basis for the robot's navigation trajectory planning, etc. The decision data generated by the robot control platform is sent to the second embedded platform to timely correct the driving route, thereby improving the robot's obstacle avoidance reliability and obstacle avoidance response speed; thereby meeting the requirements for high safety and high reliability of robots in industrial scenarios where robots require high-speed walking and high-speed operations. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0016] Figure 1 It is a schematic diagram of the hardware platform of a mobile working robot obstacle avoidance system provided by the present application;
[0017] Figure 2 It is a schematic diagram of the sensor signal data transmission channel provided by this application;
[0018] Figure 3 It is a scene diagram of the obstacle contour tangent detection method captured by the sensor provided in the present application;
[0019] Figure 4 This is the scene diagram of real-time detection and processing of obstacle contour tangents provided by this application;
[0020] Figure 5 is a flow chart of a real-time obstacle avoidance method for a mobile working robot provided in the present application;
[0021] Figure 6 This is a schematic diagram provided by the application for judging the distance and number of obstacles;
[0022] Figure 7 This is a schematic diagram for determining the driving direction of a mobile working robot provided in this application. DETAILED DESCRIPTION
[0023] The embodiments of the present application are described in detail below with reference to the accompanying drawings.
[0024] The following describes the implementation methods of the present application through specific examples, and those skilled in the art can easily understand other advantages and effects of the present application from the contents disclosed in this specification. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. The present application can also be implemented or applied through other different specific implementation methods, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present application. It should be noted that, in the absence of conflict, the following embodiments and the features in the embodiments can be combined with each other. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work belong to the scope of protection of the present application.
[0025] It should be noted that various aspects of the embodiments within the scope of the appended claims are described below. It should be apparent that the aspects described herein can be embodied in a wide variety of forms, and any specific structure and / or function described herein is merely illustrative. Based on the present application, it should be understood by those skilled in the art that an aspect described herein can be implemented independently of any other aspect, and two or more of these aspects can be combined in various ways. For example, any number and aspect described herein can be used to implement the device and / or practice the method. In addition, other structures and / or functionalities other than one or more of the aspects described herein can be used to implement this device and / or practice this method.
[0026] It should also be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present application. The drawings only show components related to the present application rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.
[0027] Additionally, in the following description, specific details are provided to facilitate a thorough understanding of the examples. However, it will be understood by those skilled in the art that the examples can be practiced without these specific details.
[0028] Mobile working robots are used in industrial manufacturing scenarios, and their driving behavior is restricted by the conditions of the industrial production line. Only robots that meet the production rhythm and operation requirements of the production line can be successfully applied to such scenarios.
[0029] However, it is obvious that the reliability and performance of mobile working robots in such scenarios cannot meet the requirements for robots to be used in industrial manufacturing scenarios.
[0030] Normally, the robot control platform is based on the x86 platform structure and is a non-real-time system. After the robot sensor data is input, complex and time-consuming calculations are required to obtain the perception results so that the robot control platform can make decisions based on them. This process not only causes the robot core controller computing resources to be tight, but also the robot response speed, obstacle recognition, obstacle avoidance operation, etc., when the robot is driving at high speed, there is a certain degree of untimely response, which may cause the robot to collide or fail to avoid obstacles, thereby causing losses and affecting industrial production.
[0031] The inventors found that this type of scenario places high demands on the reliability and performance of the robot. Specifically:
[0032] The robot must have a high driving speed to meet the production line rhythm requirements. For example, if the robot has a slow driving speed, it cannot meet the material transfer rhythm requirements on the production line.
[0033] The robot must have a relatively fast response capability, such as the ability to avoid obstacles quickly, and the ability to plan the driving route in advance, especially the ability to dynamically plan and adjust the driving route. Because in many cases, the production workshop is a mixed operation scene of equipment, people, mobile equipment, etc. When the mobile robot is operating in such a complex and dynamically changing scene, it has a high driving speed, and the robot's obstacle avoidance response speed is required to be high, because whether it can successfully avoid obstacles or make timely obstacle avoidance responses is related to production safety issues.
[0034] To this end, a system or method is needed that can quickly identify obstacles and make quick decisions, so that when the robot is driving at high speed in complex and dynamically changing scenes, it can respond to obstacles in a timely, rapid and reliable manner, especially avoid sudden obstacles, to ensure adequate safety.
[0035] In this context, the present application proposes a real-time mobile working robot obstacle avoidance system and a real-time obstacle avoidance method, which are simple and effective.
[0036] Based on this, the embodiment of this specification proposes a new solution for robot obstacle avoidance: utilizing the strong real-time characteristics of the embedded hardware platform, adopting the proposed real-time obstacle avoidance method (algorithm strategy), generating obstacle avoidance information in real time, and sending the real-time obstacle avoidance information directly to the second embedded platform through the first embedded platform to immediately execute instructions, thereby improving the robot's dynamic obstacle avoidance performance and enhancing safety; and the real-time obstacle avoidance information generated by the first embedded platform is transmitted to the robot control platform, which can still provide a basis for the robot's navigation trajectory planning, etc., and the decision data generated by the robot control platform is sent to the second embedded platform to timely correct the driving route, thereby improving the robot's obstacle avoidance reliability and obstacle avoidance response speed; thereby meeting the requirements for high safety and high reliability of robots in industrial scenarios where robots require high-speed walking and high-speed operations.
[0037] The technical solutions provided by various embodiments of the present application are described below in conjunction with the accompanying drawings.
[0038] Figure 1 It is the hardware platform of this application, specifically the "x86 + dual embedded hardware" platform. The x86 platform (i.e., the robot control platform) runs the robot operating system and the robot control system. The first embedded hardware platform (corresponding to the first embedded platform) performs real-time obstacle avoidance algorithm processing, which has fast and real-time characteristics. The first embedded hardware platform communicates data with the x86 platform; shares RAM or data bus communication. (i.e., the first embedded platform communicates with the robot control platform via RAM or data bus)
[0039] The first embedded hardware platform communicates with the second embedded platform (which executes the robot motion control algorithm processing).
[0040] Specifically, the robot obstacle avoidance system includes a first embedded platform, a second embedded platform and a robot control platform.
[0041] The first embedded platform is respectively connected to the robot control platform and the second embedded platform for communication, specifically, data transmission is performed through a communication bus, and SPI (Serial Peripheral Interface) communication is performed. The first embedded platform is used to execute a real-time obstacle avoidance algorithm and generate obstacle avoidance data, the robot control platform is used to execute the overall system control functions such as robot perception, navigation, and decision-making, and generate decision data, and the second embedded platform is used to execute a robot motion control algorithm according to the obstacle avoidance data and the decision data, so that the robot performs motion actions.
[0042] The first embedded platform is used to obtain the first sensor data output by the sensor, the first sensor data includes obstacle feature data, and executes the real-time obstacle avoidance algorithm to generate obstacle avoidance data when the first sensor data is obtained; the robot control platform is used to obtain all the sensor data and the obstacle avoidance data output by the sensor, the all sensor data includes the first sensor data and other sensor data except the first sensor data, and generates decision data after obtaining the all sensor data and the obstacle avoidance data; the second embedded platform is used to immediately execute the robot motion control algorithm upon receiving the obstacle avoidance data so as to complete the output of the action instructions required for obstacle avoidance according to the obstacle avoidance data, so that the motor used to perform the motion action in the robot executes the action instruction to complete the real-time obstacle avoidance, and execute the robot motion control algorithm after receiving the decision data so as to drive the motor to adjust the motion action according to the decision data. All sensor data also include obstacle shape, obstacle outline and obstacle distance.
[0043] like Figure 2 As shown, the sensor may be a lidar, a binocular camera, or both; it may also be other types of sensors or combinations, such as an ultrasonic sensor.
[0044] After the sensor captures the obstacle information, it transmits data to the first embedded platform and the x86 platform through its own sensor communication interface, such as Ethernet or CameraLink (a serial communication protocol for machine vision applications).
[0045] The first embedded platform and the x86 platform perform corresponding processing after receiving the sensor data; however, due to the different data processing capabilities of the two platforms, the processing methods are also different.
[0046] The first embedded platform sends the processing result to the x86 platform and the second embedded platform simultaneously.
[0047] The second embedded platform simultaneously receives the processing result from the x86 platform and the processing result from the first embedded platform.
[0048] Specifically, the first embedded platform is composed of DSP+FPGA array. The DSP performs mathematical calculations and processing tasks for real-time information data. The FPGA array is composed of multiple FPGA chips that perform parallel calculations at the same time. The parallel data processing capabilities of the FPGA are used to process the feature data from the sensor in real time to improve real-time performance.
[0049] The second embedded platform consists of a DSP core system and an industrial communication bus system, which is specifically used to process and analyze motion control data from the first embedded platform and the x86 controller platform, and convert it into recognizable communication data instructions such as the mobile robot wheel motor driver and the robot arm joint driver, so that the relevant actuators can perform motion control. The industrial communication bus is generally CanOpen and EtherCat bus.
[0050] The processing result of the first embedded platform is more real-time and has a faster response speed than that of the x86 platform. It will make a comprehensive judgment on whether to perform operations such as deceleration and avoidance based on the rapid identification of obstacles, the distance from the robot, the speed of the robot, the driving route of the robot, etc., and send direct instructions to the second embedded platform. The second embedded platform will immediately execute the instructions to improve safety; at the same time, the x86 platform receives the instructions and performs corresponding processing; such as changing the current robot's motion trajectory or motion speed; therefore, the obstacle avoidance instructions of the first embedded platform are the first priority or the highest priority because it has the fastest response capability. Before the processing result of the x86 platform is generated, the first embedded platform already has the processing result. This can solve the collision risk and even safety problems caused by the slow obstacle avoidance response and even the failure to avoid obstacles during the high-speed driving of the robot due to the large amount of processing calculations and the lagging response speed of the x86 platform.
[0051] While the robot is driving, the sensors continuously detect obstacles in the direction of travel.
[0052] The obstacle data detected by the sensor includes the shape, outline, distance and other data of the obstacle. Depending on the computing and processing capabilities of different hardware platforms, different scales of data are sent for processing.
[0053] The first embedded platform and the second embedded platform perform data transmission via a communication bus, such as SPI communication;
[0054] The first embedded platform has a faster response speed than the robot control platform.
[0055] The obstacle avoidance data generated by the first embedded platform has a faster processing speed and a higher real-time obstacle avoidance level than the decision data generated by the robot control platform.
[0056] For example, the X86 platform has strong computing power, low real-time performance, and can process all sensor signals.
[0057] The first embedded platform is only suitable for processing data with high real-time requirements. Therefore, it does not receive all the sensor data, but only processes data with strong obstacle characteristics, such as Figure 3The obstacle contour edge data, that is, the data along the tangent direction of the obstacle contour edge detected by the sensor, is most importantly the distance, such as the distance between the edge points A and B on both sides of the obstacle, the distance between the robot sensor point O, and the angle β.
[0058] It can be seen from this that although the first embedded hardware platform does not input all the information data about the obstacle detected by the sensor, but only receives the data in the tangent direction of the obstacle edge, the data still has strong characteristics and can represent the distance and size information of the obstacle. After being processed by the embedded CPU, it can still provide a basis for the robot's navigation trajectory planning. Of course, it can also provide a basis for the robot's obstacle avoidance operation with the fastest result output.
[0059] In addition, on the one hand, the robot obtains the distance and angle of the tangent line of the front obstacle contour, and on the other hand, the two contour tangent lines extend outward at a certain angle, such as Figure 3 The detection data within the α1 and α2 angle ranges are still obtained. The two sets of data will be provided to the robot x86 platform for calculation and decision-making, so as to control the angle direction in which the robot will drive to avoid the obstacles ahead. In general, the decision-making system tends to control the robot to drive to the side with a larger angle range if there is no second obstacle within the two angle ranges.
[0060] It should be noted that if Figure 3 The tangent detection method, processing, and decision-making shown are continuously performed, or dynamically performed, during the robot's driving process. The robot is constantly detecting, judging, and processing during its movement, which is a dynamic process.
[0061] In some embodiments, the first embedded platform processes obstacle feature data (such as strong obstacle feature data) in the sensor data to obtain obstacle avoidance data, and the obstacle feature data includes obstacle contour edge data and distance information data from the obstacle; the first embedded platform transmits the obstacle avoidance data to the robot control platform so that the robot control platform can make robot obstacle avoidance decisions; the robot control platform generates decision data based on all sensor data and the obstacle avoidance data, wherein all sensor data also includes obstacle shape, obstacle contour and obstacle distance. The obstacle avoidance decision includes enabling the robot to determine in advance whether there are subsequent obstacles in the driving direction or planned route based on the existing sensor data (such as obstacle avoidance data and all sensor data), and if so, dynamically adjust the driving route as soon as possible to avoid continuing to drive in areas where continuous obstacles appear.
[0062] In some embodiments, when the robot is in an emergency obstacle avoidance state, such as when the robot is driving at high speed, if obstacle 1 is a moving obstacle and suddenly appears within the detection range of the robot, the first embedded platform will identify it and determine it as a high risk based on the decision algorithm. It will send an emergency avoidance instruction or a deceleration instruction (i.e., a priority obstacle avoidance instruction) to the second embedded platform to directly control the robot to make emergency avoidance or decelerate and stop, so as to reduce the risk of collision.
[0063] In some embodiments, the first embedded platform transmits the generated obstacle avoidance data to the robot control platform, which determines the decision data corresponding to the obstacle and the robot's navigation route planning, and outputs normal operation obstacle avoidance instructions to the second embedded platform (including but not limited to changing the driving route, adjusting the driving direction, and driving according to the original route, etc.) to ensure that the robot operates in real-time with obstacle avoidance.
[0064] This application adopts the architectural design idea of two embedded platforms + control platform, extracts the key feature data (not all the data of the sensor) in the sensor data that characterizes the main features of the obstacle and processes it on the first embedded platform (only the feature data is used to adapt to the computing power of the first embedded platform, which is faster and more real-time. After processing by the first embedded platform, the control instruction is directly sent to the second embedded platform to execute the instruction immediately, thereby improving the dynamic obstacle avoidance performance of the robot and improving safety; the real-time obstacle avoidance information based on the first embedded platform is transmitted to the robot control platform so that the robot control platform can process all the sensor data and obtain more comprehensive and complete obstacle avoidance information to make decisions. It is sent to the second embedded platform as more complete information data than the obstacle avoidance information of the first embedded platform, completing further correction of the robot's obstacle avoidance behavior and improving the reliability and response speed of the robot's obstacle avoidance; thereby meeting the high safety and high reliability requirements of high-speed walking and high-speed operation of robots in industrial scenarios.
[0065] In addition, the traditional method of judging the distance of an obstacle by the distance between the robot and the obstacle has the problem that the shape of the obstacle is often irregular. When the sensor scans the obstacle, it will receive a large amount of distance information. This distance information comes from the surface of the obstacle facing the robot. The robot control system needs to perform comprehensive processing on this large amount of distance information to obtain the information that best indicates its accurate distance.
[0066] However, this application uses the obstacle contour tangent method to collect only the distance information at the obstacle contour tangent and the "field of view" angle formed by the contour tangent to determine the core information of the obstacle, which greatly reduces the amount of sensor data collected and is more conducive to the processing of the embedded platform. All the sensor data of the obstacle (including all the distance information on the surface) is sent to the robot controller platform for processing, because the controller platform is often based on industrial computers, has powerful data processing capabilities, and is not "afraid" of all the data from the sensor.
[0067] Specifically, the obstacle avoidance judgment method proposed in this application has three technical aspects:
[0068] 1. When any obstacle is in front of the robot sensor, the sensor does not need to judge its shape. It can obtain the most valuable obstacle data by judging only the size of the "visual" angle composed of the contour tangent, thereby obtaining key and useful data from a large amount of sensor data for processing; 2. The judgment of the obstacle distance is also based on the distance between the obstacle contour tangent and the robot sensor to judge the distance between the robot and the obstacle. A large amount of useless or invalid distance data from the obstacle surface to the robot (the surface may be concave, protruding, and irregular) can be discarded. This application does not care about the shape of the obstacle at all, but only cares about its contour tangent and the distance information at the tangent, which is equivalent to only extracting effective key information data, reducing the processing amount of sensor data, thereby saving computing resources. 3. The method of detecting whether there are other obstacles within the outward expansion angle range based on the contour tangent is conducive to the robot to judge obstacles more dynamically and quickly during driving and dynamically adjust the driving route. It is more reliable than the traditional method of simply judging the distance from the obstacle, because this is a judgment method based on whether there are obstacles within the "field of vision", while the traditional method of judging by distance is a method of judging whether there are obstacles ahead and how far or close the obstacles are.
[0069] In combination with the above embodiments, the present application provides a robot real-time obstacle avoidance method. Specifically, the robot real-time obstacle avoidance method includes: the first embedded platform determines that the robot and the obstacle are in an emergency obstacle avoidance state based on the first sensor data, and then generates obstacle avoidance data within the detection range of the robot to transmit emergency avoidance instructions or deceleration instructions to the second embedded platform, so as to control the motor driver through the second embedded platform to make the robot avoid or decelerate; wherein the first sensor data includes obstacle feature data, and the obstacle feature data includes obstacle contour edge data.
[0070] Among them, during the dynamic movement of the robot, the running state between the robot and the obstacle is determined according to the tangent direction along the edge of the obstacle contour detected by the sensor, and the distance between the tangent of the edge on both sides of the obstacle and the origin of the robot sensor and the angle between the tangent of the edge on both sides and the robot are detected to determine whether the robot and the obstacle are in an emergency obstacle avoidance state or a normal operation obstacle avoidance state, so as to execute the obstacle avoidance decision. Figure 3 The robot is moving dynamically as described. During the process of continuing, the present application detects the tangent edge of the obstacle contour to determine whether there is an obstacle in front of the robot, as described in detail above, and will not be repeated here. Then the walking route is dynamically adjusted to execute the robot's obstacle avoidance decision.
[0071] Among them, the obstacle avoidance data has a faster processing speed than the decision data generated by the robot control platform, and the real-time obstacle avoidance level is higher. On the one hand, the obstacle avoidance data can be directly transmitted from the first embedded platform to the second embedded platform. For example, based on the rapid identification of obstacles, the distance from the robot, the speed of the robot, the driving route of the robot and other information, a comprehensive judgment is made as to whether to perform operations such as deceleration and avoidance. The second embedded platform will immediately execute the instructions to improve safety. On the other hand, the obstacle avoidance data processed by the first embedded platform can still provide a basis for the robot's navigation trajectory planning. That is, the obstacle avoidance data processed by the first embedded platform is transmitted to the robot control platform as intermediate data with higher real-time performance and faster response speed to provide a basis for the robot's navigation trajectory planning.
[0072] Priority obstacle avoidance instructions include but are not limited to emergency avoidance instructions or deceleration and stop instructions. In the emergency obstacle avoidance state, if the robot is driving at high speed and obstacle 1 is a moving obstacle that suddenly appears within the robot's detection range, the first embedded platform will identify it and determine it as a high risk based on the decision algorithm, and will send an emergency avoidance instruction or deceleration instruction to the second embedded platform to directly control the robot to perform emergency avoidance or deceleration and stop to reduce the risk of collision.
[0073] The appearance of the moving obstacle includes that the robot changes from being free of obstacles to suddenly having an obstacle appear, or the robot faces an obstacle in the distance and then another obstacle suddenly appears at a closer distance to the robot.
[0074] In some embodiments, the first embedded platform transmits the generated obstacle avoidance data to the robot control platform, and the robot control platform determines the decision data corresponding to the obstacle and the robot navigation route planning, and then uses the robot control platform to output normal operation obstacle avoidance instructions to the second embedded platform to ensure that the robot avoids obstacles in real time. Normal operation obstacle avoidance instructions include but are not limited to changing the driving route, adjusting the driving direction, and driving along the original route. The corresponding decision data in the navigation route planning process include but are not limited to driving along the original route, changing the driving route, and changing the driving direction, that is, slightly modifying the driving route and continuing to drive along the original route.
[0075] In some embodiments, if the first embedded platform determines based on the obstacle feature data that the obstacle encountered by the robot changes from no obstacle to a first obstacle, or the obstacle encountered by the robot changes from one obstacle to a first obstacle and a second obstacle, it is determined that the robot and the obstacle are in an emergency obstacle avoidance state; the first obstacle is closer to the robot than the second obstacle.
[0076] In some embodiments, if the first embedded platform determines that the robot encounters two obstacles based on the tangent data between the robot and the obstacle, and determines that there is a contour tangent of another obstacle within the first detection angle range on one side of the first obstacle, and there is a second detection angle on the other side of the first obstacle but no contour tangent of other obstacles within the second detection angle, wherein the first detection angle is smaller than the second detection angle; the first embedded platform determines that the first obstacle avoidance data indicates that there is a second obstacle along the direction of the first detection angle, but there is no second obstacle along the direction of the second detection angle, and the first embedded platform transmits the first obstacle avoidance data to the robot control platform; the robot control platform obtains a dynamically corrected driving trajectory based on the first obstacle avoidance data. In the embodiments of this specification, each detection angle is within the detection range of the robot sensor.
[0077] Combination Figure 3 ,like Figure 4 The robot knows the starting point and final destination, and has planned the driving route.
[0078] However, during the driving process, obstacles 1 and 2 exist in sequence. Figure 5, firstly, obstacle 1 is detected. According to the detected tangent data, such as OA, OB, and the sensor data within the extended angle range α1 and α2, it is found that within the detection angle range α1, another obstacle contour tangent is detected, causing the angle range α1 to be smaller than the angle range α2. Therefore, the result obtained after calculation by the first embedded platform is that along the robot's driving direction, there is a second obstacle in front of the robot to the right, while the second obstacle is not found in the left front. The result is sent to the x86 hardware platform robot controller as the basis for dynamically correcting the driving trajectory. Therefore, when the robot encounters obstacle 1, it dynamically adjusts the driving trajectory.
[0079] In addition, when the robot is driving at high speed, if obstacle 1 is a moving obstacle and suddenly appears within the detection range of the robot, the first embedded platform will identify it and determine it as a high risk based on the decision algorithm, and will send an emergency avoidance command or a deceleration command to the second embedded platform to directly control the robot to make an emergency avoidance or decelerate and stop, so as to reduce the risk of collision.
[0080] The above processing method enables the robot to determine in advance whether there are subsequent obstacles in the driving direction or planned route based on the existing sensor data. If so, the driving route is dynamically adjusted as soon as possible to avoid continuing to drive in areas where continuous obstacles appear.
[0081] Specifically, the robot control platform obtains a dynamically corrected driving trajectory according to the first obstacle avoidance data.
[0082] Combination Figure 4 ,like Figure 5 Even if the x86 platform makes a decision and calculation and believes that the difference between the angles α1 and α2 is within a certain allowable range, the original driving path of the robot will not be significantly corrected; however, the driving path will be dynamically adjusted slightly to allow the robot to avoid obstacle 1 and continue to drive along the original route. When driving continues, obstacle 2 becomes the nearest direct obstacle (located on the robot's planned route), and the x86 platform makes a decision and calculation based on whether there are other obstacles ahead. Alternatively, during the current trip, part of obstacle 2 is on the original planned route, but it does not affect the robot's main route. The x86 platform will dynamically adjust the driving route slightly to allow the robot to pass smoothly by obstacle 2. Otherwise, the robot control platform will process the data according to the first priority, such as Figure 4 As shown, the originally planned driving route of the robot is corrected to a dynamically adjusted driving route. The first obstacle refers to the obstacle closest to the robot; the second obstacle refers to other obstacles detected by the robot within the outreach angle range except the first obstacle.
[0083] That is, the robot control platform determines that the corresponding detection angle of each obstacle is within a preset range based on the first obstacle avoidance data, then the robot control platform determines that the robot runs according to the preset driving route when encountering each obstacle, but adjusts the robot from the first driving direction to a corrected second driving direction, wherein the second driving direction is corrected less than the first driving direction, so as to satisfy the robot to continue to drive along the preset driving route after avoiding the obstacle; or, the robot runs until encountering each obstacle, and the robot control platform determines that the robot continues to run according to the preset driving route; wherein each obstacle includes a first obstacle or at least one second obstacle.
[0084] In some embodiments, when the first embedded platform detects at least one obstacle within the detection range of the robot, the distance of each obstacle relative to the robot is determined based on the distance between the robot and the tangent of the obstacle; if the robot faces the first obstacle, the first distance and the second distance of the tangents on both sides are obtained respectively, and whether there are tangents of other obstacles within the extended angle range of each detection angle in the third detection angle and the fourth detection angle corresponding to both sides of the obstacle are determined; if the tangents of other obstacles correspond to the third distance or the fourth distance, it is determined that there is a second obstacle; wherein the third distance or the fourth distance is respectively greater than the first distance and the second distance corresponding to the first obstacle.
[0085] like Figure 6 In the first embedded platform, the robot determines the distance of the obstacle by judging the distance at the tangent line of the obstacle (the distance between the position of the sensor O and the position of the tangent line of the obstacle). Figure 6 LA, LB, LC shown in . When the robot determines that LA and LB are the distances between the two sides of the same obstacle, the distances to the tangent points of other obstacles within the extended angle range, such as LC, can be used as a criterion for determining whether obstacle 2 is the second obstacle.
[0086] In some embodiments, if the first embedded platform determines that the robot is facing an obstacle based on the obstacle contour edge data, and the second driving angle corresponding to the second position of the robot is greater than the first driving angle corresponding to the first position, the robot control platform determines that the robot is running according to a preset driving route.
[0087] The first driving angle or the second driving angle represents the side of the robot facing the obstacle, and it drives to the corresponding first position or the second position respectively. The angle between the tangent of the side corresponding to the first position of the robot and the driving axis of the robot is the first driving angle, and the angle between the tangent of the side corresponding to the second position of the robot and the driving axis of the robot is the second driving angle.
[0088] The robot driving axis is represented as the axis between the first position and the second position of the robot when the robot is located at the first position and the second position respectively.
[0089] The second position of the robot travels in a straight line relative to the first position, and the second position is closer to the robot than the first position.
[0090] While driving, the robot makes real-time assessments of obstacles ahead to determine whether the navigation adjustment strategy is appropriate.
[0091] like Figure 7 In the figure, assume that the robot determines the posture adjustment angle and verifies whether the posture adjustment result is appropriate by comparing the relevant data at the front and rear positions, position 1 and position 2, during the driving process; for the convenience of explanation, assume that the direction of the robot does not change during driving and it drives in a straight line. In fact, the driving path of the robot changes in real time during driving. It does not necessarily drive in a straight line all the time, and it may also adjust the driving angle frequently. However, from the perspective of real-time control, when the distance between two adjacent points in front and behind the robot is close to a certain extent, it can be considered that the robot is driving in a straight line during this period, such as Figure 7 Position 1 and position 2 in the figure indicate that the robot's driving angle remains unchanged and it is driving in a straight line. The axis between the two positions of the robot is set as the KX line; then for the same obstacle, at the two positions, the angles between the tangent on one side of the obstacle and the KX line are θ1 and θ2 respectively.
[0092] When θ2>θ1, the robot is moving in the direction away from or avoiding obstacles. At the same time, the θ2 angle can also be compared with other previous angles. The change trend of the angle can also be used to determine whether the robot's obstacle avoidance decision-making measures are appropriate, which can be used as one of the methods to test the control effect.
[0093] This application utilizes the strong real-time characteristics of the embedded hardware platform and adopts the proposed real-time obstacle avoidance method (algorithm strategy) to generate obstacle avoidance information in real time, improve the robot's dynamic obstacle avoidance performance, and promptly correct the driving route; and improve the robot's obstacle avoidance reliability and obstacle avoidance response speed, thereby meeting the requirements for high safety and high reliability of robots in industrial scenarios where robots require high-speed walking and high-speed operation.
[0094] The same or similar parts between the various embodiments in this specification can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the product embodiment described later, since it corresponds to the method, the description is relatively simple, and the relevant parts can be referred to the partial description of the system embodiment.
[0095] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.
Claims
1. A real-time obstacle avoidance method for robots, It is characterized in that The robot real-time obstacle avoidance method comprises: The first embedded platform acquires first sensor data output by the sensor, determines that the robot and the obstacle are in an emergency obstacle avoidance state according to the first sensor data, and then executes a real-time obstacle avoidance algorithm within the detection range of the robot to generate obstacle avoidance data for transmitting an emergency avoidance instruction or a deceleration instruction to the second embedded platform when acquiring the first sensor data; Upon receiving the obstacle avoidance data, the second embedded platform immediately executes the robot motion control algorithm to output the action instructions required for obstacle avoidance according to the obstacle avoidance data, so that the motor driver used to perform the motion action in the robot executes the action instruction to make the robot avoid or slow down, thereby completing real-time obstacle avoidance; wherein the first sensor data includes obstacle feature data, and the obstacle feature data includes obstacle contour edge data and distance information data to the obstacle; The robot control platform is used to obtain all the sensor data and the obstacle avoidance data output by the sensor, wherein the all the sensor data include the first sensor data and other sensor data except the first sensor data, and execute the robot overall control function and generate decision data after obtaining the all the sensor data and the obstacle avoidance data; the second embedded platform executes the robot motion control algorithm after receiving the decision data so as to drive the motor to adjust the motion according to the decision data; Among them, during the dynamic movement of the robot, the running state between the robot and the obstacle is determined according to the tangent direction along the edge of the obstacle contour detected by the sensor, and the distance between the tangent of the edge on both sides of the obstacle and the origin of the robot sensor and the angle between the tangent of the edge on both sides and the robot are detected to determine whether the robot and the obstacle are in an emergency obstacle avoidance state or a normal operation obstacle avoidance state, so as to execute the obstacle avoidance decision; Wherein, when the robot is in an emergency obstacle avoidance state, the first embedded platform directly transmits the generated obstacle avoidance data to the second embedded platform, so that the second embedded platform outputs a priority obstacle avoidance instruction to enable the robot to avoid obstacles in real time; the emergency obstacle avoidance state includes that the obstacle encountered by the robot changes from one obstacle to a first obstacle and a second obstacle, then it is determined that the robot and the obstacle are in an emergency obstacle avoidance state; the first obstacle is closer to the robot than the second obstacle; The first embedded platform determines that the robot encounters two obstacles based on the tangent data between the robot and the obstacle, determines that there is a contour tangent of the second obstacle within a first detection angle range on one side of the first obstacle, and there is a contour tangent of a second detection angle on the other side of the first obstacle but no other obstacles within the second detection angle, wherein the first detection angle is smaller than the second detection angle, and the first embedded platform transmits the first obstacle avoidance data to the robot control platform; The robot control platform obtains a dynamically corrected driving trajectory according to the first obstacle avoidance data; The robot control platform determines, based on the first obstacle avoidance data, that the detection angle corresponding to each obstacle is within a preset range. The robot control platform determines that the robot runs along the preset driving route when encountering each obstacle, but adjusts the robot from the first driving direction to a corrected second driving direction, wherein the second driving direction is less corrected than the first driving direction, so as to satisfy the robot to continue to drive along the preset driving route after avoiding the obstacle. The first embedded platform determines that the robot faces an obstacle based on the obstacle contour edge data, and based on the fact that the second driving angle corresponding to the second position of the robot is greater than the first driving angle corresponding to the first position, the robot control platform determines that the robot runs according to a preset driving route; wherein the first driving angle and the second driving angle represent the side of the robot facing the obstacle, and the robot drives to the first position or the second position respectively, and the angle between the tangent of the first position of the robot corresponding to the side and the robot's driving axis is the first driving angle, and the angle between the tangent of the second position of the robot corresponding to the side and the robot's driving axis is the second driving angle; wherein the robot's driving axis is represented by the axis between the first position and the second position of the robot when the robot is located at the first position and the second position respectively; wherein the second position of the robot travels in a straight line relative to the first position, and the second position is closer to the robot than the first position.
2. The robot real-time obstacle avoidance method according to claim 1, It is characterized in that The robot real-time obstacle avoidance method also includes: The first embedded platform transmits the generated obstacle avoidance data to the robot control platform, which determines the decision data corresponding to the obstacle and the robot's navigation route planning. The robot control platform then outputs normal operation obstacle avoidance instructions to the second embedded platform to ensure the robot's real-time obstacle avoidance operation.
3. The robot real-time obstacle avoidance method according to claim 1, It is characterized in that The robot real-time obstacle avoidance method also includes: The first embedded platform detects at least one obstacle within the detection range of the robot, and determines the distance of each obstacle relative to the robot according to the distance between the robot and the tangent line of the obstacle.
4. A robot obstacle avoidance system, applied to the robot real-time obstacle avoidance method according to any one of claims 1 to 3, It is characterized in that include: A first embedded platform, a second embedded platform and a robot control platform, wherein the first embedded platform is communicatively connected with the robot control platform and the second embedded platform respectively.
5. The robot obstacle avoidance system according to claim 4, It is characterized in that The first embedded platform is composed of a DSP+FPGA array, wherein the DSP performs mathematical calculations and processing tasks for real-time information data; the FPGA array is composed of multiple FPGA chips that perform parallel calculations simultaneously, and utilizes the parallel data processing capability of the FPGA to process feature data from sensors in real time to improve real-time performance; The second embedded platform is composed of a DSP core system and an industrial communication bus system, which is used to process and analyze motion control data from the first embedded platform and the robot control platform, and convert them into communication data instructions corresponding to the wheel motor driver and the mechanical arm joint driver of the mobile working robot for issuance, so that the relevant actuators can perform motion control; the industrial communication bus includes CanOpen and EtherCat bus; The first embedded platform and the second embedded platform exchange data by means of communication; The obstacle avoidance data generated by the first embedded platform has a faster processing speed and a higher real-time obstacle avoidance level than the decision data generated by the robot control platform.
6. The robot obstacle avoidance system according to claim 4, It is characterized in that The first embedded platform communicates with the robot control platform via RAM or data bus; The sensor is connected to the first embedded platform and the robot control platform respectively through Ethernet or CameraLink to realize data transmission; Wherein, the robot control platform is set as an x86 architecture system; The sensor includes at least one of a laser radar, a binocular camera, and an ultrasonic sensor.
