# US 2023/0266470 A1 · Robot relocalization method and apparatus, and storage medium and electronic device

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2023/0266470 A1
- Document ID: US20230266470A1
- Status: Published application
- Kind: A1
- Application number: 18/005,362
- Filed: 2021-06-08
- Published: 2023-08-24
- Earliest claimed: 2020-07-15
- Assignees: Jingdong Technology Information Technology Co., Ltd.
- Applicants: Jingdong Technology Information Technology Co., Ltd.
- Inventors: Xiujun YAO; Fuqiang MA; Chao WANG; Chenguang GUI; Lihua CUI
- Web page: https://patentgrep.com/patent/US20230266470A1

## CPC

- G01S 17/89: for mapping or imaging
- G01C 21/1652: {with ranging devices, e.g. LIDAR or RADAR}
- G01C 21/1656: {with passive imaging devices, e.g. cameras}
- G01S 7/4808: {Evaluating distance, position or velocity data}
- G01S 17/42: Simultaneous measurement of distance and other co-ordinates (indirect measurement G01S17/46)
- G01S 17/58: Velocity or trajectory determination systems; Sense-of-movement determination systems
- G01S 17/86: Combinations of lidar systems with systems other than lidar, radar or sonar, e.g. with direction finders
- G01S 17/931: of land vehicles
- G06V 10/443: {by matching or filtering}
- G06T 7/74: {involving reference images or patches}
- G01S: RADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
- G01C: MEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY (measuring liquid level G01F; radio navigation, determining distance or velocity by use of propagation effects, e.g. Doppler effects, propagation time, of radio waves, analogous arrangements using other waves G01S)
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

A robot relocalization method and apparatus, and a storage medium and an electronic device. The method comprises: performing feature coding on local visual features of image data to obtain image vector features, and searching, in a pre-set key frame database, for the image vector features subjected to dimension reduction processing, so as to obtain a plurality of search results (S120); solving the pose of a robot according to each search result, so as to obtain a first pose initial value, and performing matching on laser point cloud data in a pre-set two-dimensional grid map according to speed data and displacement data, so as to obtain a first matching result (S130); and generating a second matching result according to the first pose initial value and the first matching result, and performing robot relocalization according to a second pose initial value, the first matching result and the second matching result.

## Claims

### Claim 1

A method for repositioning a robot, comprising:
acquiring image data of the robot collected by a camera apparatus, speed data and displacement data of the robot collected by an inertial measuring apparatus and a displacement measuring apparatus, and laser point cloud data of the robot collected by a laser radar;
performing a feature encoding on a local visual feature of the image data to obtain an image vector feature, and retrieving the image vector feature after a dimension reduction processing in a preset key frame database to obtain a plurality of retrieval results;
solving a post of the robot according to the retrieval results to obtain a first post initial value, and matching the laser point cloud data in a preset two-dimensional grid map according to the speed data and displacement data to obtain a first matching result; and
in response to determination that the first post initial value and the first matching result are inconsistent, generating a second matching result according to the first post initial value and the first matching result, and repositioning the robot according to a second pose initial value, the first matching result, and the second matching result.

### Claim 2 (depends on 1)

The method for repositioning a robot according to claim 1, wherein the performing the feature encoding on the local visual feature of the image data to obtain the image vector feature comprises:
extracting the local visual feature of the image data, and searching for a visual word adjacent to the local visual feature in a preset visual dictionary;
calculating a residual vector between the local visual feature and the visual word, and performing a cumulative sum operation on the residual vectors belonging to a same visual word to obtain a residual sum vector; and
connecting the residual sum vectors according to an index order of the visual words in the preset visual dictionary to obtain the image vector feature.

### Claim 3 (depends on 1)

The method for repositioning a robot according to claim 1, wherein the retrieving the image vector feature after the dimension reduction processing in the preset key frame database to obtain the plurality of retrieval results, comprises:
performing the dimension reduction processing on the image vector feature, and spatially dividing the image vector feature after the dimension reduction processing to obtain a plurality of sub vectors;
acquiring a cluster center corresponding to each sub vector and an index of each cluster center in the preset key frame database, and calculating a distance between each sub vector and each cluster center;
in response to determination that the distance is less than a preset threshold, acquiring an image vector corresponding to the cluster center according to the index of the cluster center, and obtaining a plurality of the retrieval results according to a plurality of the image vectors.

### Claim 4 (depends on 1)

The method for repositioning a robot according to claim 1, wherein the solving the post of the robot according to the retrieval results to obtain the first post initial value, comprises:
performing a feature matching on each retrieval result to obtain matching features between individual retrieval results and a matching relationship between the matching features;
solving the pose of the robot according to the matching features and the matching relationship between the matching features, to obtain the first pose initial value.

### Claim 5 (depends on 1)

The method for repositioning a robot according to claim 1, wherein the matching the laser point cloud data in the preset two-dimensional grid map according to the speed data and displacement data to obtain the first matching result, comprises:
fusing the speed data and the displacement data to obtain a second pose initial value;
matching the laser point cloud data in the preset two-dimensional grid map based on the second pose initial value to obtain the first matching result.

### Claim 6 (depends on 1)

The method for repositioning a robot according to claim 1, wherein the repositioning the robot according to the second pose initial value, the first matching result and the second matching result, comprises:
configuring a first weight value, a second weight value and a third weight value respectively for the second pose initial value, the first matching result and the second matching result;
performing a weighted summation on the second pose initial value, the first matching result, the second matching result, and the first weight value, the second weight value, and the third weight value respectively;
repositioning the robot according to a result of the weighted summation.

### Claim 7 (depends on 1)

The method for repositioning a robot according to claim 1, wherein the method for repositioning a robot further comprises:
determining whether the image data meets a preset condition; if yes, storing the image data in the key frame database as a key frame;
wherein the preset condition comprises at least one of the following:
a difference between the speed data and speed data at a previous moment corresponding to the speed data is greater than a preset speed threshold;
a difference between the displacement data and displacement data at a previous moment corresponding to the displacement data is greater than a preset displacement threshold;
an overlapping part between the image data and image data of a previous frame corresponding to the image data is less than a preset overlapping threshold.

### Claim 8

An apparatus for repositioning a robot, comprises:
a processor; and
a memory for storing executable instructions of the processor;
wherein the processor is configured to:
acquire image data of the robot collected by a camera apparatus, speed data and displacement data of the robot collected by an inertial measuring apparatus and a displacement measuring apparatus, and laser point cloud data of the robot collected by a laser radar;
perform a feature encoding on a local visual feature of the image data to obtain an image vector feature, and retrieve the image vector feature after a dimension reduction processing in a preset key frame database to obtain a plurality of retrieval results;
solve a pose of the robot according to the retrieval results to obtain a first pose initial value, and match the laser point cloud data in a preset two-dimensional grid map according to the speed data and displacement data to obtain a first matching result; and
in response to determination that the first post initial value and the first matching result are inconsistent, generate a second matching result according to the first pose initial value and the first matching result, and reposition the robot according to a second pose initial value, the first matching result and the second matching result.

### Claim 9

A computer-readable storage medium on which a computer program is stored, wherein when the computer program is executed by a processor, the processor is configured to:
acquire image data of the robot collected by a camera apparatus, speed data and displacement data of the robot collected by an inertial measuring apparatus and a displacement measuring apparatus, and laser point cloud data of the robot collected by a laser radar;
perform a feature encoding on a local visual feature of the image data to obtain an image vector feature, and retrieve the image vector feature after a dimension reduction processing in a preset key frame database to obtain a plurality of retrieval results;
solve a pose of the robot according to the retrieval results to obtain a first pose initial value, and match the laser point cloud data in a preset two-dimensional grid map according to the speed data and displacement data to obtain a first matching result; and
in response to determination that the first post initial value and the first matching result are inconsistent, generate a second matching result according to the first pose initial value and the first matching result, and reposition the robot according to a second pose initial value, the first matching result and the second matching result.

### Claim 10

(canceled)

### Claim 11 (depends on 8)

The apparatus for repositioning a robot according to claim 8, wherein the processor is further configured to:
extract the local visual feature of the image data, and searching for a visual word adjacent to the local visual feature in a preset visual dictionary;
calculate a residual vector between the local visual feature and the visual word, and performing a cumulative sum operation on the residual vectors belonging to a same visual word to obtain a residual sum vector; and
connect the residual sum vectors according to an index order of the visual words in the preset visual dictionary to obtain the image vector feature.

### Claim 12 (depends on 8)

The apparatus for repositioning a robot according to claim 8, wherein the processor is further configured to:
perform the dimension reduction processing on the image vector feature, and spatially dividing the image vector feature after the dimension reduction processing to obtain a plurality of sub vectors;
acquire a cluster center corresponding to each sub vector and an index of each cluster center in the preset key frame database, and calculating a distance between each sub vector and each cluster center;
in response to determination that the distance is less than a preset threshold, acquire an image vector corresponding to the cluster center according to the index of the cluster center, and obtain a plurality of the retrieval results according to a plurality of the image vectors.

### Claim 13 (depends on 8)

The apparatus for repositioning a robot according to claim 8, wherein the processor is further configured to:
perform a feature matching on each retrieval result to obtain matching features between individual retrieval results and a matching relationship between the matching features;
solve the pose of the robot according to the matching features and the matching relationship between the matching features, to obtain the first pose initial value.

### Claim 14 (depends on 8)

The apparatus for repositioning a robot according to claim 8, wherein the processor is further configured to:
fuse the speed data and the displacement data to obtain a second pose initial value;
match the laser point cloud data in the preset two-dimensional grid map based on the second pose initial value to obtain the first matching result.

### Claim 15 (depends on 8)

The apparatus for repositioning a robot according to claim 8, wherein the processor is further configured to:
configure a first weight value, a second weight value and a third weight value respectively for the second pose initial value, the first matching result and the second matching result;
perform a weighted summation on the second pose initial value, the first matching result, the second matching result, and the first weight value, the second weight value, and the third weight value respectively;
reposition the robot according to a result of the weighted summation.

### Claim 16 (depends on 8)

The apparatus for repositioning a robot according to claim 8, wherein the processor is further configured to:
determine whether the image data meets a preset condition; if yes, storing the image data in the key frame database as a key frame;
wherein the preset condition comprises at least one of the following:
a difference between the speed data and speed data at a previous moment corresponding to the speed data is greater than a preset speed threshold;
a difference between the displacement data and displacement data at a previous moment corresponding to the displacement data is greater than a preset displacement threshold;
an overlapping part between the image data and image data of a previous frame corresponding to the image data is less than a preset overlapping threshold.

### Claim 17 (depends on 9)

The computer-readable storage medium according to claim 9, wherein the processor is further configured to:
extract the local visual feature of the image data, and searching for a visual word adjacent to the local visual feature in a preset visual dictionary;
calculate a residual vector between the local visual feature and the visual word, and performing a cumulative sum operation on the residual vectors belonging to a same visual word to obtain a residual sum vector; and
connect the residual sum vectors according to an index order of the visual words in the preset visual dictionary to obtain the image vector feature.

### Claim 18 (depends on 9)

The computer-readable storage medium according to claim 9, wherein the processor is further configured to:
perform the dimension reduction processing on the image vector feature, and spatially dividing the image vector feature after the dimension reduction processing to obtain a plurality of sub vectors;
acquire a cluster center corresponding to each sub vector and an index of each cluster center in the preset key frame database, and calculating a distance between each sub vector and each cluster center;
in response to determination that the distance is less than a preset threshold, acquire an image vector corresponding to the cluster center according to the index of the cluster center, and obtain a plurality of the retrieval results according to a plurality of the image vectors.

### Claim 19 (depends on 9)

The computer-readable storage medium according to claim 9, wherein the processor is further configured to:
perform a feature matching on each retrieval result to obtain matching features between individual retrieval results and a matching relationship between the matching features;
solve the pose of the robot according to the matching features and the matching relationship between the matching features, to obtain the first pose initial value.

### Claim 20 (depends on 9)

The computer-readable storage medium according to claim 9, wherein the processor is further configured to:
fuse the speed data and the displacement data to obtain a second pose initial value;
match the laser point cloud data in the preset two-dimensional grid map based on the second pose initial value to obtain the first matching result.

### Claim 21 (depends on 9)

The computer-readable storage medium according to claim 9, wherein the processor is further configured to:
configure a first weight value, a second weight value and a third weight value respectively for the second pose initial value, the first matching result and the second matching result;
perform a weighted summation on the second pose initial value, the first matching result, the second matching result, and the first weight value, the second weight value, and the third weight value respectively;
reposition the robot according to a result of the weighted summation.
