Robot movement method, device, computer equipment and storage medium

By obtaining the coordinates of the mobile robot in the built map and the preset anchor point distance value, determining and mapping the anchor point coordinates, and obtaining the transformation matrix to convert the purpose of movement, the problem of mapping errors in the SLAM algorithm is solved and the accuracy of the robot movement is improved. sex.

CN113515112BActive Publication Date: 2024-10-01SF TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010221416.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-03-26
Publication Date
2024-10-01
Estimated Expiration
2040-03-26

AI Technical Summary

Technical Problem

In the existing mobile robot navigation technology, the SLAM algorithm is prone to errors and errors during the mapping process, which affects the accuracy of robot movement. The main reason is that different robot manufacturers have technical differences, laser sensor types, installation heights, and inconsistent recognition of environmental obstacles. .

Method used

By obtaining the coordinate position of the mobile robot in the built map and the distance value relative to the preset anchor point, the mapping coordinates of the preset anchor point are determined, and mapped with the preset coordinates to obtain the transformation matrix, and then the purpose of movement is Coordinate conversion reduces movement errors that rely on self-built maps.

Benefits of technology

It improves the accuracy of robot movement, reduces the impact of mapping errors and mistakes, and ensures that the mobile robot can accurately reach the destination location.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113515112B_ABST
    Figure CN113515112B_ABST
Patent Text Reader

Abstract

The present application relates to a robot movement method, device, computer equipment and storage medium. The method includes: obtaining the coordinate position of the mobile robot in the constructed map sent by the mobile robot, and the distance value of the mobile robot relative to each preset anchor point when the mobile robot is at the coordinate position; determining the mapping coordinates of the preset anchor point in the constructed map according to the coordinate position of the mobile robot in the constructed map and the distance value of the preset anchor point when the mobile robot is at the coordinate position; obtaining the coordinates of the preset anchor point in the preset map to obtain the preset coordinates of the preset anchor point; mapping the mapping coordinates of each preset anchor point with the preset coordinates to obtain the transformation matrix of the constructed map of the mobile robot and the preset map; based on the transformation matrix, the moving destination of the mobile robot is coordinate-converted and sent to the mobile robot, and the mobile robot moves to the position corresponding to the moving destination after the coordinate conversion. The use of this method can improve accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of robotics technology, and in particular to a robot movement method, device, computer equipment and storage medium. Background Art

[0002] With the rapid development of science and technology, there are machines that can perform work by autonomous movement, namely mobile robots. At present, laser radar and simultaneous localization and mapping (SLAM) are the main navigation technologies for mobile robots, which combine robot vision, wireless positioning, inertial navigation and other technologies. The operating system of a mobile robot can usually directly use the data collected by the laser radar to complete mapping and positioning based on the integrated SLAM algorithm module, thereby assisting the robot to move and perform work in the location environment.

[0003] However, due to the differences in technology among different robot manufacturers, as well as the influence of factors such as the type of laser sensor, installation height, obstacle height in the environment, and the presence of glass and railings, which are difficult to identify objects, the SLAM algorithm is prone to mapping errors and includes some mapping error areas (such as Figure 1 ), thus affecting the accuracy of the robot's movement. Summary of the invention

[0004] Based on this, it is necessary to provide a robot movement method, device, computer equipment and storage medium that can improve accuracy in response to the above technical problems.

[0005] A robot movement method, the method comprising:

[0006] Acquire the coordinate position of the mobile robot in the constructed map sent by the mobile robot, and the distance value of the mobile robot relative to each preset anchor point when the mobile robot is at the coordinate position;

[0007] Determine the mapping coordinates of each of the preset anchor points in the constructed map according to the coordinate position of the mobile robot in the constructed map and the distance value relative to each of the preset anchor points at the coordinate position;

[0008] Acquire the coordinates of the preset anchor point in the preset map to obtain the preset coordinates of the preset anchor point;

[0009] Mapping the map-building coordinates of each of the preset anchor points with the preset coordinates to obtain a transformation matrix between the built map of the mobile robot and the preset map;

[0010] The moving destination of the mobile robot is subjected to coordinate transformation based on the transformation matrix and then sent to the mobile robot, and the mobile robot moves to a position corresponding to the moving destination after the coordinate transformation.

[0011] In one embodiment, mapping the map-building coordinates of each of the preset anchor points with the preset coordinates to obtain a transformation matrix between the built map of the mobile robot and the preset map includes:

[0012] Selecting a preset number of preset anchor points from each of the preset anchor points as candidate anchor points;

[0013] The map-building coordinates and the preset coordinates of each candidate anchor point are respectively subjected to inverse affine transformation to obtain a transformation matrix between the built map of the mobile robot and the preset map.

[0014] In one embodiment, the step of performing coordinate conversion on the moving destination of the mobile robot based on the transformation matrix and sending the result to the mobile robot, and the mobile robot moving to a position corresponding to the moving destination after the coordinate conversion, comprises:

[0015] receiving a movement instruction, wherein the movement instruction carries a machine number and first movement destination coordinates, and the first movement destination coordinates belong to coordinates on the preset map;

[0016] Acquire a transformation matrix corresponding to the mobile robot according to the machine number;

[0017] converting the first moving destination coordinates into second moving destination coordinates based on the transformation matrix, where the second moving destination coordinates belong to coordinates on the constructed map;

[0018] The second moving destination coordinates are sent to the mobile robot corresponding to the machine number, and the mobile robot corresponding to the machine number moves to the position corresponding to the second moving destination coordinates.

[0019] In one embodiment, converting the first movement destination coordinates into second movement destination coordinates based on the transformation matrix includes:

[0020] Obtaining the inverse matrix of the transformation matrix;

[0021] The inverse matrix is ​​multiplied by the first moving destination coordinates to obtain second moving destination coordinates.

[0022] In one embodiment, the method further comprises:

[0023] receiving a location query instruction, wherein the location query instruction carries a machine number;

[0024] Acquire a first current coordinate of the corresponding mobile robot in the constructed map according to the machine number, and acquire a transformation matrix corresponding to the mobile robot corresponding to the machine number;

[0025] The first current coordinate is converted into a second current coordinate based on the transformation matrix and the second current coordinate is displayed in the preset map.

[0026] In one embodiment, converting the first current coordinate into the second current coordinate based on the transformation matrix includes:

[0027] The transformation matrix is ​​multiplied by the first current coordinate to obtain a second current coordinate.

[0028] In one embodiment, determining the mapping coordinates of the preset anchor points in the constructed map according to the coordinate position of the mobile robot in the constructed map and the distance value relative to each preset anchor point at the coordinate position includes:

[0029] Obtaining a fixed number of coordinate positions, and obtaining the distance value corresponding to each of the coordinate positions;

[0030] Triangulation is performed based on the coordinate positions and the distance values ​​to determine the mapping coordinates of the preset anchor points.

[0031] A robot moving device, comprising:

[0032] A data acquisition module, used for acquiring the coordinate position of the mobile robot in the constructed map sent by the mobile robot, and the distance value of the mobile robot relative to each preset anchor point when the mobile robot is at the coordinate position;

[0033] A determination module, used to determine the mapping coordinates of the preset anchor points in the constructed map according to the coordinate position of the mobile robot in the constructed map and the distance value relative to each preset anchor point at the coordinate position;

[0034] A coordinate acquisition module, used to acquire the coordinates of the preset anchor point in the preset map, and obtain the preset coordinates of the preset anchor point;

[0035] A mapping module, used to map the map-building coordinates of each of the preset anchor points with the preset coordinates to obtain a transformation matrix between the built map of the mobile robot and the preset map;

[0036] The mobile control module is used to perform coordinate conversion on the moving destination of the mobile robot based on the transformation matrix and send the result to the mobile robot, so that the mobile robot moves to a position corresponding to the moving destination after the coordinate conversion.

[0037] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of any one of the above-mentioned robot movement methods when executing the computer program.

[0038] A computer-readable storage medium stores a computer program, wherein the computer program, when executed by a processor, implements the steps of any one of the above-mentioned robot movement methods.

[0039] The above-mentioned robot movement method, device, computer equipment and storage medium determine the mapping coordinates of the preset anchor point in the constructed map according to the acquired coordinate position of the mobile robot in the map constructed by itself and the distance value relative to the preset anchor point at each coordinate position, and then map the mapping coordinates with the preset coordinates of the preset anchor point in the preset map to obtain the transformation matrix of the constructed map and the preset map, and then transform the coordinates of the moving destination based on the transformation matrix and send it to the mobile robot to complete the movement. This method realizes the docking of the constructed map and the preset map by mapping the two coordinate positions of the preset anchor point, and then completes the movement of the robot based on the transformation matrix obtained by docking, avoiding the mobile robot moving only according to the map constructed by itself, thereby reducing the influence of mapping errors and mapping errors, and improving the accuracy of movement. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Figure 1 Schematic diagram of the mapping error area of ​​the mobile robot;

[0041] Figure 2 A diagram of an application environment of a robot movement method in one embodiment;

[0042] Figure 3 is a schematic flow chart of a robot movement method in one embodiment;

[0043] Figure 4 A flowchart of the steps of performing coordinate conversion on the moving destination of the mobile robot based on the transformation matrix and then sending the conversion to the mobile robot in one embodiment;

[0044] Figure 5 is a structural block diagram of a robot moving device in one embodiment;

[0045] Figure 6 FIG. 4 is a diagram showing the internal structure of a server in one embodiment. DETAILED DESCRIPTION

[0046] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0047] The robot movement method provided in this application can be applied to Figure 2 In the application environment shown. The application environment involves a mobile robot 102, a server 104 and a terminal 106. The mobile robot 102 communicates with the server 104 through a network, and the server 104 communicates with the terminal 106 through a network. The mobile robot 102 includes a wireless communication module, a sensor and auxiliary positioning hardware.

[0048] Specifically, the mobile robot 102 collects sensor data through sensors and collects anchor auxiliary positioning data through auxiliary positioning hardware. Mapping and positioning are performed based on the collected sensor data and anchor auxiliary positioning data, and the coordinate position of the mobile robot in the constructed map and the distance value of the mobile robot relative to each preset anchor point when the mobile robot is at the coordinate position are obtained and sent to the server 104. The server 104 obtains the coordinate position of the mobile robot in the constructed map and the distance value of the mobile robot relative to each preset anchor point when the mobile robot is at the coordinate position sent by the mobile robot 102; the server 104 determines the mapping coordinates of the preset anchor point in the constructed map according to the coordinate position of the mobile robot in the constructed map and the distance value relative to each preset anchor point at the coordinate position; the server 104 obtains the coordinates of the preset anchor point in the preset map and obtains the preset coordinates of the preset anchor point; the server 104 maps the mapping coordinates of each preset anchor point with the preset coordinates to obtain the transformation matrix of the constructed map and the preset map of the mobile robot; the server 104 responds to the movement instruction sent by the terminal 106, and converts the coordinates of the mobile robot's moving destination based on the transformation matrix and sends it to the mobile robot, and the mobile robot moves to the position corresponding to the moving destination. The terminal 106 may be, but is not limited to, various personal computers, laptop computers, smart phones, tablet computers, and portable wearable devices, and the server 104 may be implemented as an independent server or a server cluster consisting of multiple servers.

[0049] In one embodiment, Figure 3 As shown, a robot movement method is provided, which is applied to Figure 1 The server in the example is used to illustrate the following steps:

[0050] Step S202, obtaining the coordinate position of the mobile robot in the constructed map sent by the mobile robot, and the distance value of the mobile robot relative to each preset anchor point when the mobile robot is at the coordinate position.

[0051] The preset anchor point can be understood as a pre-set marking label, and the preset anchor point is determined by the auxiliary positioning method adopted by the mobile robot. For example, when the auxiliary positioning method adopts UWB tags, the preset anchor point is the UWB base station. When the auxiliary positioning method adopts shooting a QR code, the preset anchor point is the QR code.

[0052] Specifically, the mobile robot collects sensor data through sensors installed on itself, such as data collected by a laser radar in the mobile robot. At the same time, the mobile robot collects anchor point auxiliary positioning data through auxiliary positioning hardware. Anchor point auxiliary positioning data is positioning navigation data for locating anchor points obtained by auxiliary positioning hardware in the mobile robot, for example, obtained by measuring the signal strength of a UWB base station by a UWB (Ultra Wide Band) tag carried in the mobile robot. After obtaining the sensor data and anchor point auxiliary positioning data, the mobile robot builds a map and locates the preset anchor points based on the sensor data and the anchor point auxiliary positioning data, so as to obtain the constructed map, the coordinate position of the mobile robot in the constructed map, and the distance value of the mobile robot relative to each preset anchor point at the coordinate position.

[0053] The mapping method of the mobile robot can be carried out using the conventional mapping algorithm SLAM (Simultaneous Localization And Mapping) algorithm. When the distance value relative to the preset anchor point is obtained at a certain coordinate position, the signal strength is measured by the carried UWB tag. For example, the mobile robot moves to three different coordinate positions, and measures the signal strength of the same UWB base station at these three coordinate positions. In the process of measuring the signal strength, the distances between the selected three coordinate positions and the UWB base station are determined respectively by the time from the departure to the return of the signal, that is, the distance values ​​of the mobile robot at these three coordinate positions relative to the preset anchor point. Among them, the three different coordinate positions can be randomly selected from the constructed map obtained by mapping.

[0054] When the mobile robot builds a map and positions itself to obtain the built map, the mobile robot's coordinate position in the built map, and the distance value relative to each preset anchor point at the coordinate position, the mobile robot sends the built map, the mobile robot's coordinate position in the built map, and the distance value relative to each preset anchor point at the coordinate position to the server through the mobile robot's wireless communication module.

[0055] Step S204, determining the mapping coordinates of each preset anchor point in the constructed map according to the coordinate position of the mobile robot in the constructed map and the distance value relative to each preset anchor point at the coordinate position.

[0056] The mapping coordinates refer to the coordinates of the preset anchor point based on the coordinate system of the map constructed by the mobile robot, which can be simply understood as the coordinates of the preset anchor point in the constructed map.

[0057] Specifically, after the server obtains the coordinate position of the mobile robot in the constructed map and the distance value of the coordinate position relative to each preset anchor point, the map construction coordinates of the preset anchor point are calculated by a triangulation positioning method.

[0058] In one embodiment, step S204 includes: obtaining a fixed number of coordinate positions, and obtaining a distance value corresponding to each coordinate position; performing triangulation based on each coordinate position and the distance value to determine the mapping coordinates of the preset anchor point.

[0059] The fixed number is a set value. Since triangulation positioning is adopted, the fixed number is 3 in this embodiment.

[0060] Specifically, taking a preset anchor point as an example, it is assumed that the preset anchor point is a UWB base station. Then, after the server receives all the coordinate positions and the distance values ​​corresponding to the coordinate positions, the server selects 3 coordinate positions from the received coordinate positions, and selects 3 distance values ​​for the same preset anchor point at these 3 coordinate positions from the distance values. Then, the server uses the coordinate positions of the 3 mobile robots in the constructed map as the 3 centers of the circles, and the distance values ​​of the 3 coordinate positions relative to the UWB base station as the 3 radius values, and forms circles with the 3 centers and 3 radii one by one according to the corresponding relationship. The server calculates the intersection between any two of the 3 circles, and selects one intersection point from each intersection of the two intersecting circles as the vertex of the triangle. The selection principle is: when there is only one intersection point between the two circles, the intersection point is selected as the vertex, and when there are more than two intersection points between the two circles, the intersection point closest to the third circle is determined as the vertex. Finally, the centroid of the triangle composed of the three vertices determined by solving is the coordinate of the UWB base station in the constructed map, that is, the map construction coordinates of the UWB base station.

[0061] Step S206, obtaining the coordinates of the preset anchor point in the preset map, and obtaining the preset coordinates of the preset anchor point.

[0062] Among them, the preset map is map data obtained by other methods, which can be map space data obtained by mapping through depth cameras and three-dimensional reconstruction algorithms, map space data obtained by exporting and converting from BIM (Building Information Modeling) systems, point of interest data obtained by manual marking, and map data obtained by a combination of the above data. It should be understood that the scene corresponding to the preset map should be the same scene as the constructed map. For example, the constructed map is obtained by mapping warehouse A by a mobile robot, then the preset map should be obtained by mapping warehouse A by other mapping methods. The preset coordinates are the coordinates of the preset anchor point in the preset map, which are the coordinates obtained based on the coordinate system of the preset map.

[0063] Specifically, when constructing the preset map, the preset coordinates of each preset anchor point in the preset map have been pre-stored, and each preset anchor point is distinguished by a unique anchor point ID. Therefore, the server can directly obtain the preset coordinates of the stored preset anchor point in the preset map from the database.

[0064] Step S208, mapping the map-building coordinates of each preset anchor point with the preset coordinates to obtain a transformation matrix between the built map of the mobile robot and the preset map.

[0065] Specifically, after the map construction coordinates and the preset coordinates of the preset anchor point are obtained, the transformation matrix between the constructed map and the preset map is obtained by mapping the two coordinates with the same anchor point ID.

[0066] In one embodiment, step S208 includes: selecting a preset number of preset mapping points from each preset anchor point as candidate anchor points; performing inverse affine transformation on the map construction coordinates and preset coordinates of each candidate anchor point respectively to obtain a transformation matrix between the constructed map of the mobile robot and the preset map.

[0067] The preset number is a preset number threshold value, which can be set according to actual conditions. In this embodiment, the preset number is preferably three.

[0068] Specifically, when the constructed map and the preset map are in an affine transformation relationship, three preset anchor points are selected from each preset anchor point as candidate anchor points. The six coordinates of the three selected candidate anchor points in the constructed map and the preset map are solved by the inverse affine transformation algorithm to obtain a transformation matrix. Among them, the mapping coordinates can be represented by homogeneous coordinates Pi1 = {xi1, yi1, 1}, the preset coordinates can be represented by homogeneous coordinates Pi2 = {xi2, yi2, 1}, and the transformation matrix obtained by the inverse affine transformation can be represented by Ti = [{t01, t02, 0}, {t11, t12, 0}, {t21, t22, 0}].

[0069] In addition, when the constructed map and the preset map are not in an affine transformation relationship, the constructed map and the preset map can be divided into sub-maps, such as hexagonal or rectangular forms. Then, the sub-maps of the constructed map and the sub-maps of the preset map are inversely affine transformed to obtain transformation matrices corresponding to the two sub-maps.

[0070] Step S210 , the moving destination of the mobile robot is converted into coordinates based on the transformation matrix and then sent to the mobile robot, and the mobile robot moves to a position corresponding to the moving destination after the coordinate conversion.

[0071] Specifically, when the mobile robot needs to be instructed to move, the server receives the moving destination coordinates sent by the business personnel through the terminal. The moving destination coordinates are coordinates based on the coordinate system of the preset coordinates. Then, the server obtains the transformation matrix corresponding to the mobile robot and uses the transformation matrix to convert the moving destination coordinates belonging to the coordinate system of the preset map into the moving destination coordinates belonging to the coordinate system of the constructed map. Finally, the converted moving destination coordinates belonging to the coordinate system of the constructed map are sent to the mobile robot. The mobile robot moves in combination with the constructed map obtained by its own mapping and the moving destination coordinates to reach the position specified by the moving destination coordinates.

[0072] The above robot movement method determines the mapping coordinates of the preset anchor point in the constructed map according to the acquired coordinate position of the mobile robot in the map constructed by itself and the distance value relative to the preset anchor point at each coordinate position, and then maps the mapping coordinates with the preset coordinates of the preset anchor point in the preset map to obtain the transformation matrix of the constructed map and the preset map, and then transforms the coordinates of the moving destination based on the transformation matrix and sends it to the mobile robot to complete the movement. This method realizes the docking of the constructed map and the preset map by mapping the two coordinate positions of the preset anchor point, and then completes the movement of the robot based on the transformation matrix obtained by docking, avoiding the mobile robot moving only according to the map constructed by itself, thereby reducing the influence of mapping errors and mapping errors, and improving the accuracy of movement.

[0073] In one embodiment, the auxiliary positioning method can also adopt the method of shooting a QR code. In this embodiment, the QR code is the preset anchor point. Specifically, during the movement of the mobile robot, the mobile robot's camera shoots an image of the QR code in the travel path. When the mobile robot shoots the QR code, the coordinate position in the constructed map plus a fixed offset is the coordinate of the photographed QR code in the constructed map, that is, the construction coordinates of the QR code.

[0074] In one embodiment, Figure 4 As shown, step 210 includes:

[0075] Step S402, receiving a movement instruction, the movement instruction carries a machine number and first movement destination coordinates, the first movement destination coordinates are coordinates on a preset map.

[0076] The moving instruction is a request instruction for instructing the mobile robot to move, the machine number is the number of the mobile robot, and the mobile robot to be moved can be specified by the machine number. The first moving destination coordinate is the moving destination coordinate received by the server based on the coordinate system of the preset map.

[0077] Specifically, when it is necessary to instruct the mobile robot to move, the business personnel sends a movement instruction carrying the robot number and the first movement destination coordinates to the server.

[0078] Step S404, obtaining the transformation matrix of the corresponding mobile robot according to the machine number.

[0079] Specifically, after receiving the movement instruction, the server obtains the transformation matrix of the corresponding mobile robot according to the machine number. Because each robot will build its own map when deploying mobile robots, each mobile robot has a corresponding transformation matrix with the preset map. Therefore, when using the transformation matrix to transform the coordinates of the mobile destination, it is necessary to obtain the corresponding transformation matrix according to the machine number.

[0080] Step S406: convert the first moving destination coordinates into second moving destination coordinates based on the transformation matrix, where the second moving destination coordinates belong to the coordinates on the constructed map.

[0081] The second moving destination coordinates are coordinates obtained by converting the first moving destination coordinates by the server, and are moving destination coordinates based on the coordinate system of the map built by the mobile robot.

[0082] Specifically, after the transformation matrix and the first moving destination coordinates are obtained, the inverse matrix of the transformation matrix is ​​obtained, and the inverse matrix of the transformation matrix is ​​multiplied by the first moving coordinates to complete the coordinate conversion to obtain the second moving destination coordinates.

[0083] Step S408: sending the second moving destination coordinates to the mobile robot corresponding to the machine number, and the mobile robot corresponding to the machine number moves to the position corresponding to the second moving destination coordinates.

[0084] Specifically, after converting the first moving destination coordinates belonging to the preset map into the second moving destination coordinates belonging to the constructed map, the server sends the second moving destination coordinates to the mobile robot corresponding to the machine number. After the mobile robot corresponding to the machine number receives the second moving destination coordinates, it moves to the position corresponding to the second moving destination coordinates according to its own constructed map to complete the movement.

[0085] In this embodiment, when the mobile robot is instructed to move, the transformation matrix obtained through mapping converts the coordinates of the moving destination from the coordinate system of the preset map to the coordinate system of the constructed map, thereby ensuring that the robot uses the self-built map while reducing the errors and mistakes caused by the robot's self-built map and improving the accuracy of the movement.

[0086] In one embodiment, the robot movement method also includes: receiving a location query instruction, the location query instruction carries a machine number; obtaining a first current coordinate of the corresponding mobile robot in the constructed map according to the machine number, and obtaining a transformation matrix corresponding to the mobile robot corresponding to the machine number; converting the first current coordinate into a second current coordinate based on the transformation matrix and displaying the second current coordinate in a preset map.

[0087] Specifically, when it is necessary to query the current location information of a mobile robot, the server responds to the location query instruction received from the terminal for requesting to query the current location of the robot. The mobile robot whose location needs to be queried is determined according to the machine number carried in the location query instruction, and a request for obtaining the first current coordinate is sent to the mobile robot whose location needs to be queried. The first current coordinate refers to the coordinate of the current location of the mobile robot sent by the mobile robot based on the map built by itself. After the computing device receives the first current coordinate fed back by the mobile robot, it obtains the transformation matrix corresponding to the mobile robot whose location needs to be queried according to the machine number. Then, the first current coordinate is converted into the second current coordinate using the transformation matrix, and the second current coordinate is displayed in the preset map so as to feed back the location query result to the business personnel. The second current coordinate is the current coordinate of the mobile robot obtained by converting the first current coordinate, with the coordinate system of the preset map as the reference.

[0088] In one embodiment, converting the first current coordinates into the second current coordinates based on the transformation matrix is ​​to multiply the obtained transformation matrix by the first current coordinates to complete the transformation of the first current coordinates and obtain the second current coordinates.

[0089] In this embodiment, when an instruction is given to query the position of a mobile robot, the transformation matrix obtained through mapping converts the current coordinates of the query from the coordinate system of the constructed map to the coordinate system of the preset map, thereby ensuring that the robot uses the self-built map while reducing the errors and mistakes caused by the robot's self-built map and improving the accuracy of the query.

[0090] It should be understood that although Figure 3-4 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 3-4 At least part of the steps may include multiple steps or multiple stages. These steps or stages are not necessarily performed at the same time, but can be performed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed in turn or alternately with other steps or at least part of the steps or stages in other steps.

[0091] In one embodiment, Figure 5 As shown, a robot mobile device is provided, including: a data acquisition module 502, a determination module 504, a coordinate acquisition module 506, a mapping module 508 and a mobile control module 510, wherein:

[0092] The data acquisition module 502 is used to acquire the coordinate position of the mobile robot in the constructed map sent by the mobile robot, and the distance value of the mobile robot relative to each preset anchor point when the mobile robot is at the coordinate position.

[0093] The determination module 504 is used to determine the mapping coordinates of the preset anchor points in the constructed map according to the coordinate position of the mobile robot in the constructed map and the distance values ​​relative to each preset anchor point at the coordinate position.

[0094] The coordinate acquisition module 506 is used to acquire the coordinates of the preset anchor point in the preset map to obtain the preset coordinates of the preset anchor point.

[0095] The mapping module 508 is used to map the map-building coordinates of each preset anchor point with the preset coordinates to obtain a transformation matrix between the built map of the mobile robot and the preset map.

[0096] The mobile control module 510 is used to perform coordinate conversion on the moving destination of the mobile robot based on the transformation matrix and send the result to the mobile robot, so that the mobile robot moves to a position corresponding to the moving destination after the coordinate conversion.

[0097] In one embodiment, the mapping module 508 is also used to select a preset number of preset mapping points from each preset anchor point as candidate anchor points; perform inverse affine transformation on the map construction coordinates and preset coordinates of each candidate anchor point respectively to obtain the transformation matrix of the constructed map of the mobile robot and the preset map.

[0098] In one embodiment, the mobile control module 510 is also used to receive a mobile instruction, which carries a machine number and a first mobile destination coordinate, where the first mobile destination coordinate belongs to the coordinate on a preset map; obtain a transformation matrix corresponding to the mobile robot according to the machine number; convert the first mobile destination coordinate into a second mobile destination coordinate based on the transformation matrix, where the second mobile destination coordinate belongs to the coordinate on the constructed map; send the second mobile destination coordinate to the mobile robot corresponding to the machine number, and the mobile robot corresponding to the machine number moves to the position corresponding to the second mobile destination coordinate.

[0099] In one embodiment, the movement control module 510 is further used to obtain the inverse matrix of the transformation matrix; and multiply the inverse matrix of the transformation matrix by the first movement coordinates to obtain the second movement destination coordinates.

[0100] In one embodiment, the robot mobile device also includes a query module for receiving a location query instruction, which carries a machine number; obtaining the first current coordinate of the corresponding mobile robot in the constructed map according to the machine number, and obtaining the transformation matrix corresponding to the mobile robot corresponding to the machine number; converting the first current coordinate into a second current coordinate based on the transformation matrix and displaying the second current coordinate in a preset map.

[0101] In one embodiment, the query module is further used to multiply the obtained transformation matrix by the first current coordinate to obtain the second current coordinate.

[0102] In one embodiment, the determination module 504 is further used to obtain a fixed number of coordinate positions and obtain a distance value corresponding to each coordinate position; perform triangulation based on each coordinate position and the distance value to determine the mapping coordinates of the preset anchor point.

[0103] The specific definition of the robot moving device can be found in the definition of the robot moving method above, which will not be repeated here. Each module in the above-mentioned robot moving device can be implemented in whole or in part by software, hardware and a combination thereof. Each of the above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.

[0104] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 6 As shown. The computer device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store the constructed map data, the preset map data, the preset coordinates of the preset anchor points and the transformation matrix of each mobile robot. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a robot movement method is implemented.

[0105] Those skilled in the art will understand that Figure 6 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0106] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:

[0107] Obtaining the coordinate position of the mobile robot in the constructed map sent by the mobile robot, and the distance value of the mobile robot relative to each preset anchor point when at the coordinate position;

[0108] Determine the mapping coordinates of the preset anchor points in the constructed map according to the coordinate position of the mobile robot in the constructed map and the distance values ​​of the mobile robot relative to each preset anchor point at the coordinate position;

[0109] Get the coordinates of the preset anchor point in the preset map to obtain the preset coordinates of the preset anchor point;

[0110] Mapping the map-building coordinates of each preset anchor point with the preset coordinates to obtain a transformation matrix between the map built by the mobile robot and the preset map;

[0111] The moving destination of the mobile robot is converted into coordinates based on the transformation matrix and then sent to the mobile robot, and the mobile robot moves to a position corresponding to the moving destination after the coordinate conversion.

[0112] In one embodiment, when the processor executes the computer program, the following steps are also implemented: a preset number of preset mapping points are selected from each preset anchor point as candidate anchor points; and the mapping coordinates and preset coordinates of each candidate anchor point are respectively subjected to inverse affine transformation to obtain a transformation matrix between the constructed map of the mobile robot and the preset map.

[0113] In one embodiment, when the processor executes the computer program, the following steps are also implemented: receiving a movement instruction, the movement instruction carries a machine number and a first movement destination coordinate, the first movement destination coordinate belongs to the coordinate on a preset map; obtaining a transformation matrix corresponding to the mobile robot according to the machine number; converting the first movement destination coordinate into a second movement destination coordinate based on the transformation matrix, the second movement destination coordinate belongs to the coordinate on the constructed map; sending the second movement destination coordinate to the mobile robot corresponding to the machine number, and the mobile robot corresponding to the machine number moves to the position corresponding to the second movement destination coordinate.

[0114] In one embodiment, when the processor executes the computer program, the following steps are further implemented: obtaining the inverse matrix of the transformation matrix; and multiplying the inverse matrix of the transformation matrix by the first movement coordinates to obtain the second movement destination coordinates.

[0115] In one embodiment, when the processor executes the computer program, it also implements the following steps: receiving a location query instruction, the location query instruction carries a machine number; obtaining the first current coordinates of the corresponding mobile robot in the constructed map according to the machine number, and obtaining the transformation matrix corresponding to the mobile robot corresponding to the machine number; converting the first current coordinates into the second current coordinates based on the transformation matrix and displaying the second current coordinates in the preset map.

[0116] In one embodiment, when the processor executes the computer program, the processor further implements the following steps: multiplying the obtained transformation matrix with the first current coordinate to obtain the second current coordinate.

[0117] In one embodiment, when the processor executes the computer program, the following steps are also implemented: obtaining a fixed number of coordinate positions, and obtaining the distance value corresponding to each coordinate position; performing triangulation based on each coordinate position and the distance value to determine the mapping coordinates of the preset anchor point.

[0118] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0119] Obtaining the coordinate position of the mobile robot in the constructed map sent by the mobile robot, and the distance value of the mobile robot relative to each preset anchor point when at the coordinate position;

[0120] Determine the mapping coordinates of the preset anchor points in the constructed map according to the coordinate position of the mobile robot in the constructed map and the distance values ​​of the mobile robot relative to each preset anchor point at the coordinate position;

[0121] Get the coordinates of the preset anchor point in the preset map to obtain the preset coordinates of the preset anchor point;

[0122] Mapping the map-building coordinates of each preset anchor point with the preset coordinates to obtain a transformation matrix between the map built by the mobile robot and the preset map;

[0123] The moving destination of the mobile robot is converted into coordinates based on the transformation matrix and then sent to the mobile robot, and the mobile robot moves to a position corresponding to the moving destination after the coordinate conversion.

[0124] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: a preset number of preset mapping points are selected from each preset anchor point as candidate anchor points; and the mapping coordinates and preset coordinates of each candidate anchor point are respectively subjected to inverse affine transformation to obtain a transformation matrix between the constructed map of the mobile robot and the preset map.

[0125] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: receiving a movement instruction, the movement instruction carries a machine number and a first movement destination coordinate, the first movement destination coordinate belongs to the coordinate on a preset map; obtaining a transformation matrix corresponding to the mobile robot according to the machine number; converting the first movement destination coordinate into a second movement destination coordinate based on the transformation matrix, the second movement destination coordinate belongs to the coordinate on the constructed map; sending the second movement destination coordinate to the mobile robot corresponding to the machine number, and the mobile robot corresponding to the machine number moves to the position corresponding to the second movement destination coordinate.

[0126] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: obtaining the inverse matrix of the transformation matrix; multiplying the inverse matrix of the transformation matrix by the first movement coordinates to obtain the second movement destination coordinates.

[0127] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: receiving a location query instruction, the location query instruction carries a machine number; obtaining the first current coordinates of the corresponding mobile robot in the constructed map according to the machine number, and obtaining the transformation matrix corresponding to the mobile robot corresponding to the machine number; converting the first current coordinates into the second current coordinates based on the transformation matrix and displaying the second current coordinates in the preset map.

[0128] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: multiplying the obtained transformation matrix with the first current coordinate to obtain the second current coordinate.

[0129] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: obtaining a fixed number of coordinate positions, and obtaining the distance value corresponding to each coordinate position; performing triangulation based on each coordinate position and the distance value to determine the mapping coordinates of the preset anchor point.

[0130] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).

[0131] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0132] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A robot movement method, the method comprising: Acquire the coordinate position of the mobile robot in the constructed map sent by the mobile robot, and the distance value of the mobile robot relative to each anchor point when the mobile robot is at the coordinate position; The mobile robot locates the preset anchor point based on the sensor data and the anchor point auxiliary positioning data, and obtains the constructed map, the coordinate position of the mobile robot in the constructed map, and the distance value of the mobile robot relative to each preset anchor point at the coordinate position; the anchor point auxiliary positioning data is the positioning and navigation data for locating the anchor point acquired by the auxiliary positioning hardware in the mobile robot, including the positioning and navigation data obtained by measuring the signal strength of the UWB base station by the UWB tag carried in the mobile robot; the preset anchor point is determined according to the auxiliary positioning method adopted by the mobile robot, and is used to represent a preset marking label, and the auxiliary positioning method includes adopting a UWB tag, or adopting shooting a QR code. When the auxiliary positioning method adopts a UWB tag, the preset anchor point is a UWB base station, and when the auxiliary positioning method adopts shooting a QR code, the preset anchor point is a QR code; Determine the mapping coordinates of each of the preset anchor points in the constructed map according to the coordinate position of the mobile robot in the constructed map and the distance value relative to each of the preset anchor points at the coordinate position; the mapping coordinates represent the coordinates of the preset anchor points when the coordinate system of the constructed map of the mobile robot is used as a reference; Acquire the coordinates of the preset anchor point in the preset map to obtain the preset coordinates of the preset anchor point; the preset coordinates are the coordinates of the preset anchor point obtained based on the coordinate system of the preset map, and the preset map and the constructed map are the same scene; The preset map is map data obtained by combining map space data obtained by mapping using a depth camera and a three-dimensional reconstruction algorithm, map space data obtained by exporting and converting from a building information modeling system, and point of interest data obtained by marking; The mapping coordinates of each preset anchor point belonging to the same anchor point ID are mapped to the preset coordinates to obtain a transformation matrix between the constructed map and the preset map of the mobile robot; wherein, when the constructed map and the preset map are not in an affine transformation relationship, the constructed map and the preset map are transformed into a combination of sub-maps by dividing the constructed map and the preset map respectively, and the sub-maps of the constructed map and the sub-maps of the preset map are inversely affine transformed to obtain transformation matrices corresponding to the two sub-maps; The moving destination of the mobile robot is subjected to coordinate transformation based on the transformation matrix and then sent to the mobile robot, and the mobile robot moves to a position corresponding to the moving destination after the coordinate transformation.

2. The method according to claim 1, characterized in that The method further comprises: Selecting a preset number of preset anchor points from each of the preset anchor points as candidate anchor points; The map-building coordinates and the preset coordinates of each candidate anchor point are respectively subjected to inverse affine transformation to obtain a transformation matrix between the built map of the mobile robot and the preset map.

3. The method according to claim 1, characterized in that: The step of performing coordinate conversion on the moving destination of the mobile robot based on the transformation matrix and then sending the result to the mobile robot, wherein the mobile robot moves to a position corresponding to the moving destination after the coordinate conversion, comprises: receiving a movement instruction, wherein the movement instruction carries a machine number and first movement destination coordinates, and the first movement destination coordinates belong to coordinates on the preset map; Acquire a transformation matrix corresponding to the mobile robot according to the machine number; converting the first moving destination coordinates into second moving destination coordinates based on the transformation matrix, where the second moving destination coordinates belong to coordinates on the constructed map; The second moving destination coordinates are sent to the mobile robot corresponding to the machine number, and the mobile robot corresponding to the machine number moves to the position corresponding to the second moving destination coordinates.

4. The method according to claim 3, characterized in that The converting the first moving destination coordinates into second moving destination coordinates based on the transformation matrix comprises: Obtaining the inverse matrix of the transformation matrix; The inverse matrix is ​​multiplied by the first moving destination coordinates to obtain second moving destination coordinates.

5. The method according to claim 1, characterized in that The method further comprises: receiving a location query instruction, wherein the location query instruction carries a machine number; Acquire a first current coordinate of the corresponding mobile robot in the constructed map according to the machine number, and acquire a transformation matrix corresponding to the mobile robot corresponding to the machine number; The first current coordinate is converted into a second current coordinate based on the transformation matrix and the second current coordinate is displayed in the preset map.

6. The method according to claim 5, characterized in that The converting the first current coordinate into the second current coordinate based on the transformation matrix comprises: The transformation matrix is ​​multiplied by the first current coordinate to obtain a second current coordinate.

7. The method according to claim 1, characterized in that The determining the mapping coordinates of the preset anchor points in the constructed map according to the coordinate position of the mobile robot in the constructed map and the distance value relative to each preset anchor point at the coordinate position includes: Obtaining a fixed number of coordinate positions, and obtaining the distance value corresponding to each of the coordinate positions; Triangulation is performed based on the coordinate positions and the distance values ​​to determine the mapping coordinates of the preset anchor points.

8. A robot moving device, characterized in that: The device comprises: A data acquisition module, used for acquiring the coordinate position of the mobile robot in the constructed map and the distance value of the mobile robot relative to each anchor point at the coordinate position sent by the mobile robot; the mobile robot locates the preset anchor point based on the sensor data and the anchor point auxiliary positioning data to obtain the constructed map, the coordinate position of the mobile robot in the constructed map, and the distance value of the mobile robot relative to each preset anchor point at the coordinate position; the anchor point auxiliary positioning data is the positioning and navigation data for locating the anchor point acquired by the auxiliary positioning hardware in the mobile robot, including the positioning and navigation data obtained by measuring the signal strength of the UWB base station by the UWB tag carried in the mobile robot; the preset anchor point is determined according to the auxiliary positioning method adopted by the mobile robot, and is used to represent a pre-set marking label, and the auxiliary positioning method includes adopting a UWB tag or adopting shooting a QR code. When the auxiliary positioning method adopts a UWB tag, the preset anchor point is a UWB base station, and when the auxiliary positioning method adopts shooting a QR code, the preset anchor point is a QR code; A determination module, configured to determine the mapping coordinates of the preset anchor points in the constructed map according to the coordinate position of the mobile robot in the constructed map and the distance values ​​relative to each preset anchor point at the coordinate position; the mapping coordinates represent the coordinates of the preset anchor points when the coordinate system of the constructed map of the mobile robot is used as a reference; A coordinate acquisition module, used to acquire the coordinates of the preset anchor point in the preset map, and obtain the preset coordinates of the preset anchor point; the preset coordinates are the coordinates of the preset anchor point obtained by taking the coordinate system of the preset map as a reference, and the preset map and the constructed map are the same scene; the preset map is map data obtained by combining map space data obtained by mapping using a depth camera and a three-dimensional reconstruction algorithm, map space data obtained by exporting and converting from a building information modeling system, and point of interest data obtained by marking; A mapping module, used for mapping the mapping coordinates of each preset anchor point belonging to the same anchor point ID with the preset coordinates to obtain a transformation matrix between the constructed map and the preset map of the mobile robot; wherein, when the constructed map and the preset map are not in an affine transformation relationship, the constructed map and the preset map are transformed into a combination of sub-maps by dividing the constructed map and the preset map respectively, and the sub-maps of the constructed map and the sub-maps of the preset map are inversely affine transformed to obtain transformation matrices corresponding to the two sub-maps; The mobile control module is used to perform coordinate conversion on the moving destination of the mobile robot based on the transformation matrix and send the result to the mobile robot, so that the mobile robot moves to a position corresponding to the moving destination after the coordinate conversion.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

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