Corridor environment-based robot navigation method, robot, and storage medium
By extracting corridor features and local map registration, the robot is controlled to run along the center line of the corridor, which solves the problem of global maps occupying too many resources in the existing technology and achieves efficient and stable robot autonomous navigation.
Patent Information
- Application Number
- PCT/CN2023/138859
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-04-24
- Filing Date
- 2023-12-14
- Publication Date
- 2024-10-31
AI Technical Summary
In the existing technology, the robot navigation method requires the construction of a global map to achieve autonomous navigation, which results in excessive use of computing resources and storage resources and can easily lead to navigation failure.
By obtaining the current frame point cloud data of the corridor area, extracting corridor features, determining the current centerline, performing local map registration, calculating the deviation between the robot's posture and the centerline, and controlling the robot to run along the corridor centerline to achieve autonomous navigation.
There is no need to build a global map, only a local map can be used to achieve autonomous navigation, saving hardware resources and improving navigation efficiency and stability.
Smart Images

Figure CN2023138859_31102024_PF_FP_ABST
Abstract
Description
A robot navigation method based on corridor environment, robot and storage medium Technical Field
[0001] The present invention relates to the field of navigation technology, and in particular to a robot navigation method based on a corridor environment, a robot and a storage medium. Background Art
[0002] In recent years, the field of intelligent robotics has developed rapidly, and mobile robots, as a key branch of this field, have also attracted increasing attention. To achieve complete autonomous navigation for mobile robots, it is necessary to use perception technology to perceive the surrounding environment and build a map; use algorithms to localize the robot within the environment; and finally, calculate and control the robot's path based on its own position (position and posture) and environmental information.
[0003] Mobile robots typically use sensors such as lidar, cameras, and wheeled odometry to collect information. Currently, there are three main robot navigation strategies. First, by attaching magnetic tape or ribbons to the road surface as guides, the robot uses its own magnetic or color sensors to follow the guides for positioning and navigation. Second, by attaching QR codes or other images to the ceiling as markers and constructing a global map of the environment in advance, the robot uses visual sensors such as cameras to complete positioning and navigation. Third, using laser SLAM (simultaneous localization and mapping) and visual SLAM technologies, the robot can simultaneously construct a map of the environment and determine its own position during operation, thereby helping the robot achieve autonomous navigation.
[0004] However, in the existing technology, for the guide rail solution, the robot's freedom of movement is greatly restricted, and it can only move along the guide rail, which brings many limitations to the application. At the same time, guide rails such as magnetic tapes attached to the ground are susceptible to wear and damage, and their robustness will decrease over time. For solutions with markers such as QR codes, it is necessary to build a global map of the environment in advance to complete positioning. For the slam solution, a complete global map needs to be built during the working process to assist the robot in positioning and ultimately complete autonomous navigation. However, the construction of the global map will take up a lot of computing resources and storage resources. When deployed on a robot with insufficient computing power, it will reduce the overall performance of the robot and even cause the robot navigation to fail. It can be seen that the robot navigation methods in the existing technology basically require the construction of a global map to complete positioning in order to achieve autonomous navigation, but the global map requires too many computing resources and storage resources, and is prone to navigation failure.
[0005] Therefore, the existing technology needs to be improved and enhanced.
[0006] Summary of the Invention
[0007] The technical problem to be solved by the present invention is that, in response to the above-mentioned defects of the prior art, a robot navigation method, a robot and a storage medium based on a corridor environment are provided, aiming to solve the problem that the robot navigation methods in the prior art basically require the construction of a global map to complete positioning in order to achieve autonomous navigation, but the global map requires too many computing resources and storage resources, and is prone to navigation failure.
[0008] In order to solve the above technical problems, the technical solutions adopted by the present invention are as follows:
[0009] In a first aspect, the present invention provides a robot navigation method based on a corridor environment, comprising: acquiring current frame point cloud data including a corridor area, and performing corridor feature extraction on the current frame point cloud data to obtain current corridor point cloud data; determining a current center line of the current corridor point cloud data based on the corridor features in the current corridor point cloud data, the current center line being used to characterize the center line of the corridor area of the robot in the current posture; aligning the current frame point cloud data with a local map obtained by splicing historical frame point cloud data to obtain the current posture data of the robot; calculating the deviation between the current posture data of the robot and the current center line, and controlling the robot's running path based on the deviation so that the robot runs along the center line of the corridor area.
[0010] In a second aspect, the present invention provides a robot navigation device based on a corridor environment, comprising: a point cloud feature extraction module for acquiring current frame point cloud data including a corridor area, and performing corridor feature extraction on the current frame point cloud data to obtain current corridor point cloud data; a centerline determination module for determining the current centerline of the current corridor point cloud data based on the corridor features in the current corridor point cloud data, wherein the current centerline is used to characterize the centerline of the corridor area of the robot in the current posture; a posture data determination module for aligning the current frame point cloud data with a local map obtained by splicing historical frame point cloud data to obtain the current posture data of the robot; a robot control module for calculating the deviation between the current posture data of the robot and the current centerline, and controlling the robot's running path based on the deviation so that the robot runs along the center line of the corridor area.
[0011] In the third aspect, the present invention provides a robot, which includes: a robot body, a rotating mechanism, a laser radar and a main control chip, wherein: the laser radar is connected to the robot body through the rotating mechanism, and is used to scan the application scene including the corridor area under the drive of the rotating mechanism to collect the current frame point cloud data including the corridor area; the main control chip is arranged on the robot body, and is used to process the current frame point cloud data according to the robot navigation method to control the robot to run along the center line of the corridor area.
[0012] In a fourth aspect, an embodiment of the present invention further provides a terminal device, wherein the terminal device includes a memory, a processor, and a robot navigation program based on a corridor environment stored in the memory and runnable on the processor. When the processor executes the robot navigation program based on the corridor environment, the steps of the robot navigation method based on the corridor environment of any one of the above-mentioned schemes are implemented.
[0013] In a fifth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a robot navigation program based on a corridor environment is stored. When the robot navigation program based on a corridor environment is executed by a processor, the steps of the robot navigation method based on a corridor environment of any one of the above-mentioned schemes are implemented.
[0014] Beneficial effects: Compared with the prior art, the present invention provides a robot navigation method based on a corridor environment, which obtains the current frame point cloud data including the corridor area and extracts the corridor features of the current frame point cloud data to obtain the current corridor point cloud data; determines the current center line of the current corridor point cloud data based on the corridor features in the current corridor point cloud data, and the current center line is used to characterize the center line of the corridor area of the robot in the current posture; aligns the current frame point cloud data with the local map obtained by splicing the historical frame point cloud data to obtain the current posture data of the robot; calculates the deviation between the current posture data of the robot and the current center line, and controls the running path of the robot based on the deviation so that the robot runs along the center line of the corridor area. Based on the navigation method provided by this application, it is not necessary to build a global map, but only to build a local map to achieve autonomous navigation of the robot, without occupying too many hardware resources, saving costs, and improving navigation efficiency and navigation stability. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] FIG1 is a schematic diagram of an application scenario of a robot navigation method based on a corridor environment provided by an embodiment of the present invention.
[0016] FIG2 is a flow chart of a specific implementation of a robot navigation method based on a corridor environment provided by an embodiment of the present invention.
[0017] FIG3 is a block diagram showing the principle of robot navigation based on a corridor environment according to an embodiment of the present invention.
[0018] FIG4 is a block diagram of the internal structure of a terminal device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0019] In order to make the purpose, technical solution and effect of the present invention clearer and more specific, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0020] This embodiment provides a robot navigation method based on a corridor environment, which can save costs and improve navigation efficiency and navigation stability.
[0021] Figure 1 shows an application scenario provided by the present application, in which a straight corridor is located in the middle and rooms are located on both sides. This scenario is common in environments such as hotels, KTVs, and apartments. The width of the corridor is known, and the doors in the corridor have the same and known widths. A robot used in the above scenario (such as a cleaning robot or a food delivery robot) needs to operate in the corridor (the arrow indicates the direction of the robot's operation) and identify the location of each door, thereby entering each room along the corridor in turn to scan and obtain point cloud data of the room. However, building a global map of the application scenario not only easily consumes a large amount of computing and storage resources of the robot, but also requires high computing power for the robot. At present, there is still no good method for navigation and positioning in similar scenarios with multiple rooms at both ends of the corridor. To this end, this embodiment provides a robot navigation method based on a corridor environment. When it is necessary to control the robot to work in the application scenario shown in Figure 1, the robot can use the navigation method provided by the present application to achieve autonomous navigation and operation in the corridor area without building a global map and with only a small amount of hardware resources.
[0022] In one embodiment, the robot includes: a robot body, a rotating mechanism, a laser radar and a main control chip; wherein the laser radar is connected to the robot body through the rotating mechanism, and is used to scan the application scene including the corridor area under the drive of the rotating mechanism to collect current frame point cloud data including the application scene; the main control chip is used to control the rotation of the rotating mechanism, and is also used to splice multiple frames of point cloud data collected by the laser radar within a preset fixed time to obtain a local map, and process the current frame point cloud and the local map according to the robot navigation method based on the corridor environment provided by one or more embodiments of the present application to obtain the current posture of the robot and control the robot to run along the center line of the corridor area based on the deviation between the current posture of the robot and the center line of the corridor, thereby realizing autonomous navigation of the robot.
[0023] Specifically, the LiDAR includes a transmitter, a receiver, and a processor. The transmitter is used to transmit a light beam to an application scenario, including a corridor area. The receiver is used to receive the light beam reflected by the application scenario and generate an image data, which is then transmitted to the processor. The processor is used to process the image to generate corresponding point cloud data. Furthermore, the rotation mechanism of this embodiment can drive the LiDAR to rotate 360° on the horizontal plane, and each rotation can collect a frame of local point cloud data.
[0024] In one embodiment, the robot body of this embodiment may also be provided with an odometer or IMU (inertial measurement unit) to assist in estimating the robot's position and posture data. In specific applications, the robot's main control chip obtains the current frame of point cloud data collected by the lidar, and within a preset fixed time, combines the position and posture data obtained by the odometer or IMU with multiple frames of point cloud data collected by the lidar to obtain a local map. Furthermore, at the current moment of the robot's operation, the current initial position and posture data obtained by the odometer or IMU, the current point cloud data collected by the lidar, and the local map are used to obtain the robot's current precise position and posture data. The deviation between the robot's current precise position and posture data and the centerline of the corridor is calculated, and the robot is controlled to operate along the centerline of the corridor based on the deviation.
[0025] Exemplary Methods
[0026] The robot navigation method based on a corridor environment of this embodiment can be applied to a robot, which is an intelligent operating robot, such as a cleaning robot. Specifically, as shown in FIG2 , the method of this embodiment includes the following steps:
[0027] Step S10: Acquire the current frame point cloud data including the corridor area, and perform corridor feature extraction on the current frame point cloud data to obtain the current corridor point cloud data.
[0028] Specifically, the laser radar's transmitter emits a beam toward the planar area where the corridor is located, and the receiver receives the reflected beam, generating corresponding image data that is transmitted to the processor. The processor then processes the image data to obtain the current frame's point cloud data. Since the current frame's point cloud data includes corridor features, this embodiment can use this current frame's point cloud data to extract the current frame's corridor point cloud data.
[0029] In one implementation, this embodiment includes the following steps when extracting the corridor point cloud data of the current frame:
[0030] Step S101, obtaining preset width data of the corridor area;
[0031] Step S102: extracting parallel line features with preset width data as a width threshold from the current frame point cloud data, and using the point cloud data corresponding to the parallel line features as the current corridor point cloud data, wherein the parallel line features are corridor features.
[0032] Specifically, since the width of the corridor area in the scene of Figure 1 is fixed, this embodiment can first obtain the domain preset width data of the corridor area. Since the width data at any position in the corridor area of this embodiment is exactly the same, this embodiment can extract corridor features based on the method of extracting parallel line features, and then obtain the current corridor point cloud data. In specific implementation, this embodiment can extract parallel line features with the width data as the width threshold from the current frame point cloud data. This parallel line feature is the corridor feature, and the point cloud number corresponding to the extracted parallel line feature is the current corridor point cloud data.
[0033] Step S20: Based on the corridor features in the current corridor point cloud data, determine the current center line of the current corridor point cloud data, where the current center line is used to represent the center line of the corridor area in the current posture of the robot.
[0034] After obtaining the current corridor point cloud data, this embodiment can further determine the current center line of the current corridor data. The current center line of this embodiment is the center line of the corridor area, which is used to constrain the robot's navigation path and help the robot complete autonomous navigation so that it will not deviate from the predetermined track.
[0035] In one implementation, this embodiment includes the following steps when determining the current center line:
[0036] Step S201, obtaining the slopes and intercepts of two parallel lines in the parallel line feature;
[0037] Step S202: taking the slope of the two parallel lines as the target slope, and taking the average of the intercepts of the two parallel lines as the target intercept;
[0038] Step S203: Determine the current center line based on the target slope and the target intercept.
[0039] Specifically, since the current corridor point cloud data is generated by extracting parallel line features, the two parallel lines in the parallel line feature correspond to the two sides of the corridor area, respectively. Therefore, the current centerline of the corridor area is the line between the two parallel lines. To this end, this embodiment can construct the linear equations of the two parallel lines in the parallel line feature using the point cloud data located on the parallel lines to obtain the slopes of the two parallel lines in the parallel line feature. The slopes of the two parallel lines are the same. Since the current centerline is located between and parallel to the parallel lines, the target slope of the current centerline should also be the same as the slope of the parallel lines. In addition, this embodiment also obtains the intercepts of the two parallel lines based on the linear equations of the parallel lines. The target intercept of the current centerline should be the average of the intercepts of the two parallel lines to ensure that the current centerline is located in the middle of the two parallel lines. After obtaining the target slope and target intercept, the linear equation of the current centerline can be constructed based on the target slope and target intercept, thus obtaining the centerline of the corridor area and determining the position of the current centerline. The method for calculating the current centerline in this embodiment is simple, and the slope and intercept method can accurately determine the position of the centerline of the corridor area, which helps constrain the robot's navigation path in subsequent steps.
[0040] Step S30: align the current frame point cloud data with the local map obtained by splicing the historical frame point cloud data to obtain the current posture data of the robot.
[0041] Specifically, the current frame point cloud data is based on the point cloud data acquired at the current moment, the historical frame point cloud data is the point cloud data acquired at historical moments, that is, the point cloud data acquired at the moment before the current moment or at all moments before the current moment, and the local map is obtained by stitching together the local point cloud data collected by the lidar at historical moments in scenes including the corridor area. Furthermore, each frame of point cloud data corresponds to a pose. This embodiment aligns the current frame point cloud data with the local map using a nearest point iteration algorithm to obtain a relative transformation relationship between the current frame point cloud and the local map. Based on this relative transformation relationship, the current frame point cloud data is converted to the coordinate system of the local map, thereby obtaining the corresponding pose of the current frame point cloud relative to the local map and obtaining the current pose data of the robot.
[0042] It should be noted that in the process of aligning the current frame point cloud data with the local map through the nearest point iterative algorithm to obtain the relative transformation relationship between the current frame point cloud and the local map, when the current frame point cloud data and the local map are aligned for the first time, the robot posture data recorded by the odometer or IMU can be used as the initial relative transformation relationship value to achieve the first alignment of the current frame point cloud data with the local map, and then the initial relative transformation relationship value is iteratively optimized through the nearest point iterative algorithm to obtain the optimal relative transformation relationship.
[0043] In one implementation, this embodiment includes the following steps when constructing a local map:
[0044] Step S301: Acquire a number of local point cloud data collected for a local environment within a preset time period, and determine the pose data corresponding to each local point cloud data:
[0045] Step S302: transform all local point cloud data into the global coordinate system through the corresponding pose data, and splice all local point cloud data to obtain a local map.
[0046] Specifically, the robot of this embodiment collects a plurality of local point cloud data for the local environment shown in FIG1 within a preset time period and determines the pose data corresponding to each local point cloud data based on an odometry or an IMU. A queue is constructed to store the plurality of local point cloud data within the preset time period. To ensure navigation accuracy and real-time performance and prevent excessive errors in the constructed local map, this embodiment also stores the local point cloud data within the preset time period whose difference from the current time is less than a time threshold in the queue and removes the local point cloud data within the preset time period whose difference from the current time is greater than the time threshold from the queue. This ensures that the local point cloud data used to construct the local map is close to the current time, contributing to a more accurate local map. Furthermore, this embodiment uses voxel filtering to filter out redundant point cloud data. All local point cloud data in the queue are transformed to a global coordinate system using the corresponding pose data, and all local point cloud data are concatenated to produce a local map. The local map includes the point cloud data of several historical frames and the pose data corresponding to each historical frame of point cloud data.
[0047] Step S40: Calculate the deviation between the current posture data of the robot and the current center line, and control the running path of the robot based on the deviation so that it runs along the center line of the corridor.
[0048] After determining the current posture data and the current center line based on the above steps, the robot's running path can be controlled by calculating the deviation between the current posture data and the current center line so that it runs along the center line of the corridor. During control, it is necessary to ensure that the robot moves along the center line of the corridor area. For the sake of convenience, this application assumes that the robot's forward direction is the positive direction of the current center line. Based on this, in one implementation, step S400 of this embodiment specifically includes the following steps:
[0049] Step S401: Obtain positive direction information of the current center line, and determine a direction deviation between the robot's running direction and the positive direction information of the current center line based on the positive direction information;
[0050] Step S402: determining the offset distance between the current posture data and the current center line;
[0051] Step S403: Based on the direction deviation and the offset distance, control the robot to run along the current center line.
[0052] Specifically, the current center line of this embodiment is to divide the current corridor point cloud data into two groups of left and right point cloud data. When determining the positive direction information of the current center line, this embodiment obtains the two groups of point cloud data divided by the current center line, and then performs a rotation transformation and sorts them according to the X-axis coordinates. After sorting, the door position is extracted from the two groups of point cloud data respectively. During the extraction, the width of the door is known, so the door position is extracted based on the width of the door. If the corridor feature is extracted when the door position is extracted for the first time, the positive direction information of the current center line is randomly set. In addition, the door position identified at this time is also numbered according to the positive direction information of the current center line (such as left 1, left 2, right 1, right 2), thereby obtaining the door number information. In subsequent steps, the robot can be controlled to enter the corresponding room for scanning based on the door number information, so that the robot can navigate and locate in similar scenes with multiple rooms at both ends of the corridor.
[0053] If the door position is extracted when the door position is extracted for the first time, the historical center line is obtained, and based on the current center line and the historical center line, the positive direction information of the current center line is determined. Specifically, since the slope of the current center line is known, but the direction is unknown, this embodiment randomly selects one end point of the current center line as the starting point and the other end point as the end point, and calculates the direction of the current center line; obtains the direction of the historical center line, and compares the direction of the current center line with the direction of the historical center line: if the direction of the current center line is less than 180° from the direction of the historical center line, then the direction of the current center line is determined to be the positive direction information of the current center line; and if the direction of the current center line is greater than 180° from the direction of the historical center line, then the starting point and the end point of the current center line are interchanged, and the direction of the current center line is recalculated, and the recalculated direction of the current center line is used as the positive direction information of the current center line. At this point, this embodiment can identify doors at the same location as the historical centerline based on the positive direction information of the current centerline. If a door at the same location is identified, it is the same door, and the same door number information as in the historical centerline is assigned. If a door at a different location is identified, it is a newly detected door, and new door number information can be assigned. This embodiment does not specify a numbering rule for the door number information; it only needs to ensure that each door is assigned a unique number. For example, when numbering, doors on the left side of the corridor can be numbered with odd numbers, and doors on the right side of the corridor can be numbered with even numbers. Alternatively, doors along the positive direction information can be numbered with +2, and doors against the positive direction information can be numbered with -2.
[0054] When the positive direction information of the current center line is obtained, this embodiment can determine the direction deviation between the robot's running direction and the positive direction information of the current center line based on the positive direction information. The direction deviation reflects whether the robot's running direction is the same as the positive direction information of the current center line. If the direction deviation is that the robot's running direction is opposite to the positive direction information of the current center line, the robot is controlled to retreat and switch the running direction; if the direction deviation is that the robot's running direction is the same as the positive direction information of the current center line, the robot is controlled to move forward. In one implementation, this embodiment also determines the offset distance between the current posture data and the current center line. If the offset distance exceeds a preset distance threshold, the robot is controlled to run close to the current center line, and after reaching the current center line, it runs along the current center line. If the offset distance does not exceed the preset distance threshold, the robot can be directly controlled to continue running in the current direction.
[0055] In summary, the corridor-based robot navigation method provided in this embodiment acquires the robot's current pose and the current position of the corridor centerline as viewed by the robot during each frame of point cloud data. By calculating the directional and displacement deviations between the corridor centerline and the robot's current pose, the robot's path is adjusted in real time, ensuring that the robot always follows the corridor centerline. It should be noted that this navigation method is applicable to commercial service robots, such as hotel service robots and KTV guide robots, as well as agricultural and animal husbandry robots and industrial inspection robots that meet the scenario described in Figure 1.
[0056] Exemplary devices
[0057] Based on the above embodiments, FIG3 shows a robot navigation device for a corridor environment according to the present application. This device can be used in the robot's main control chip and includes a point cloud feature extraction module 401, a centerline determination module 402, a pose data determination module 403, and a robot control module 404. Specifically, the point cloud feature extraction module 401 is configured to obtain current frame point cloud data including the corridor area and perform corridor feature extraction on the current frame point cloud data to obtain the current corridor point cloud data. The centerline determination module 402 is configured to determine the current centerline of the current corridor point cloud data based on the corridor features in the current corridor point cloud data. The current centerline is used to represent the centerline of the corridor area in the robot's current posture. The pose data determination module 403 is configured to align the current frame point cloud data with a local map spliced from historical frame point cloud data to obtain the robot's current pose data. The robot control module 404 is configured to calculate the deviation between the robot's current pose data and the current centerline and, based on this deviation, control the robot's path so that it follows the corridor's centerline.
[0058] The working principles of the various functional modules in the robot navigation device of this embodiment are the same as the execution process of the various steps in the above method embodiment, and will not be repeated here.
[0059] Based on the above embodiments, the present invention further provides a terminal device, and the principle block diagram of the terminal device can be shown in Figure 4. The terminal device may include one or more processors 100 (only one is shown in Figure 4), a memory 101, and a computer program 102 stored in the memory 101 and executable on one or more processors 100, for example, a program for robot navigation based on a corridor environment. When one or more processors 100 execute the computer program 102, the various steps in the embodiment of the method for robot navigation based on a corridor environment can be implemented. Alternatively, when one or more processors 100 execute the computer program 102, the functions of the various modules / units in the embodiment of the robot navigation device based on a corridor environment can be implemented, which is not limited here.
[0060] In one embodiment, the processor 100 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor.
[0061] In one embodiment, the memory 101 may be an internal storage unit of an electronic device, such as a hard disk or memory of the electronic device. The memory 101 may also be an external storage device of the electronic device, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the electronic device. Furthermore, the memory 101 may also include both an internal storage unit of the electronic device and an external storage device. The memory 101 is used to store computer programs and other programs and data required by the terminal device. The memory 101 may also be used to temporarily store data that has been output or is about to be output.
[0062] Those skilled in the art will understand that the principle block diagram shown in Figure 4 is only a block diagram of a partial structure related to the solution of the present invention, and does not constitute a limitation on the terminal device to which the solution of the present invention is applied. The specific terminal device may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.
[0063] Those skilled in the art will understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, operating database or other media used in the embodiments provided by the present invention may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), Direct RAM Bus Dynamic RAM (DRDRAM), and Rambus Dynamic RAM (RDRAM), among others.
[0064] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present invention.
Claims
1. A robot navigation method based on a corridor environment, characterized in that: The method comprises: Acquire current frame point cloud data including the corridor area, and perform corridor feature extraction on the current frame point cloud data to obtain current corridor point cloud data; Based on the corridor features in the current corridor point cloud data, determine a current center line of the current corridor point cloud data, where the current center line is used to represent the center line of the corridor area in the current posture of the robot; The current frame point cloud data is registered with a local map obtained by splicing the historical frame point cloud data to obtain the current posture data of the robot; The deviation between the current posture data of the robot and the current center line is calculated, and the running path of the robot is controlled based on the deviation so that the robot runs along the center line of the corridor area.
2. The robot navigation method based on corridor environment according to claim 1 is characterized in that: The extracting corridor features from the current frame point cloud data to obtain the current corridor point cloud data includes: Acquire preset width data of the corridor area; A parallel line feature with the preset width data as a width threshold is extracted from the current frame point cloud data, and the point cloud data corresponding to the parallel line feature is used as the current corridor point cloud data, wherein the parallel line feature is the corridor feature.
3. The robot navigation method based on corridor environment according to claim 2 is characterized in that: The determining, based on the corridor features in the current corridor point cloud data, a current center line of the current corridor point cloud data comprises: Obtaining the slopes and intercepts of two parallel lines in the parallel line feature; The slope of the two parallel lines is taken as the target slope, and the average of the intercepts of the two parallel lines is taken as the target intercept; The current centerline is determined based on the target slope and the target intercept.
4. The robot navigation method based on corridor environment according to claim 1, characterized in that: The local map is constructed in the following manner: Get some local point cloud data collected for the local environment within a preset time period, and determine the pose data corresponding to each local point cloud data: All local point cloud data are transformed into a global coordinate system through corresponding posture data, and all local point cloud data are spliced to obtain the local map.
5. The robot navigation method based on corridor environment according to claim 1, characterized in that: The step of calculating the deviation between the current posture data of the robot and the current center line, and controlling the running path of the robot based on the deviation so that the robot runs along the center line of the corridor area, comprises: Acquire the positive direction information of the current center line, and determine the direction deviation between the running direction of the robot and the positive direction information of the current center line based on the positive direction information; Determine an offset distance between the current position and the center line; Based on the direction deviation and the offset distance, the robot is controlled to run along the current center line.
6. The robot navigation method based on corridor environment according to claim 5, characterized in that: The obtaining of the positive direction information of the current center line includes: Obtaining two groups of point cloud data divided by the current center line into which the current corridor point cloud data is divided, and extracting door positions from the two groups of point cloud data respectively; If the corridor feature is extracted when the door position is extracted for the first time, the positive direction information of the current center line is randomly set; If the door position is extracted when the door position is extracted for the first time, the historical center line is obtained, and the positive direction information of the current center line is determined based on the current center line and the historical center line.
7. The robot navigation method based on corridor environment according to claim 6, characterized in that: The determining, based on the current center line and the historical center line, the positive direction information of the current center line includes: Select one endpoint of the current center line as the starting point and the other endpoint as the end point, and calculate the direction of the current center line; Obtaining the direction of the historical center line, and comparing the direction of the current center line with the direction of the historical center line; If the direction of the current center line is less than 180° from the direction of the historical center line, then determining the direction of the current center line as the positive direction information of the current center line; If the direction of the current center line is greater than 180° from the direction of the historical center line, the starting point and the end point of the current center line are swapped, and the direction of the current center line is recalculated, and the recalculated direction of the current center line is used as the positive direction information of the current center line.
8. The robot navigation method based on corridor environment according to claim 5, characterized in that: The controlling the robot to run along the current center line based on the direction deviation and the offset distance includes: If the direction deviation means that the running direction of the robot is opposite to the positive direction information of the current center line, the robot is controlled to move backward and switch the running direction; If the direction deviation means that the running direction of the robot is the same as the positive direction information of the current center line, controlling the robot to move forward; If the offset distance exceeds a preset distance threshold, the robot is controlled to run close to the current center line, and after reaching the current center line, the robot runs along the current center line.
9. The robot navigation method based on corridor environment according to claim 8, characterized in that: The method further comprises: Based on the positive direction information of the current center line, the door positions are numbered to obtain door number information; The robot is controlled to enter a corresponding room for scanning based on the door number information.
10. A robot navigation device based on a corridor environment, characterized in that: include: A point cloud feature extraction module is used to obtain the current frame point cloud data including the corridor area, and perform corridor feature extraction on the current frame point cloud data to obtain the current corridor point cloud data; A centerline determination module, used to determine a current centerline of the current corridor point cloud data based on the corridor features in the current corridor point cloud data, wherein the current centerline is used to represent the centerline of the corridor area in the current posture of the robot; A posture data determination module is used to align the current frame point cloud data with a local map obtained by splicing historical frame point cloud data to obtain the current posture data of the robot; The robot control module is used to calculate the deviation between the current posture data of the robot and the current center line, and control the running path of the robot based on the deviation so that the robot runs along the center line of the corridor area.
11. A robot, characterized in that: The robot comprises: a robot body, a rotating mechanism, a laser radar and a main control chip, wherein: The laser radar is connected to the robot body through the rotating mechanism, and is used to scan the application scene including the corridor area under the drive of the rotating mechanism to collect the current frame point cloud data including the corridor area; The main control chip is arranged on the robot body, and is used to process the current frame point cloud data according to the robot navigation method according to any one of claims 1-9 to control the robot to run along the center line of the corridor area.
12. A terminal device, characterized in that: The terminal device includes a memory, a processor, and a robot navigation program based on a corridor environment stored in the memory and executable on the processor. When the processor executes the robot navigation program based on the corridor environment, the steps of the robot navigation method based on the corridor environment as described in any one of claims 1 to 9 are implemented.
13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a robot navigation program based on a corridor environment. When the robot navigation program based on a corridor environment is executed by a processor, the steps of the robot navigation method based on a corridor environment as described in any one of claims 1-9 are implemented.
Citation Information
Patent Citations
Method and system for realizing robot row identification and guiding based on laser radar detection
CN106249742A
AGV navigation positioning method for container loading
CN111060105A
Positioning method, device and equipment
CN111443359A
Distance and course measurement method based on laser radar
CN113325428A
Orchard path identification method and robot based on laser radar and vision
CN113778081A
Cited By
Dynamic environment adaptive navigation method, robot and central processing unit
CN120538486A
Robot navigation control method and device, robot and storage medium
CN121165744A
Railway inspection path planning method and system based on leg-foot type robot
CN122524120A
