Positioning navigation method and device, electronic equipment and readable storage medium

By collecting multi-frame images and establishing map data on the robot platform, combined with the three-dimensional sparse point cloud map and deep learning model, high-precision visual relocation in a multi-camera environment is achieved, solving the problem of positioning on the robot platform in the existing technology. The problem of low accuracy and high computing power requirements improves navigation accuracy and efficiency.

CN118730099APending Publication Date: 2024-10-01BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202310324156.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-29
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

It is difficult to promote the deep learning positioning method on the robot platform with the existing technology, especially in the multi-camera environment, it is difficult to achieve high-precision visual repositioning, and the deep learning model requires high computing power, making it difficult to meet the needs of the robot platform.

Method used

By collecting multiple frames of images in the target scene, map data is established to determine the planned path of the robot in the target scene, and the relocation function is called when the robot moves to adjust the driving path in real time to determine the true pose, using the three-dimensional sparse point cloud map and deep learning models for positioning and navigation.

Benefits of technology

It improves the accuracy and precision controllability of robot navigation, supports the relocation of multi-camera cameras, and reduces the storage and processing load of image feature data, making it suitable for robot platforms.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118730099A_ABST
    Figure CN118730099A_ABST
Patent Text Reader

Abstract

The invention relates to a positioning and navigation method and device, electronic equipment and a readable storage medium, and the method comprises the steps: collecting multiple frames of images in a target scene through a camera on a robot, building map data of the target scene according to the multiple frames of images and a robot pose corresponding to each frame of image in the multiple frames of images, and carrying out the positioning and navigation of the target scene based on the map data. Determining a planned path of the robot moving from the initial position to the target position in the target scene, determining a real pose of the robot by calling a repositioning function when the robot moves according to the planned path, and adjusting a driving path of the robot according to the real pose to enable the robot to drive according to the planned path; when the robot travels according to the planned path, the real pose of the robot can be determined by calling the repositioning function, and then the traveling path of the robot is adjusted in real time, so that the robot travels according to the planned path, and the navigation precision of the robot is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of robot positioning technology, and in particular to a positioning and navigation method, device, electronic device and readable storage medium. Background Art

[0002] Visual relocalization refers to the process of estimating the robot's position and posture through the images obtained by the camera set on the robot when the robot enters a known map area. That is, by establishing a relationship between the current camera image and a set of known reference images in the map database, the position of the robot's position in the world coordinate system when the current image is obtained is calculated. It can provide centimeter-level accurate indoor and outdoor positioning information for robot navigation scenarios, augmented reality (AR) / virtual reality (VR) applications, and outdoor autonomous driving scenarios.

[0003] At present, the positioning method based on deep learning has higher accuracy in image feature extraction under conditions such as lighting changes and weak textures than the traditional Oriented FAST and Rotated BRIEF (ORB) algorithm and Scale-invariant feature transform (SIFT) algorithm. However, the deep learning model requires high platform computing power, so it is difficult to promote and use on robot platforms. In addition, the robot platform usually has a multi-camera structure. Therefore, on the robot platform, how to design a re-localization model that supports multiple cameras is a challenge. Summary of the invention

[0004] In order to overcome the problems existing in the related art, the present disclosure provides a positioning and navigation method, device, electronic device and readable storage medium.

[0005] According to a first aspect of an embodiment of the present disclosure, there is provided a positioning and navigation method, comprising: collecting multiple frames of images in a target scene;

[0006] Establishing map data of the target scene according to the multiple frames of images and the robot posture corresponding to each frame of the multiple frames of images;

[0007] Based on the map data, determining a planned path for the robot to move from an initial position to a target position in the target scene;

[0008] When the robot moves according to the planned path, determining the real position and posture of the robot by calling a repositioning function;

[0009] The driving path of the robot is adjusted according to the actual position and posture so that the robot drives according to the planned path.

[0010] Optionally, the collecting of multiple frames of images in the target scene includes:

[0011] When the robot moves a specified distance, the camera data is collected once; and / or when the robot rotates a specified angle, the camera data is collected once to obtain the multiple frames of images;

[0012] Or collecting the camera data once at a specified time interval to obtain the multiple frames of images;

[0013] Or, a collection frequency is determined according to the moving speed of the robot, and the camera data is collected and stored according to the collection frequency to obtain the multiple frames of images.

[0014] Optionally, establishing map data of the target scene according to the multiple frames of images and the robot posture corresponding to each frame of the multiple frames of images includes:

[0015] Determine the robot posture corresponding to each frame of the multiple frames of images;

[0016] After completing the image acquisition of the target scene, a plurality of frames of original images are obtained, and redundant data in the plurality of frames of original images are filtered to obtain the plurality of frames of images;

[0017] Extracting image features from the multiple frames of images; the image features include global features, local features and matching relationships, and the matching relationship is a corresponding relationship between pixels of a current frame of image and a predetermined number of frames of image after the current frame of image;

[0018] Storing the image features in a database;

[0019] Retraining to obtain a deep learning model according to the global features, the local features and the matching relationship;

[0020] Determine a three-dimensional sparse point cloud map of the target scene based on a structure-from-motion (SFM) algorithm according to the robot posture corresponding to each frame in the multiple images and the image features;

[0021] The map data is obtained based on the three-dimensional sparse point cloud map and the global features.

[0022] Optionally, determining a planned path for the robot to move from an initial position to a target position in the target scene based on the map data includes:

[0023] After detecting that the robot enters the target scene, acquiring the map data and current camera data;

[0024] Determining the initial position according to the current camera data;

[0025] selecting the target location based on the map data;

[0026] Based on the map data, a planned path for moving from the initial position to the target position is determined by a navigation module of the robot.

[0027] Optionally, when the robot moves according to the planned path, determining the actual position and posture of the robot by calling a relocation function includes:

[0028] When the robot moves according to the planned path and receives a call request for the relocation function,

[0029] Acquire multiple frames of image data of the robot at the current position through the camera;

[0030] determining a query image from the plurality of frames of image data according to the map data;

[0031] Clustering multiple similar images of the query image, and selecting the largest cluster as a reference image;

[0032] Extracting local features of the query image and reading local features of the reference image from a database;

[0033] According to the relationship between the feature points of the reference image and the three-dimensional sparse point cloud map, and the two-dimensional matching relationship between the query image and the reference image, the true posture of the robot at the current position and the number of inner points of the query image are determined based on the motion positioning algorithm; the number of inner points is the number of three-dimensional points with correct matching relationship in the query image.

[0034] Optionally, determining a query image from the multiple frames of image data according to the map data includes:

[0035] Extracting global features of the multi-frame image data;

[0036] Filtering multiple similar images of each frame of the image data from the map data according to the global features of the image data;

[0037] A similar image that meets a preset condition is determined as a query image; the preset condition is the similar image with the largest number of three-dimensional points among the multiple similar images.

[0038] Optionally, the positioning and navigation method further includes:

[0039] When the number of inner points of the query image is greater than or equal to a specified threshold, determining that the relocation is successful, and returning the real position obtained by the relocation to the robot;

[0040] When the number of inner points of the query image is less than a specified threshold, it is determined that the relocalization has failed, and the robot is controlled to move to a certain position and then the relocalization function is called again.

[0041] Optionally, the positioning and navigation method further comprises: searching, according to the real posture, from the map data for a first image corresponding to a posture that is closest to the real posture in space;

[0042] Acquire a first pose of the robot corresponding to the first image;

[0043] The confidence of the true posture is determined according to the distance between the true posture and the first posture.

[0044] Optionally, the positioning and navigation method further includes: when the confidence level is less than a certain threshold, controlling the robot to re-judge the confidence level of the real position obtained by repositioning.

[0045] According to a second aspect of an embodiment of the present disclosure, there is provided a positioning and navigation device, comprising: collecting multiple frames of images in a target scene;

[0046] A processing module is configured to establish map data of the target scene according to the multiple frames of images and the robot posture corresponding to each frame of the multiple frames of images;

[0047] a planning module configured to determine a planned path for the robot to move from an initial position to a target position in the target scene based on the map data;

[0048] The processing module is further configured to determine the real position and posture of the robot by calling a repositioning function when the robot moves according to the planned path;

[0049] The adjustment module is configured to adjust the driving path of the robot according to the actual posture so that the robot drives according to the planned path.

[0050] According to a third aspect of an embodiment of the present disclosure, there is provided an electronic device, comprising: a processor; and a memory for storing processor executable instructions; wherein the processor is configured to execute the executable instructions to implement the steps of the aforementioned positioning and navigation method.

[0051] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the steps of the positioning and navigation method provided in the first aspect of the present disclosure are implemented.

[0052] According to a fifth aspect of an embodiment of the present disclosure, a chip is provided, comprising a processor and an interface; the processor is used to read instructions to execute the steps of the aforementioned positioning and navigation method.

[0053] The technical solution provided by the embodiments of the present disclosure may include the following beneficial effects: collecting multiple frames of images in the target scene through the camera on the robot, establishing map data of the target scene according to the multiple frames of images and the robot posture corresponding to each frame of the multiple frames, determining the planned path for the robot to move from the initial position to the target position in the target scene based on the map data, and when the robot moves according to the planned path, determining the real posture of the robot by calling the repositioning function, and adjusting the driving path of the robot according to the real posture so that the robot travels according to the planned path; when the robot travels according to the planned path, the real posture of the robot can be determined by calling the repositioning function, and then adjusting the driving path of the robot in real time so that the robot travels according to the planned path, thereby improving the navigation accuracy of the robot and ensuring controllable accuracy.

[0054] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0056] Figure 1 A schematic diagram of an application scenario of a robot provided by an exemplary embodiment of the present disclosure.

[0057] Figure 2 The present invention is a flowchart of a positioning and navigation method according to an exemplary embodiment of the present invention.

[0058] Figure 3 The present invention is a flowchart of another positioning and navigation method according to an exemplary embodiment of the present invention.

[0059] Figure 4 The present invention is a block diagram of a positioning and navigation device according to an exemplary embodiment of the present invention.

[0060] Figure 5 The present invention is a block diagram of an apparatus for positioning and navigation according to an exemplary embodiment of the present invention.

[0061] Figure 6 The present invention is a block diagram of an apparatus for positioning and navigation according to an exemplary embodiment of the present invention. DETAILED DESCRIPTION

[0062] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0063] It is to be understood that in the present disclosure, "plurality" refers to two or more than two, and other quantifiers are similar thereto. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B may represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. The singular forms "a", "the" and "the" are also intended to include plural forms, unless the context clearly indicates other meanings.

[0064] It is further understood that, although the operations are described in a specific order in the drawings in the embodiments of the present disclosure, it should not be understood as requiring the operations to be performed in the specific order or serial order shown, or requiring the execution of all the operations shown to obtain the desired results. In certain environments, multitasking and parallel processing may be advantageous.

[0065] It should be noted that all actions of acquiring signals, information or data in the present disclosure are carried out in compliance with the relevant data protection laws and policies of the country where the device is located and with the authorization given by the owner of the corresponding device.

[0066] The current mainstream visual relocalization method is to pre-establish map data through a motion-based 3D reconstruction (Structure From Motion, SFM) algorithm, then establish a matching relationship between the current image features and the map data, and then use the algorithm to calculate the robot's posture when the robot obtains the current image. Its positioning accuracy is strongly related to the image feature quality of the current image, but this method usually has a large amount of calculation and occupies more storage resources; other methods such as posture regression based on deep learning and posture difference are more efficient, but generally have lower accuracy.

[0067] Since deep learning models require high platform computing power, the industry currently basically runs high-precision visual relocalization on server platforms, with the hierarchical visual relocalization open source architecture (Hierarchical-Localization) as the mainstream method, which performs well on open source datasets.

[0068] The deep learning model framework running on the server platform requires high computing power and storage resources, so it is difficult to run the framework on the robot platform. For example, for a map with 500 pictures, the construction time is about 1 hour. When only considering the monocular camera, the relocalization time is about 6 seconds, which is difficult to meet the user's demand for robots. In addition, most robot scenes currently use multi-cameras, and the relocalization time will increase with the increase in the number of cameras. The feature data stored in the framework is in h5 format, which is not efficient in reading and traversing data, and has no management capabilities for multiple maps. The operation process of the framework is generally applicable to offline mapping scenarios and cannot be directly applied to real-time robot operation scenarios. The framework does not support multi-camera environments, which are common configurations for robots. The framework has no confidence judgment on the relocalization results, and users are unclear whether the relocalization results are accurate.

[0069] Based on the above reasons, the present disclosure proposes a positioning and navigation method that can be applied to a robot. Figure 1 In the scenario shown, see Figure 1 , Figure 1 A schematic diagram of an application scenario of a robot provided by an exemplary embodiment of the present disclosure is shown, and the application scenario of the robot includes one or more robots 120 and a server 140.

[0070] The robot 120 and the server 140 are connected to each other via a wired or wireless network.

[0071] The robot 120 includes a display, which can be used to display information such as the robot's initial position, target position, and planned path.

[0072] The robot 120 includes a first memory and a first processor. The first memory stores a static map constructed according to the environment in which the robot is located. The first memory may include, but is not limited to, the following: Random Access Memory (RAM), Read Only Memory (ROM), Programmable Read-Only Memory (PROM), Erasable Programmable Read-Only Memory (EPROM), and Electric Erasable Programmable Read-Only Memory (EEPROM).

[0073] The first processor may be composed of one or more integrated circuit chips. Optionally, the first processor may be a general-purpose processor, such as a central processing unit (CPU) or a network processor (NP). Optionally, the first processor may control the robot to perform navigation tasks, delivery services, meal delivery services, guest reception services, etc. according to the walking path in the static map.

[0074] The server 140 includes a second memory and a second processor. A second program is stored in the second memory, and the second program is called by the second processor to implement the path planning method provided by the present disclosure. Exemplarily, a static map constructed according to the environment in which the robot is located is stored in the second memory, and the second program is called to implement the path planning method provided by the present disclosure. Optionally, the second memory may include but is not limited to the following: RAM, ROM, PROM, EPROM, EEPROM. Optionally, the second processor may be a general-purpose processor, such as a CPU or NP.

[0075] The server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and basic cloud computing services such as big data and artificial intelligence platforms, etc., but is not limited to these. The robot and the server can be directly or indirectly connected through wired or wireless communication, which is not limited in this disclosure.

[0076] Figure 2 A flowchart of a positioning and navigation method is shown in an exemplary embodiment of the present disclosure. Figure 2 As shown, the positioning and navigation method is applied to Figure 1 In the robot or server shown, the positioning and navigation method includes the following steps.

[0077] In step S21, multiple frames of images in the target scene are collected.

[0078] Among them, the target scene refers to the scene for which map data needs to be constructed; the robot is provided with a camera, and in one embodiment, the camera can be a multi-eye camera, for example, a left-eye camera, a right-eye camera and a front-eye camera, the left-eye camera is used to obtain the left visual scene image during the movement of the robot, the right-eye camera is used to obtain the right visual scene image during the movement of the robot, and the front-eye camera is used to obtain the front visual scene image during the movement of the robot.

[0079] In the stage of building map data, the robot is controlled to move in the scene that needs to be mapped. During the movement of the robot in the target scene, multiple frames of images are collected through the multi-eye camera on the robot. Because the robot will be in different postures during the movement of the target scene, the multi-eye camera can be used to obtain images containing different scenes. The different images obtained by the robot correspond to the different postures of the robot.

[0080] In step S22, map data of the target scene is established according to the multiple frames of images and the robot posture corresponding to each frame of the multiple frames of images.

[0081] In the aforementioned steps, the collection of multiple frames of images of the target scene is completed, and each frame of the multiple frames corresponds to a robot posture. In this step, map data is established offline. Exemplarily, map data of the target scene is established based on the multiple frames of images and the robot posture corresponding to each frame of the multiple frames.

[0082] In step S23, based on the map data, a planned path for the robot to move from the initial position to the target position in the target scene is determined.

[0083] The initial position may be the current position of the robot, and the target position may be any position specified by the user except the current position.

[0084] After the map data is built, the robot enters the map scene and enters the navigation mode. The robot's initial position in the map can be determined through the multi-camera data. The user can select another point B on the map as the target location, and the navigation module plans the path. For example, the robot can autonomously navigate to point B along the planned path based on the real-time position of the robot provided by the Simultaneous Localization and Mapping (SLAM) technology in the map.

[0085] In step S24, when the robot moves according to the planned path, the real position and posture of the robot is determined by calling the relocalization function.

[0086] When the robot moves along the planned path, the real position and posture of the robot is determined by calling the relocalization function; illustratively, the robot's real-time position and posture is provided by SLAM technology. During the process of autonomously navigating to point B along the planned path, the relocalization function will be called at a certain frequency to obtain the robot's real position and posture, so as to correct the accumulated errors in the navigation process and improve the navigation accuracy.

[0087] Among them, the relocation function is obtained by recognizing multi-camera image data through a deep learning model, wherein the multi-camera image data is acquired by the robot in real time, and the deep learning model is trained based on multi-frame images of constructed map data.

[0088] In step S25, the driving path of the robot is adjusted according to the actual position and posture so that the robot drives according to the planned path.

[0089] When the robot is driving along the planned path, the real position of the robot can be determined by calling the repositioning function, and then the driving path of the robot can be adjusted in real time so that the robot can drive along the planned path. This improves the navigation accuracy of the robot and ensures that the accuracy is controllable. At the same time, it supports the repositioning of multiple cameras.

[0090] See also Figure 3 , Figure 3 FIG. 1 is a flowchart of another positioning and navigation method shown in an exemplary embodiment of the present disclosure. The method is executed by an electronic device, for example, by Figure 1 The scenario shown can be performed by a robot or server.

[0091] It should be noted that Figure 3 The positioning and navigation method shown is Figure 2 The implementation methods of the positioning and navigation methods shown are consistent in content. Figure 3 For reference not mentioned in Figure 2 The description will not be repeated here.

[0092] Figure 3 The positioning and navigation method shown includes the following steps:

[0093] In step S31, multiple frames of images in the target scene are collected.

[0094] During the stage of building map data, the robot will start the SLAM module to calculate the robot's posture in real time. The SLAM module is an external algorithm module that collects the robot's posture data in real time and calculates the robot's movement speed, posture change speed, and rotation speed.

[0095] In one embodiment, a multi-camera is installed on the robot, and when the robot moves a specified distance, the multi-camera data is collected and stored once; and / or when the robot rotates a specified angle, the multi-camera data is collected and stored once to obtain multiple frames of images; the specified distance and the specified angle can be determined based on empirical data, or determined in other feasible ways, and the present disclosure does not limit this. Exemplarily, the robot can collect and store multi-camera data once every time it moves 0.25m or rotates 20°.

[0096] In one implementation, the multi-camera data may be collected and stored once at a specified time interval to obtain multiple frames of images; for example, in some special cases, the robot may be stagnant. At this time, if the multi-camera data is collected once according to the specified movement distance or rotation angle, the robot may not collect the multi-camera data for a long time. Therefore, the multi-camera data may be collected and stored once at a specified time interval to obtain multiple frames of images. For example, the multi-camera data may be collected and stored at least once within 1 second.

[0097] In one embodiment, the acquisition frequency can be determined according to the movement speed of the robot, and the multi-camera data can be collected and stored according to the acquisition frequency to obtain multiple frames of images. For example, in a scenario where the robot moves at a high speed, if the multi-camera data is collected and stored once every specified time, or the multi-camera data is collected and stored once every specified distance, it may cause the collected images to have little connection in the scene, the correlation is not strong, and the scene distance between adjacent images is far. Therefore, in a scenario where the robot moves at a high speed, a corresponding higher acquisition frequency can be set, and the robot can be controlled to collect and store the multi-camera data according to this acquisition frequency, and finally obtain multiple frames of images.

[0098] In step S32, map data of the target scene is established according to the multiple frames of images and the robot posture corresponding to each frame of the multiple frames of images.

[0099] During the stage of building map data, the robot will start the SLAM module to calculate the robot's posture in real time. Therefore, according to the time of collecting multi-camera images, the robot's posture corresponding to each frame of multi-camera image collection can be known.

[0100] In the process of establishing map data offline, the map data of the target scene can be established based on multiple frames of images and the robot posture corresponding to each frame of the multiple frames. In order to enable the present method to be applied on a robot platform, the map data constructed in the present disclosure is a three-dimensional sparse point cloud map. The specific steps for establishing the map data of the target scene are as follows:

[0101] Step 1: After completing image acquisition of the target scene, multiple frames of original images are obtained, and redundant data in the multiple frames of original images are filtered to obtain multiple frames of images.

[0102] The collected multiple frames of original images may contain some repeated images, which is very redundant for the three-dimensional sparse point cloud map. In order to avoid the images occupying more storage resources, the redundant data in the multiple frames of original images will be filtered in the present disclosure to obtain multiple frames of images. For example, the content and position of the current frame image and the next few frames of images in time reach a similarity of 99%. In this case, a representative image can be selected from the current frame image and the next few frames of images, and the remaining redundant images can be deleted, which can improve the efficiency of building map data.

[0103] The positioning and navigation method provided by the present invention redesigns the entire map data construction and repositioning process for robot application scenarios. Usually, the frequency of the robot's camera is 15-30hz, which is very redundant for three-dimensional sparse maps. In the map data construction stage, pictures are dynamically collected according to the robot's running speed, and a large number of redundant pictures are removed to improve the efficiency of map data construction and support multi-camera models.

[0104] Step 2: Extract image features from multiple frames of images.

[0105] Among them, the image features include global features, local features and matching relationships. Global features refer to the features of the entire image, such as the information or content contained in the image; local features refer to the feature points of the entire image, which are pixels with representative information in the image; the matching relationship is the correspondence between the pixels of the current frame image and the predetermined number of frames of images after the current frame image, which refers to the temporal sequence. Because the images are collected in real time, these images have temporal correlation. For example, the same object may be in different image positions in different images. For example, the pixel point of the highest point of a chair is in different positions in different images. Then the correspondence between the pixel point representing the highest point of the chair on the current frame image and the pixel point representing the highest point of the chair on another frame image is the matching relationship between the images. The predetermined number can be determined based on empirical data or in other feasible ways. The present disclosure does not limit this. For example, it can be the correspondence between the pixels of the current frame image and the 5 frames of images after the current frame image.

[0106] Step 3: Store image features in the database.

[0107] In one implementation, the extracted image features may be stored in a designated database.

[0108] In one embodiment, for the extracted image feature file, the largest part is the local features of each picture. Assuming that a picture includes 1000 feature points, each feature point is a 256-dimensional 32-bit floating point (float32) data, that is, the features of each image occupy 1MB of space. Usually, a small indoor scene requires 500-1000 pictures to express, and its occupied space is very large. Therefore, it is necessary to compress the image features, and since several local features need to be dynamically loaded during the relocation process, it is also necessary to maintain efficient random read and write capabilities. This algorithm compresses float32 data into 16-bit floating point (float16) to store data, and the data scale of local features is reduced by half, and the local feature data is converted into binary data and directly stored in a specified database. After establishing a database index, the local features are made to have higher read and write performance. Global features are usually smaller, and all need to be loaded during relocation, so all global features can be stored in a separate binary file to ensure efficient read and write.

[0109] The positioning and navigation method provided by the present disclosure redesigns the storage and organization of image feature data, reduces the size of image feature data, and improves reading and writing efficiency.

[0110] Step 4: Retrain the deep learning model based on global features, local features and matching relationships.

[0111] The aforementioned deep learning model includes a first model for extracting global features, a second model for extracting local features, and a third model for extracting matching relationships. After extracting the global features, local features, and matching relationships of multiple frames of the target scene, the first model, the second model, and the third model can be retrained based on the global features, the local features, and the matching relationships, so that the first model, the second model, and the third model can recognize the current target scene with higher accuracy.

[0112] According to the usage scenarios of the robot, this paper redesigns the process of the robot relocalization algorithm. In order to ensure the performance of the first model, the second model and the third model on a lower computing power platform, the three models used in the relocalization process are deeply optimized. Finally, experiments show that the performance of the positioning and navigation algorithm provided by this paper is 2-3 times higher than that of the traditional algorithm.

[0113] Step 5: According to the robot posture and image features in each frame of the multiple frames, the three-dimensional sparse point cloud map of the target scene is determined based on the SFM algorithm.

[0114] The SFM algorithm refers to determining the spatial and geometric relationship of the target through the movement of the camera, and is a common method for 3D reconstruction. For example, according to the robot posture corresponding to each frame in the known multi-frame image, as well as the feature points and matching relationship of each frame image, a 3D sparse point cloud map is triangulated based on the traditional SFM algorithm. At the same time, since the robot posture corresponding to the image is provided by the SLAM module, the robot posture has a high credibility. Therefore, the robot posture corresponding to the image is finally fixed, and only the 3D points are optimized to obtain the final 3D sparse point cloud map.

[0115] In the process of map building, support for multi-camera images has been added. In addition, for scenarios where the robot may support multiple maps, a database is established to store map information meta-information, including map ID, map storage location, and map creation time, thereby realizing the management of multiple maps.

[0116] Step 6: Use the 3D sparse point cloud map and global features as map data.

[0117] The three-dimensional sparse point cloud map and global features are used as map data for the robot navigation process.

[0118] In step S33, based on the map data, a planned path for the robot to move from the initial position to the target position in the target scene is determined.

[0119] After detecting that the robot enters the target scene, the robot is controlled to load the map data obtained above and obtain the current multi-camera data, that is, the image information is collected by the multi-camera, and the initial position is determined according to the current multi-camera data. The initial position is the current position of the robot; the user can arbitrarily select another position B on the map as the target position, and then obtain the target position selected by the user based on the map data. Based on the map data, the robot's navigation module determines the planned path from the initial position to the target position.

[0120] In step S34, when the robot moves according to the planned path, the real position and posture of the robot is determined by calling the relocalization function.

[0121] The robot can autonomously navigate to point B along the planned path based on the real-time position of the robot provided by the SLAM module in the map. During the navigation process, the relocalization function will be called at a certain frequency to obtain the real position of the robot to correct the accumulated errors in the navigation process.

[0122] Therefore, when the robot moves according to the planned path and receives a call request for the relocation function, the current position of the robot is relocated. The specific steps of the relocation process are as follows:

[0123] Step 1: First, use a multi-eye camera to obtain multi-frame image data of the robot at its current position.

[0124] Exemplarily, the multi-eye camera includes a left eye camera, a right eye camera and a front eye camera. The left eye camera is used to obtain the visual scene image on the left side of the robot, the right eye camera is used to obtain the visual scene image on the right side of the robot, and the front eye camera is used to obtain the visual scene image in front of the robot. Each eye camera can obtain one or more frames of images. For the purpose of illustration in this disclosure, it is assumed that each eye camera collects one frame of image data, and the left eye camera, the right eye camera and the front eye camera collect three frames of image data in total.

[0125] Step 2: Determine the query image from multiple frames of image data based on the map data.

[0126] Exemplarily, firstly, the global features of the image data acquired by each eye in the multi-eye camera are extracted, that is, the global features of the three frames of image data obtained in step one are extracted; then, based on the global features of the image data, multiple similar images of each eye image data are screened from the map data. For example, for each of the three frames of image data, the similarity between all images in the map data and the image data is calculated by a similarity algorithm, all images are sorted in descending order according to the similarity, and a specified number of images sorted in front are used as similar images; finally, the image data corresponding to the similar image with the largest number of three-dimensional points among the multiple similar images is determined as a candidate image, and the candidate image is used as a query image.

[0127] Because each of the three frames of image data corresponds to multiple similar images, the image data corresponding to the similar image with the largest number of three-dimensional points among all similar images may be from the left camera, the right camera, or the front camera, and finally the image data is determined as the candidate image.

[0128] Among them, three-dimensional points refer to feature points in similar images that represent spatial three-dimensional information; the specified number can be but is not limited to 10, and the specified number can be determined based on empirical data or other feasible methods, and the present disclosure does not impose any restrictions on this.

[0129] The advantage of a robot's multi-camera is its large field of view, but if data from multiple cameras are involved in the relocalization process, it is very inefficient. Therefore, the multi-camera selection algorithm designed in the present invention selects the best image data from multiple cameras for relocalization, thereby improving the relocalization efficiency without losing much accuracy.

[0130] Step 3: Cluster multiple similar images of the query image and select the largest cluster as the reference image.

[0131] Image clustering refers to extracting image features through an algorithm model from a variety of original image files, and then using a clustering algorithm to cluster the features to group similar images into one category, select the largest category as the reference image, and exclude erroneous similar images.

[0132] Step 4: Extract local features of the query image and read local features of the reference image from the database.

[0133] Exemplarily, the local features of the query image can be extracted by the aforementioned second model; because the reference image is known, the local features of the reference image can be directly read from the database.

[0134] Step 5: According to the relationship between the feature points of the reference image and the three-dimensional sparse point cloud map, and the two-dimensional matching relationship between the query image and the reference image, the true pose of the robot at the current position and the number of inner points of the query image are determined based on the PNP algorithm.

[0135] The local features of the reference image and the local features of the query image are matched pairwise to obtain a two-dimensional matching relationship between the reference image and the query image. Since the relationship between the feature points of the reference image and the three-dimensional sparse point cloud map is known, the relationship between the two-dimensional feature points of the query image and the three-dimensional sparse point cloud map can be inferred. Then, the pose of the query image and the number of inliers of the query image are obtained based on the PNP algorithm; wherein the pose of the query image is the actual pose of the robot at its current position, and the number of inliers is the number of three-dimensional points with correct matching relationships in the query image.

[0136] Among them, the PNP (Perspective-n-Point) algorithm is a method for solving the motion of 3D (three-dimensional) to 2D (two-dimensional) point pairs. The problem it solves is to estimate the position of the camera when n 3D space points and their projection positions are known. The 3D position of the feature point can be determined by triangulation or the depth map of the RGB-D camera. The RGB-D camera specifically refers to a camera that measures distance physically to obtain RGB images and depth maps.

[0137] It should be noted that, when the number of inliers in the query image is greater than or equal to the specified threshold, the relocation is determined to be successful, and the real position obtained by relocation is returned to the caller. Exemplarily, the caller can be a calling module built into the robot; when the number of inliers in the query image is less than the specified threshold, the relocation is determined to be unsuccessful. At this time, the robot can be controlled to move a certain position and then call the relocation function again to relocate the robot. In one embodiment, the value range of the specified threshold can be, but is not limited to, 10-20.

[0138] It should be noted that, through experiments, it is found that if the current position of the robot deviates far from the planned path, even if the relocation is judged to be successful, its positioning accuracy will be low. This is because the deviation is very far, and there is a big difference between the image collected by the robot at the current position and the image in the map data, which will affect the calculation result. Therefore, a confidence assessment will be performed on the real posture of the relocation. Exemplarily, according to the real posture, the first image corresponding to the posture closest to the real posture is searched from the map data, and the first posture of the robot corresponding to the first image is obtained. According to the distance between the real posture and the first posture, the confidence of the real posture is determined; for example, if the distance is within 2m, the confidence of the real posture is as high as 1, and if the distance is within 2-5m, the confidence of the real posture can be set to 0.6-0.8, and the confidence is lower when the distance is above 4m, and the confidence is less than 0.5. It is necessary to control the caller to judge the confidence of the real posture obtained by relocation again to improve the navigation accuracy and ensure that the navigation accuracy of the robot is controllable.

[0139] In step S35, the driving path of the robot is adjusted according to the actual position and posture so that the robot drives according to the planned path.

[0140] When the robot is driving along the planned path, the real position of the robot can be determined by calling the repositioning function, and then the real driving path of the robot can be adjusted in real time, so that the robot can drive along the planned path, which improves the navigation accuracy of the robot and ensures that the accuracy is controllable.

[0141] In summary, the positioning and navigation method provided by the present disclosure includes: during the movement of the robot in the target scene, the multi-frame images collected by the multi-eye camera on the robot, the map data of the target scene is established according to the multi-frame images and the robot posture corresponding to each frame of the multi-frame images, based on the map data, the planned path of the robot moving from the initial position to the target position in the target scene is determined, when the robot moves according to the planned path, the real posture of the robot is determined by calling the repositioning function, and the driving path of the robot is adjusted according to the real posture so that the robot drives according to the planned path. In this way, the problem of deviation from the planned path due to errors when the robot is driving can be solved. Through the scheme of the present disclosure, even if the robot has deviations when driving according to the planned path, the real posture of the robot can still be corrected in time by calling the repositioning function, and then the driving path of the robot can be adjusted in real time according to the real posture of the robot, so that the robot drives according to the planned path, thereby improving the navigation accuracy of the robot and ensuring controllable accuracy.

[0142] Figure 4 FIG. 1 is a block diagram of a positioning and navigation device shown in an exemplary embodiment of the present disclosure. Figure 4 The positioning and navigation device 20 includes a collection module 201 , a processing module 202 , a planning module 203 and an adjustment module 204 .

[0143] The acquisition module 201 is configured to acquire multiple frames of images in the target scene;

[0144] The processing module 202 is configured to establish map data of the target scene according to the multiple frames of images and the robot posture corresponding to each frame of the multiple frames of images;

[0145] The planning module 203 is configured to determine a planned path for the robot to move from an initial position to a target position in the target scene based on the map data;

[0146] The processing module 202 is further configured to determine the actual position and posture of the robot by calling a relocation function when the robot moves according to the planned path;

[0147] The adjustment module 204 is configured to adjust the driving path of the robot according to the actual position and posture so that the robot drives according to the planned path.

[0148] Optionally, the acquisition module 201 is further configured to acquire the camera data once each time the robot moves a specified distance; and / or acquire the camera data once each time the robot rotates a specified angle, to obtain the multiple frames of images;

[0149] Or collecting the camera data once at a specified time interval to obtain the multiple frames of images;

[0150] Or, a collection frequency is determined according to the moving speed of the robot, and the camera data is collected according to the collection frequency to obtain the multiple frames of images.

[0151] Optionally, the processing module 202 is further configured to determine a robot posture corresponding to each frame of the multiple frames of images;

[0152] After completing the image acquisition of the target scene, a plurality of frames of original images are obtained, and redundant data in the plurality of frames of original images are filtered to obtain the plurality of frames of images;

[0153] Extracting image features from the multiple frames of images; the image features include global features, local features and matching relationships, and the matching relationship is a corresponding relationship between pixels of a current frame of image and a predetermined number of frames of image after the current frame of image;

[0154] Storing the image features in a database;

[0155] Retraining to obtain a deep learning model according to the global features, the local features and the matching relationship;

[0156] Determine a three-dimensional sparse point cloud map of the target scene based on a structure-from-motion (SFM) algorithm according to the robot posture corresponding to each frame in the multiple images and the image features;

[0157] Based on the three-dimensional sparse point cloud map and the global features, the map data is obtained.

[0158] Optionally, the planning module 203 is further configured to acquire the map data and current camera data after detecting that the robot enters the target scene;

[0159] Determining the initial position according to the current camera data;

[0160] selecting the target location based on the map data;

[0161] Based on the map data, a planned path for moving from the initial position to the target position is determined by a navigation module of the robot.

[0162] Optionally, the processing module 202 is further configured to, when the robot moves according to the planned path and receives a call request for the relocation function,

[0163] Acquire multiple frames of image data of the robot at the current position through the camera;

[0164] determining a query image from the plurality of frames of image data according to the map data;

[0165] Clustering multiple similar images of the query image, and selecting the largest cluster as a reference image;

[0166] Extracting local features of the query image and reading local features of the reference image from a database;

[0167] According to the relationship between the feature points of the reference image and the three-dimensional sparse point cloud map, and the two-dimensional matching relationship between the query image and the reference image, the true posture of the robot at the current position and the number of inner points of the query image are determined based on the motion positioning algorithm; the number of inner points is the number of three-dimensional points with correct matching relationship in the query image.

[0168] Optionally, the processing module 202 is further configured to extract global features of the multiple frames of image data;

[0169] Filtering multiple similar images of each frame of the image data from the map data according to the global features of the image data;

[0170] A similar image that meets a preset condition is determined as a query image; the preset condition is the similar image with the largest number of three-dimensional points among the multiple similar images.

[0171] Optionally, the processing module 202 is further configured to determine that the relocation is successful when the number of internal points of the query image is greater than or equal to a specified threshold, and return the real position obtained by the relocation to the robot;

[0172] When the number of inner points of the query image is less than a specified threshold, it is determined that the relocalization has failed, and the robot is controlled to move to a certain position and then the relocalization function is called again.

[0173] Optionally, the processing module 202 is further configured to search, according to the real posture, from the map data for a first image corresponding to a posture closest to the real posture;

[0174] Acquire a first pose of the robot corresponding to the first image;

[0175] The confidence of the true posture is determined according to the distance between the true posture and the first posture.

[0176] Optionally, the processing module 202 is further configured to control the caller to re-determine the confidence of the real posture obtained by repositioning when the confidence is less than a certain threshold.

[0177] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0178] The present disclosure also provides a computer-readable storage medium having computer program instructions stored thereon, and the program instructions, when executed by a processor, implement the steps of the positioning and navigation method provided by the present disclosure.

[0179] Figure 5 8 is a block diagram of a device for positioning and navigation according to an exemplary embodiment. For example, the device 800 may be a robot or a server.

[0180] Reference Figure 5 , the device 800 may include one or more of the following components: a processing component 802 , a memory 804 , a power component 806 , a multimedia component 808 , an audio component 810 , an input / output interface 812 , a sensor component 814 , and a communication component 816 .

[0181] The processing component 802 generally controls the overall operation of the device 800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above-mentioned positioning and navigation method. In addition, the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.

[0182] The memory 804 is configured to store various types of data to support operations on the device 800. Examples of such data include instructions for any application or method operating on the device 800, contact data, phone book data, messages, pictures, videos, etc. The memory 804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0183] The power supply component 806 provides power to the various components of the device 800. The power supply component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 800.

[0184] The multimedia component 808 includes a screen that provides an output interface between the device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front camera and / or a rear camera. When the device 800 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0185] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC), and when the device 800 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 804 or sent via the communication component 816. In some embodiments, the audio component 810 also includes a speaker for outputting audio signals.

[0186] The input / output interface 812 provides an interface between the processing component 802 and the peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.

[0187] The sensor assembly 814 includes one or more sensors for providing various aspects of the status assessment of the device 800. For example, the sensor assembly 814 can detect the open / closed state of the device 800, the relative positioning of components, such as the display and keypad of the device 800, and the sensor assembly 814 can also detect the position change of the device 800 or a component of the device 800, the presence or absence of user contact with the device 800, the orientation or acceleration / deceleration of the device 800, and the temperature change of the device 800. The sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0188] The communication component 816 is configured to facilitate wired or wireless communication between the device 800 and other devices. The device 800 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0189] In an exemplary embodiment, the device 800 can be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above-mentioned positioning and navigation methods.

[0190] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 804 including instructions, and the instructions can be executed by the processor 820 of the device 800 to complete the above-mentioned positioning and navigation method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0191] In addition to being an independent electronic device, the above-mentioned device can also be a part of an independent electronic device. For example, in one embodiment, the device can be an integrated circuit (IC) or a chip, wherein the integrated circuit can be an IC or a collection of multiple ICs; the chip can include but is not limited to the following types: GPU (Graphics Processing Unit), CPU (Central Processing Unit), FPGA (Field Programmable Gate Array), DSP (Digital Signal Processor), ASIC (Application Specific Integrated Circuit), SOC (System on Chip, SoC, system on chip or system-level chip), etc. The above-mentioned integrated circuit or chip can be used to execute executable instructions (or codes) to implement the above-mentioned positioning and navigation method. The executable instructions can be stored in the integrated circuit or chip, or can be obtained from other devices or equipment, such as the integrated circuit or chip includes a processor, a memory, and an interface for communicating with other devices. The executable instruction may be stored in the memory, and when the executable instruction is executed by the processor, the above-mentioned positioning and navigation method is implemented; alternatively, the integrated circuit or chip may receive the executable instruction through the interface and transmit it to the processor for execution, so as to implement the above-mentioned positioning and navigation method.

[0192] Figure 6 1 is a block diagram of a device 1900 for positioning and navigation according to an exemplary embodiment. For example, the device 1900 may be provided as a server. Figure 6The device 1900 includes a processing component 1922, which further includes one or more processors, and a memory resource represented by a memory 1932 for storing instructions that can be executed by the processing component 1922, such as an application. The application stored in the memory 1932 may include one or more modules, each corresponding to a set of instructions. In addition, the processing component 1922 is configured to execute instructions to perform the above-mentioned positioning and navigation method.

[0193] The device 1900 may also include a power supply component 1926 configured to perform power management of the device 1900, a wired or wireless network interface 1950 configured to connect the device 1900 to a network, and an input / output interface 1958. The device 1900 may operate based on an operating system stored in the memory 1932.

[0194] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the present disclosure. This application is intended to cover any variations, uses or adaptations of the present disclosure, which follow the general principles of the present disclosure and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure. The specification and examples are to be considered as exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0195] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A positioning and navigation method, characterized in that: include: Collect multiple frames of images in the target scene; Establishing map data of the target scene according to the multiple frames of images and the robot posture corresponding to each frame of the multiple frames of images; Based on the map data, determining a planned path for the robot to move from an initial position to a target position in the target scene; When the robot moves according to the planned path, determining the real position and posture of the robot by calling a repositioning function; The driving path of the robot is adjusted according to the actual position and posture so that the robot drives according to the planned path.

2. The method according to claim 1, characterized in that The collecting of multiple frames of images in the target scene includes: When the robot moves a specified distance, the camera data is collected once; and / or when the robot rotates a specified angle, the camera data is collected once to obtain the multiple frames of images; Or collecting the camera data once at a specified time interval to obtain the multiple frames of images; Or, a collection frequency is determined according to the moving speed of the robot, and the camera data is collected according to the collection frequency to obtain the multiple frames of images.

3. The method according to claim 1, characterized in that The step of establishing the map data of the target scene according to the multiple frames of images and the robot posture corresponding to each frame of the multiple frames of images includes: Determine the robot posture corresponding to each frame of the multiple frames of images; After completing the image acquisition of the target scene, a plurality of frames of original images are obtained, and redundant data in the plurality of frames of original images are filtered to obtain the plurality of frames of images; Extracting image features from the multiple frames of images; the image features include global features, local features and matching relationships, and the matching relationship is a corresponding relationship between pixels of a current frame of image and a predetermined number of frames of image after the current frame of image; Storing the image features in a database; Retraining to obtain a deep learning model according to the global features, the local features and the matching relationship; Determine a three-dimensional sparse point cloud map of the target scene based on a structure-from-motion (SFM) algorithm according to the robot posture corresponding to each frame in the multiple images and the image features; The map data is obtained based on the three-dimensional sparse point cloud map and the global features.

4. The method according to claim 1, characterized in that: The step of determining a planned path for the robot to move from an initial position to a target position in the target scene based on the map data includes: After detecting that the robot enters the target scene, acquiring the map data and current camera data; Determining the initial position according to the current camera data; selecting the target location based on the map data; Based on the map data, a planned path for moving from the initial position to the target position is determined by a navigation module of the robot.

5. The method according to claim 1, characterized in that When the robot moves according to the planned path, determining the real position and posture of the robot by calling the relocation function includes: When the robot moves according to the planned path and receives a call request for the relocation function, Acquire multiple frames of image data of the robot at the current position through the camera; determining a query image from the plurality of frames of image data according to the map data; Clustering multiple similar images of the query image, and selecting the largest cluster as a reference image; Extracting local features of the query image and reading local features of the reference image from a database; According to the relationship between the feature points of the reference image and the three-dimensional sparse point cloud map, and the two-dimensional matching relationship between the query image and the reference image, the true posture of the robot at the current position and the number of inner points of the query image are determined based on the motion positioning algorithm; the number of inner points is the number of three-dimensional points with correct matching relationship in the query image.

6. The method according to claim 5, characterized in that The step of determining a query image from the multiple frames of image data according to the map data comprises: Extracting global features of the multi-frame image data; Filtering multiple similar images of each frame of the image data from the map data according to the global features of the image data; A similar image that meets a preset condition is determined as a query image; the preset condition is the similar image with the largest number of three-dimensional points among the multiple similar images.

7. The method according to claim 5, characterized in that Also includes: When the number of inner points of the query image is greater than or equal to a specified threshold, determining that the relocation is successful, and returning the real position obtained by the relocation to the robot; When the number of inner points of the query image is less than a specified threshold, it is determined that the relocalization has failed, and the robot is controlled to move to a certain position and then the relocalization function is called again.

8. The method according to claim 5, characterized in that Also includes: According to the real posture, searching the map data for a first image corresponding to a posture that is closest to the real posture in space; Acquire a first pose of the robot corresponding to the first image; The confidence of the true posture is determined according to the distance between the true posture and the first posture.

9. The method according to claim 8, characterized in that Also includes: When the confidence level is less than a certain threshold, the robot is controlled to determine again the confidence level of the real position obtained by repositioning.

10. A positioning and navigation device, characterized in that: include: An acquisition module is configured to acquire multiple frames of images in a target scene; A processing module is configured to establish map data of the target scene according to the multiple frames of images and the robot posture corresponding to each frame of the multiple frames of images; a planning module configured to determine a planned path for the robot to move from an initial position to a target position in the target scene based on the map data; The processing module is further configured to determine the real position and posture of the robot by calling a repositioning function when the robot moves according to the planned path; The adjustment module is configured to adjust the driving path of the robot according to the actual posture so that the robot drives according to the planned path.

11. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to execute the executable instructions to implement the steps of the method according to any one of claims 1 to 9.

12. A computer-readable storage medium having computer program instructions stored thereon, characterized in that: When the program instructions are executed by a processor, the steps of the method according to any one of claims 1 to 9 are implemented.

Citation Information

Cited By

  • Autonomous navigation method, system and equipment based on multi-modal large model and medium

    CN121230741A