Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
CN109375626B - Location code sticking method, device, computer equipment and storage medium - Google Patents
[go: Go Back, main page]

CN109375626B - Location code sticking method, device, computer equipment and storage medium - Google Patents

Location code sticking method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN109375626B
CN109375626B CN201811385040.7A CN201811385040A CN109375626B CN 109375626 B CN109375626 B CN 109375626B CN 201811385040 A CN201811385040 A CN 201811385040A CN 109375626 B CN109375626 B CN 109375626B
Authority
CN
China
Prior art keywords
positioning code
code
positioning
pose
standard
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811385040.7A
Other languages
Chinese (zh)
Other versions
CN109375626A (en
Inventor
房冰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hai Robotics Co Ltd
Original Assignee
Hai Robotics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hai Robotics Co Ltd filed Critical Hai Robotics Co Ltd
Priority to CN201811385040.7A priority Critical patent/CN109375626B/en
Priority to CN202110679624.0A priority patent/CN113409401B/en
Publication of CN109375626A publication Critical patent/CN109375626A/en
Application granted granted Critical
Publication of CN109375626B publication Critical patent/CN109375626B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/80Analysis of captured images to determine intrinsic or extrinsic camera parameters, i.e. camera calibration
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/70Determining position or orientation of objects or cameras
    • G06T7/73Determining position or orientation of objects or cameras using feature-based methods
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30204Marker
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30244Camera pose

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Control Of Position, Course, Altitude, Or Attitude Of Moving Bodies (AREA)
  • Manipulator (AREA)

Abstract

本申请涉及一种定位码贴设方法,包括:行进至光线网格的网格节点处,确定在网格节点处接收到光线的方向,按照光线的方向调整机器人至预设姿态,每当在网格节点处调整机器人至预设姿态时,在当前的网格节点处贴设定位码。本申请还涉及另一种定位码贴设方法,包括:从基准定位码起搜索定位码,根据从基准定位码至所搜索到定位码的路径确定机器人的第一预测位姿,并根据所搜索到定位码与机器人的相对关系和第一预测位姿确定该定位码的第二预测位姿,根据基准定位码修正所搜索到定位码的第二预测位姿,对于修正后的第二预测位姿与相应定位码所表示的标准位姿间存在差异的定位码按照标准位姿重新贴设。采用本申请的方案能够提高定位码的位姿准确率。

Figure 201811385040

The present application relates to a method for attaching a positioning code. When adjusting the robot to the preset posture at the grid node, paste the setting code at the current grid node. The present application also relates to another positioning code sticking method, comprising: searching for a positioning code from a reference positioning code, determining a first predicted pose of the robot according to a path from the reference positioning code to the searched positioning code, and determining a first predicted pose of the robot according to the searched positioning code. Determine the second predicted pose of the positioning code based on the relative relationship between the positioning code and the robot and the first predicted pose, and correct the second predicted pose of the searched positioning code according to the reference positioning code. The positioning codes that are different between the poses and the standard poses represented by the corresponding positioning codes are re-posted according to the standard poses. Using the solution of the present application can improve the pose accuracy of the positioning code.

Figure 201811385040

Description

定位码贴设方法、装置、计算机设备和存储介质Location code sticking method, device, computer equipment and storage medium

技术领域technical field

本申请涉及移动机器人技术领域,特别是涉及一种定位码贴设方法、装置、计算机设备和存储介质。The present application relates to the technical field of mobile robots, and in particular, to a method, device, computer equipment and storage medium for attaching a positioning code.

背景技术Background technique

随着移动机器人技术的发展,出现了通过机器人扫描定位码前进以及确定位置,进行定位导航,完成货物的搬运。定位码是一种用于移动机器人在行走过程中,辅助移动机器人进行定位和行进方向确定的识别码。With the development of mobile robot technology, the robot scans the positioning code to move forward and determine the position, carry out positioning and navigation, and complete the handling of goods. The positioning code is an identification code used to assist the mobile robot in positioning and determining the direction of travel during the walking process.

由于传统的仓库导航,都需要提前进行地面改造,在地面部署定位码。这种方式需要人工在前期做大量的工作,并且通过人工来贴定位码,难以做到十分精准,导致定位码的位姿准确率低。Due to the traditional warehouse navigation, it is necessary to carry out ground transformation in advance and deploy positioning codes on the ground. This method requires a lot of manual work in the early stage, and the positioning code is manually pasted, which is difficult to achieve very accurate, resulting in a low position and orientation accuracy of the positioning code.

发明内容SUMMARY OF THE INVENTION

基于此,有必要针对上述技术问题,提供一种定位码贴设方法、装置、计算机设备和存储介质。Based on this, it is necessary to provide a positioning code sticking method, device, computer equipment and storage medium in response to the above technical problems.

一种定位码贴设方法,应用于机器人,所述方法包括:A positioning code sticking method, applied to a robot, the method comprising:

行进至光线网格的网格节点处;Proceed to the grid node of the ray grid;

确定在网格节点处接收到的光线的方向,光线属于光线网格;Determines the direction of the rays received at the mesh nodes, the rays belong to the ray mesh;

按照光线的方向,调整机器人至预设姿态;According to the direction of the light, adjust the robot to the preset posture;

每当在网格节点处调整机器人至预设姿态时,在当前的网格节点处贴设定位码。Whenever the robot is adjusted to the preset posture at the grid node, the setting code is pasted at the current grid node.

在其中一个实施例中,所述方法还包括:In one embodiment, the method further includes:

从基准定位码起搜索定位码;Search the positioning code from the reference positioning code;

根据从基准定位码至所搜索到定位码的路径,确定机器人的第一预测位姿;Determine the first predicted pose of the robot according to the path from the reference positioning code to the searched positioning code;

根据所搜索到定位码与机器人的相对关系以及第一预测位姿确定所搜索到定位码的第二预测位姿;Determine the second predicted pose of the searched positioning code according to the relative relationship between the searched positioning code and the robot and the first predicted pose;

根据基准定位码修正所搜索到定位码的第二预测位姿;Correct the second predicted pose of the searched positioning code according to the reference positioning code;

对于修正后的第二预测位姿与相应定位码所表示的标准位姿间存在差异的定位码,按照标准位姿重新贴设。For the positioning code that is different between the corrected second predicted pose and the standard pose represented by the corresponding positioning code, it is re-posted according to the standard pose.

在其中一个实施例中,根据基准定位码修正所搜索到的定位码的第二预测位姿包括:In one of the embodiments, correcting the second predicted pose of the searched positioning code according to the reference positioning code includes:

当经过搜索回到基准定位码处,确定基准定位码的实际位姿和当前的第二预测位姿间的偏差,当偏差超过第一预设范围时,则After searching back to the reference positioning code, the deviation between the actual pose of the reference positioning code and the current second predicted pose is determined. When the deviation exceeds the first preset range, then

根据当前的偏差修正所搜索到定位码的第二预测位姿,并继续执行从基准定位码起搜索定位码的步骤,直至当偏差在第一预设范围内时停止搜索。The second predicted pose of the searched positioning code is corrected according to the current deviation, and the step of searching for the positioning code from the reference positioning code is continued until the search is stopped when the deviation is within the first preset range.

在其中一个实施例中,所述方法还包括:In one embodiment, the method further includes:

获取标准路线信息,标准路线信息携带有相应路线上定位码的标准定位码信息和标准位置信息;Obtain standard route information, which carries standard location code information and standard location information of the location code on the corresponding route;

按照贴设的定位码行进;Follow the posted positioning code;

当行进到标准位置信息所表示的位置处、且未从位置处采集到相应定位码的标准定位码信息时,生成用于上报的定位码错误信息。When traveling to the position indicated by the standard position information and the standard positioning code information of the corresponding positioning code is not collected from the position, the positioning code error information for reporting is generated.

在其中一个实施例中,当行进到标准位置信息所表示的位置处、且未从位置处采集到相应定位码的标准定位码信息时,生成用于上报的定位码错误信息包括:In one embodiment, when traveling to the position indicated by the standard position information and the standard positioning code information of the corresponding positioning code is not collected from the position, generating the positioning code error information for reporting includes:

当行进到标准位置信息所表示的位置处、且在位置处采集的定位码的定位码信息与标准位置信息相应的标准定位码信息不一致时,生成用于上报的定位码第一错误信息;或者,When traveling to the location indicated by the standard location information and the location code information of the location code collected at the location is inconsistent with the standard location code information corresponding to the standard location information, generate the location code first error message for reporting; or ,

当行进到标准位置信息所表示的位置处、且在位置处未采集到任何定位码的定位码信息时,生成用于上报的定位码第二错误信息。When traveling to the location indicated by the standard location information and no location code information of the location code is collected at the location, the second error message of the location code for reporting is generated.

在其中一个实施例中,所述方法还包括:In one embodiment, the method further includes:

当对应于相同定位码上报的定位码错误信息达到预设次数时,获取定位码更换指令;When the location code error information reported corresponding to the same location code reaches a preset number of times, obtain a location code replacement instruction;

根据更换指令对相应位置上的定位码进行更换,且更换后的定位码用于表示标准定位码信息。The positioning code at the corresponding position is replaced according to the replacement instruction, and the replaced positioning code is used to represent the standard positioning code information.

在其中一个实施例中,根据更换指令对相应位置上的定位码进行更换包括:In one embodiment, the replacement of the positioning code on the corresponding position according to the replacement instruction includes:

根据更换指令获取随机定位码;Obtain the random location code according to the replacement instruction;

更换所述相应位置上的定位码为随机定位码;Replace the positioning code on the corresponding position with a random positioning code;

将随机定位码的随机定位码信息发送至服务器,随机定位码信息用于指示服务器建立随机定位码信息到标准定位码信息的映射。The random location code information of the random location code is sent to the server, and the random location code information is used to instruct the server to establish a mapping from the random location code information to the standard location code information.

一种定位码贴设装置,所述装置包括:A positioning code sticking device, the device comprises:

行进模块,用于控制机器人行进至光线网格的网格节点处;The travel module is used to control the robot to travel to the grid node of the ray grid;

确定方向模块,用于确定在网格节点处接收到的光线的方向,光线属于光线网格;The direction determination module is used to determine the direction of the light received at the grid node, and the light belongs to the light grid;

调整模块,用于按照光线的方向,调整机器人至预设姿态;The adjustment module is used to adjust the robot to the preset posture according to the direction of the light;

贴设模块,用于每当在网格节点处调整机器人至预设姿态时,在当前的网格节点处贴设定位码。The sticking module is used to stick the setting code on the current grid node whenever the robot is adjusted to the preset posture at the grid node.

一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现以下步骤:A computer device, comprising a memory, a processor and a computer program stored in the memory and running on the processor, the processor implements the following steps when executing the computer program:

行进至光线网格的网格节点处;Proceed to the grid node of the ray grid;

确定在网格节点处接收到的光线的方向,光线属于光线网格;Determines the direction of the rays received at the mesh nodes, the rays belong to the ray mesh;

按照光线的方向,调整机器人至预设姿态;According to the direction of the light, adjust the robot to the preset posture;

每当在网格节点处调整机器人至预设姿态时,在当前的网格节点处贴设定位码。Whenever the robot is adjusted to the preset posture at the grid node, the setting code is pasted at the current grid node.

一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现以下步骤:A computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

行进至光线网格的网格节点处;Proceed to the grid node of the ray grid;

确定在网格节点处接收到的光线的方向,光线属于光线网格;Determines the direction of the rays received at the mesh nodes, the rays belong to the ray mesh;

按照光线的方向,调整机器人至预设姿态;According to the direction of the light, adjust the robot to the preset posture;

每当在网格节点处调整机器人至预设姿态时,在当前的网格节点处贴设定位码。Whenever the robot is adjusted to the preset posture at the grid node, the setting code is pasted at the current grid node.

上述定位码贴设方法、装置、计算机设备和存储介质,利用光线网格实现机器人的精准定位,并利用光线网格的光线方向调整机器人的姿态,使得机器人在网格节点处且处于预设姿态时进行定位码的贴设,相比人工贴设更加精准、高效,提高了定位码的位姿准确率。The above-mentioned positioning code sticking method, device, computer equipment and storage medium use the light grid to realize the precise positioning of the robot, and use the light direction of the light grid to adjust the posture of the robot, so that the robot is at the grid node and in a preset posture When the positioning code is installed, it is more accurate and efficient than manual installation, and the pose accuracy of the positioning code is improved.

一种定位码贴设方法,应用于机器人,所述方法包括:A positioning code sticking method, applied to a robot, the method comprising:

从基准定位码起搜索定位码;Search the positioning code from the reference positioning code;

根据从基准定位码至所搜索到定位码的路径,确定机器人的第一预测位姿;Determine the first predicted pose of the robot according to the path from the reference positioning code to the searched positioning code;

根据所搜索到定位码与机器人的相对关系以及第一预测位姿确定所搜索到定位码的第二预测位姿;Determine the second predicted pose of the searched positioning code according to the relative relationship between the searched positioning code and the robot and the first predicted pose;

根据基准定位码修正所搜索到定位码的第二预测位姿;Correct the second predicted pose of the searched positioning code according to the reference positioning code;

对于修正后的第二预测位姿与相应定位码所表示的标准位姿间存在差异的定位码,按照标准位姿重新贴设。For the positioning code that is different between the corrected second predicted pose and the standard pose represented by the corresponding positioning code, it is re-posted according to the standard pose.

在其中一个实施例中,根据基准定位码修正所搜索到的定位码的第二预测位姿包括:In one of the embodiments, correcting the second predicted pose of the searched positioning code according to the reference positioning code includes:

当经过搜索回到基准定位码处,确定基准定位码的实际位姿和当前的第二预测位姿间的偏差,当偏差超过第一预设范围时,则After searching back to the reference positioning code, the deviation between the actual pose of the reference positioning code and the current second predicted pose is determined. When the deviation exceeds the first preset range, then

根据当前的偏差修正所搜索到定位码的第二预测位姿,并继续执行从基准定位码起搜索定位码的步骤,直至当偏差在第一预设范围内时停止搜索。The second predicted pose of the searched positioning code is corrected according to the current deviation, and the step of searching for the positioning code from the reference positioning code is continued until the search is stopped when the deviation is within the first preset range.

一种定位码贴设装置,所述装置包括:A positioning code sticking device, the device comprises:

搜索模块,用于从基准定位码起搜索定位码;The search module is used to search the positioning code from the reference positioning code;

确定第一位姿模块,用于根据从基准定位码至所搜索到定位码的路径,确定机器人的第一预测位姿;determining the first pose module, for determining the first predicted pose of the robot according to the path from the reference positioning code to the searched positioning code;

确定第二位姿模块,根据所搜索到定位码与机器人的相对关系以及第一预测位姿确定所搜索到定位码的第二预测位姿;determining the second pose module, and determining the second predicted pose of the searched positioning code according to the relative relationship between the searched positioning code and the robot and the first predicted pose;

修正模块,用于根据基准定位码修正所搜索到定位码的第二预测位姿;a correction module, used for correcting the second predicted pose of the searched positioning code according to the reference positioning code;

重贴模块,用于对于修正后的第二预测位姿与相应定位码所表示的标准位姿间存在差异的定位码,按照标准位姿重新贴设。The reposting module is used for reposting the positioning codes with differences between the corrected second predicted postures and the standard postures represented by the corresponding positioning codes according to the standard postures.

一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现以下步骤:A computer device, comprising a memory, a processor and a computer program stored in the memory and running on the processor, the processor implements the following steps when executing the computer program:

从基准定位码起搜索定位码;Search the positioning code from the reference positioning code;

根据从基准定位码至所搜索到定位码的路径,确定机器人的第一预测位姿;Determine the first predicted pose of the robot according to the path from the reference positioning code to the searched positioning code;

根据所搜索到定位码与机器人的相对关系以及第一预测位姿确定所搜索到定位码的第二预测位姿;Determine the second predicted pose of the searched positioning code according to the relative relationship between the searched positioning code and the robot and the first predicted pose;

根据基准定位码修正所搜索到定位码的第二预测位姿;Correct the second predicted pose of the searched positioning code according to the reference positioning code;

对于修正后的第二预测位姿与相应定位码所表示的标准位姿间存在差异的定位码,按照标准位姿重新贴设。For the positioning code that is different between the corrected second predicted pose and the standard pose represented by the corresponding positioning code, it is re-posted according to the standard pose.

一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现以下步骤:A computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

从基准定位码起搜索定位码;Search the positioning code from the reference positioning code;

根据从基准定位码至所搜索到定位码的路径,确定机器人的第一预测位姿;Determine the first predicted pose of the robot according to the path from the reference positioning code to the searched positioning code;

根据所搜索到定位码与机器人的相对关系以及第一预测位姿确定所搜索到定位码的第二预测位姿;Determine the second predicted pose of the searched positioning code according to the relative relationship between the searched positioning code and the robot and the first predicted pose;

根据基准定位码修正所搜索到定位码的第二预测位姿;Correct the second predicted pose of the searched positioning code according to the reference positioning code;

对于修正后的第二预测位姿与相应定位码所表示的标准位姿间存在差异的定位码,按照标准位姿重新贴设。For the positioning code that is different between the corrected second predicted pose and the standard pose represented by the corresponding positioning code, it is re-posted according to the standard pose.

上述定位码贴设方法、装置、计算机设备和存储介质,以基准定位码为基准,修正所搜索到定位码的第二预测位姿,对修正后的第二预测位姿和所搜索到定位码所表示的标准位姿间有差异的定位码进行重新贴设,使位姿不准确的定位码达到准确的位姿,提高了定位码的位姿准确率。The above-mentioned positioning code sticking method, device, computer equipment and storage medium, take the reference positioning code as a benchmark, correct the second predicted pose of the searched positioning code, and compare the corrected second predicted pose and the searched positioning code. The positioning codes with differences between the represented standard poses are re-attached, so that the positioning codes with inaccurate poses can achieve accurate poses, and the pose accuracy of the positioning codes is improved.

附图说明Description of drawings

图1为一个实施例中定位码贴设方法的应用环境图;1 is an application environment diagram of a positioning code sticking method in one embodiment;

图2为一个实施例中定位码贴设方法的流程示意图;2 is a schematic flowchart of a method for affixing a positioning code in an embodiment;

图3为一个实施例中对位姿错误的定位码进行重贴的流程示意图;3 is a schematic flowchart of reposting a positioning code with an incorrect pose in one embodiment;

图4为一个实施例中检测定位码错误并生成用于上报的定位码错误信息的步骤的流程示意图;4 is a schematic flowchart of the steps of detecting a positioning code error and generating positioning code error information for reporting in one embodiment;

图5为一个实施例中对错误定位码进行更换的流程示意图;5 is a schematic flow chart of replacing an error location code in one embodiment;

图6为一个实施例中定位码贴设装置的结构框图;6 is a structural block diagram of a positioning code sticking device in one embodiment;

图7为另一个实施例中定位码贴设装置的结构框图;7 is a structural block diagram of a positioning code sticking device in another embodiment;

图8为一个实施例中计算机设备的内部结构图。FIG. 8 is a diagram of the internal structure of a computer device in one embodiment.

具体实施方式Detailed ways

为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the purpose, technical solutions and advantages of the present application more clearly understood, the present application will be described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application, but not to limit the present application.

本申请提供的定位码贴设方法,可以应用于如图1所示的应用环境中。其中,光线发射器104通过光线控制机器人102,机器人102可通过网络与服务器 106通过网络进行通信。具体的,光线发射器104发射光线至机器人102设有的光线接收器108控制机器人102行进至光线网格的网格节点处,机器人102确定在网格节点处接收到的光线发射器104发射的光线的方向,机器人102的光线接收器108按照光线的方向,调整机器人102的姿态至预设姿态后,机器人 102开始在地面贴设定位码。定位码是一种携带有位置信息的识别码,可用于移动机器人在行走过程中的定位和行进方向确定;识别码可以是条码、二维码、 RFID标签等。机器人102按照贴设的定位码行进,以标准路线信息为标准,在机器人102行进到标准位置信息所表示的位置处、且未从位置处采集到相应定位码的标准定位码信息时,机器人102生成用于上报的定位码错误信息至服务器106。其中,网格节点可表示由两条或两条以上的光线相交而成的交叉点,光线发射器可为激光发射器,发射出的光线可为激光。The positioning code sticking method provided by the present application can be applied to the application environment shown in FIG. 1 . Wherein, the light transmitter 104 controls the robot 102 through the light, and the robot 102 can communicate with the server 106 through the network through the network. Specifically, the light emitter 104 emits light to the light receiver 108 provided by the robot 102 to control the robot 102 to travel to the grid node of the light grid, and the robot 102 determines the light emitted by the light transmitter 104 received at the grid node. The direction of the light, after the light receiver 108 of the robot 102 adjusts the posture of the robot 102 to a preset posture according to the direction of the light, the robot 102 starts to paste the set position code on the ground. The positioning code is an identification code that carries position information, which can be used for positioning and determination of the traveling direction of the mobile robot during the walking process; the identification code can be a barcode, a two-dimensional code, an RFID tag, and the like. The robot 102 travels according to the posted positioning code, and takes the standard route information as the standard. When the robot 102 travels to the position indicated by the standard position information, and the standard positioning code information of the corresponding positioning code is not collected from the position, the robot 102 The location code error information for reporting is generated to the server 106 . The grid node may represent an intersection formed by the intersection of two or more light rays, the light emitter may be a laser transmitter, and the emitted light may be a laser.

当对应于相同定位码上报的定位码错误信息达到预设次数时,服务器106 可通知机器人102,由机器人102获取定位码更换指令;根据更换指令对相应位置上的定位码进行更换。机器人102在用随机定位码更换错误信息对应位置处的定位码时,机器人102将随机定位码的随机定位码信息发送至服务器106,随机定位码信息用于指示服务器106建立随机定位码信息到标准定位码信息的映射。可以理解的是,服务器106也可以通知工作人员或其他机器人,由工作人员或其他机器人对定位码进行更换。其中,服务器106可以用独立的服务器或者是多个服务器组成的服务器集群来实现。When the location code error information reported corresponding to the same location code reaches a preset number of times, the server 106 may notify the robot 102, and the robot 102 obtains the location code replacement instruction; When the robot 102 replaces the location code at the location corresponding to the error information with the random location code, the robot 102 sends the random location code information of the random location code to the server 106, and the random location code information is used to instruct the server 106 to establish the random location code information to the standard. Mapping of location code information. It can be understood that the server 106 may also notify the staff or other robots to replace the positioning code. The server 106 may be implemented by an independent server or a server cluster composed of multiple servers.

在一个实施例中,如图2所示,提供了一种定位码贴设方法,以该方法应用于图1中的机器人为例进行说明,该方法包括以下步骤:In one embodiment, as shown in FIG. 2 , a method for attaching a positioning code is provided. Taking the method applied to the robot in FIG. 1 as an example, the method includes the following steps:

步骤202,行进至光线网格的网格节点处。Step 202, proceed to the grid node of the ray grid.

具体地,可在机器人不同朝向的部位分别设置光线接收器,利用各光线接收器接收到的用于组成光线网格的光线进行导航,从而行进至光线网格的网格节点处。Specifically, light receivers may be set at different orientations of the robot, and the light received by each light receiver for composing the light grid is used for navigation, so as to travel to the grid nodes of the light grid.

机器人上设置的光线接收器可以是多个。行进至网格节点处具体可以是沿着组成光线网格的光线的方向行进至网格节点处,也可以是根据预先设置好的路径行进至网格节点处,例如沿螺旋路线依次行进至光线网格的每个网格节点处。组成光线网格的光线可处于相同水平面。网格节点可以由沿相互垂直的两个轴向的光线所形成,每个轴向上的光线可以是单向发射或者双向对射的。There can be multiple light receivers set on the robot. Going to the grid node may specifically be traveling to the grid node along the direction of the light rays that make up the light grid, or traveling to the grid node according to a preset path, for example, proceeding to the light rays in turn along a spiral route. at each grid node of the grid. The rays that make up the ray grid can be in the same horizontal plane. A grid node can be formed by rays along two mutually perpendicular axes, and the rays in each axis can be unidirectionally emitted or bidirectionally opposed.

步骤204,确定在网格节点处接收到的光线的方向,该光线属于光线网格。Step 204: Determine the direction of the light received at the grid node, where the light belongs to the light grid.

具体的,机器人在行进至某网格节点处时,在该网格节点处确定当前所接收到的、属于光线网格的光线,并确定该光线与机器人当前姿态的相对偏差方向。机器人在网格节点处接收到的属于网线网格的光线可以是两条条或者两条条以上。Specifically, when the robot travels to a grid node, the currently received light belonging to the ray grid is determined at the grid node, and the relative deviation direction of the light from the robot's current posture is determined. The light rays belonging to the network line grid received by the robot at the grid node may be two or more lines.

步骤206,按照光线的方向,调整机器人至预设姿态。Step 206, according to the direction of the light, adjust the robot to a preset posture.

具体的,按照光线接收器接收到的光线与机器人当前姿态的相对偏差方向,调整机器人的姿态。当机器人的姿态被调整到预设姿态时,停止调整。Specifically, the posture of the robot is adjusted according to the relative deviation direction of the light received by the light receiver and the current posture of the robot. When the robot's posture is adjusted to the preset posture, stop the adjustment.

在一个实施例中,机器人上的光线接收器可沿机器人的中心对称设置,机器人可通过对称设置的光线接收器接收光线,从而按照对称设置的光线接收器所接收的光线的方向来调整机器人的姿态。当互相垂直的两个轴向上对称设置的光线接收器所接收到的光线分别与对应轴向上对称设置的光线接收器所在的直线重合时,可判定机器人调整到预设姿态。对称设置的光线接收器所接收到的光线是相互垂直的不同两个轴向上的光线。In one embodiment, the light receivers on the robot can be arranged symmetrically along the center of the robot, and the robot can receive light through the symmetrically arranged light receivers, so as to adjust the direction of the light received by the symmetrically arranged light receivers. attitude. When the rays received by the light receivers arranged symmetrically on the two mutually perpendicular axes respectively coincide with the straight lines where the light receivers arranged symmetrically on the corresponding axes are located, it can be determined that the robot is adjusted to the preset posture. The light received by the symmetrically arranged light receivers is the light on two different axes that are perpendicular to each other.

步骤208,每当在所述网格节点处调整所述机器人至预设姿态时,在当前的所述网格节点处贴设定位码。Step 208: Whenever the robot is adjusted to a preset posture at the grid node, a setting code is posted at the current grid node.

具体的,机器人处于网格节点处,并根据接收到的光线调整机器人的姿态达到预设姿态后,机器人按照预设姿态在网格节点处贴设定位码。其中,定位码可以但不限于是二维码、条形码等,且定位码的颜色和形状可以是任意的。Specifically, the robot is located at the grid node, and after the robot's posture is adjusted according to the received light to reach the preset posture, the robot pastes the set position code at the grid node according to the preset posture. Wherein, the positioning code may be, but not limited to, a two-dimensional code, a barcode, etc., and the color and shape of the positioning code may be arbitrary.

上述定位码贴设方法,利用光线网格实现机器人的精准定位,并利用光线网格的光线方向调整机器人的姿态,使得机器人在网格节点处且处于预设姿态时进行定位码的贴设,相比人工贴设更加精准、高效,提高了定位码的位姿准确率。The above positioning code sticking method uses the light grid to realize the precise positioning of the robot, and uses the light direction of the light grid to adjust the posture of the robot, so that the robot is placed at the grid node and in the preset posture. Compared with manual sticking, it is more accurate and efficient, and improves the pose accuracy of the positioning code.

如图3所示,在一个实施例中,上述定位码贴设方法还包括对位姿错误的定位码进行重贴的步骤,该步骤具体包括以下步骤:As shown in FIG. 3 , in one embodiment, the above-mentioned positioning code sticking method further includes the step of re-sticking the positioning code with wrong pose, and this step specifically includes the following steps:

步骤302,从基准定位码起搜索定位码。Step 302, searching for the positioning code from the reference positioning code.

具体的,机器人以基准定位码为起点,可以在地面上随机或者按照预设路径搜索定位码。其中,基准定位码的实际位姿处于一个绝对准确的位姿,机器人以基准定位码的实际位姿为基准,开始在地面搜索定位码。其中,定位码的位姿包括定位码的位置和/或姿态。预设路径可以是螺旋路径或者蛇形路径。Specifically, the robot takes the reference positioning code as the starting point, and can search for the positioning code randomly or according to a preset path on the ground. Among them, the actual pose of the reference positioning code is in an absolutely accurate pose, and the robot starts to search for the positioning code on the ground based on the actual pose of the reference positioning code. The pose of the positioning code includes the position and/or attitude of the positioning code. The preset path can be a spiral path or a serpentine path.

步骤304,根据从基准定位码至所搜索到定位码的路径,确定机器人的第一预测位姿。Step 304: Determine the first predicted pose of the robot according to the path from the reference positioning code to the searched positioning code.

其中,第一预测位姿是基于基准定位码和机器人的路径所推算出的机器人的位姿。The first predicted pose is the pose of the robot calculated based on the reference positioning code and the path of the robot.

具体的,当搜索到地面上的定位码时,根据从基准定位码至所搜索到定位码时行进的路径,来确定机器人的第一预测位姿。Specifically, when the positioning code on the ground is searched, the first predicted pose of the robot is determined according to the path traveled from the reference positioning code to the searched positioning code.

步骤306,根据所搜索到定位码与机器人的相对关系以及第一预测位姿,确定所搜索到定位码的第二预测位姿。Step 306: Determine the second predicted pose of the searched positioning code according to the relative relationship between the searched positioning code and the robot and the first predicted pose.

其中,第二预测位姿是基于机器人的第一预测位姿以及所搜索到的定位码与机器人的相对关系推算出的所搜索到的定位码的位姿。The second predicted pose is the pose of the searched positioning code calculated based on the first predicted pose of the robot and the relative relationship between the searched positioning code and the robot.

具体的,根据机器人设有的摄像头确定所搜索到的定位码与机器人本身的相对关系,进而根据该相对关系和第一预测位姿确定所搜索到定位码的第二预测位姿。Specifically, the relative relationship between the searched positioning code and the robot itself is determined according to the camera provided in the robot, and then the second predicted pose of the searched positioning code is determined according to the relative relationship and the first predicted pose.

进一步的,机器人可以取机器人设有的摄像头的中心位置为原点,确定所搜索到定位码中心的像素点的位置与机器人设有的摄像头的中心位置的相对位置偏差,以该相对位置偏差表示搜索到定位码与机器人的相对关系,进而根据该相对位置偏差和该第一预测位姿确定所搜索到定位码的第二预测位姿。Further, the robot can take the center position of the camera provided by the robot as the origin, determine the relative position deviation between the position of the pixel point in the center of the searched positioning code and the center position of the camera provided by the robot, and use the relative position deviation to represent the search. The relative relationship between the positioning code and the robot is obtained, and then the second predicted pose of the searched positioning code is determined according to the relative position deviation and the first predicted pose.

举例说明:假设相对位置偏差的长度为3个像素点,可根据像素点在当前场景中的换算比例,换算成现实场景中的长度,从而根据换算后的长度和相对位置偏差的方向并结合第一预测位姿,最终确定第二预测位姿。For example: Assuming that the length of the relative position deviation is 3 pixels, it can be converted into the length in the real scene according to the conversion ratio of the pixels in the current scene, so that according to the converted length and the direction of the relative position deviation, combined with the first One predicted pose, and finally the second predicted pose is determined.

步骤308,根据基准定位码修正所搜索到定位码的第二预测位姿。Step 308, correcting the second predicted pose of the searched positioning code according to the reference positioning code.

具体的,基准定位码是位姿绝对标准的定位码,机器人可基于该基准定位码的标准位姿来修正所搜索到的定位码的第二预测位姿。可以理解的是,机器人可直接根据基准定位码的实际位姿和当前的第二预测位姿间的偏差修正第二预测位姿,也可以根据基准定位码的实际位姿和当前的第二预测位姿间的偏差修正第一预测位姿来间接修正相应的第二预测位姿。本实施例中的基准定位码可以为多个,基准定位码越多,修正后的定位码的第二预测位姿的准确率越高。Specifically, the reference positioning code is a positioning code with an absolute standard of pose, and the robot can correct the second predicted pose of the searched positioning code based on the standard pose of the reference positioning code. It can be understood that the robot can directly correct the second predicted pose according to the deviation between the actual pose of the reference positioning code and the current second predicted pose, or can also correct the second predicted pose according to the actual pose of the reference positioning code and the current second predicted pose. The deviation between the poses modifies the first predicted pose to indirectly modify the corresponding second predicted pose. There may be multiple reference positioning codes in this embodiment, and the more reference positioning codes, the higher the accuracy of the second predicted pose of the corrected positioning code.

在一个实施例中,机器人可多次经过基准定位码,每当经过基准定位码时对所搜索到定位码的第二预测位姿进行修正,直到满足停止条件时停止修正。停止条件可以是经过基准定位码的次数达到预设次数,也可以是相邻两次经过基准定位码时,分别确定的基准定位码的第一预测位姿之间的偏差小于预设偏差。In one embodiment, the robot may pass through the reference positioning code multiple times, and correct the second predicted pose of the searched positioning code each time it passes the reference positioning code, and stop the correction until the stop condition is satisfied. The stopping condition may be that the number of times of passing the reference positioning code reaches a preset number of times, or that the deviation between the first predicted poses of the respectively determined reference positioning code when passing the reference positioning code twice in a row is smaller than the preset deviation.

步骤310,对于修正后的第二预测位姿与相应定位码所表示的标准位姿间存在差异的定位码,按照标准位姿重新贴设。Step 310 , for the positioning codes that are different between the corrected second predicted pose and the standard poses represented by the corresponding positioning codes, re-install them according to the standard poses.

具体的,对所搜索到的定位码的第二预测位姿进行修正后,将修正后的第二预测位姿与对应的所搜索到的定位码所表示的标准位姿做比较,得到比较结果为存在差异的定位码,则按照该定位码的标准位姿对该定位码进行重新贴设。其中,标准位姿指通过扫描所搜索到的定位码得到的标准位姿,该标准位姿是被扫描的定位码的标准位姿。可以理解的是,所搜索到的定位码中的定位码信息携带有对应的标准位姿。Specifically, after the second predicted pose of the searched positioning code is modified, the corrected second predicted pose is compared with the standard pose represented by the corresponding searched positioning code to obtain a comparison result If there is a difference in the positioning code, the positioning code is re-posted according to the standard pose of the positioning code. The standard pose refers to a standard pose obtained by scanning the searched positioning code, and the standard pose is the standard pose of the scanned positioning code. It can be understood that the positioning code information in the searched positioning code carries the corresponding standard pose.

在一个实施例中,可以将比较结果为存在差异的定位码上传到服务器,指示服务器发送重贴请求至其他机器人,其他机器人根据重贴请求,对于比较结果为存在差异的定位码,按照该定位码的标准位姿对该定位码进行重新贴设。In one embodiment, the location codes with differences in the comparison result may be uploaded to the server, and the server is instructed to send a repost request to other robots. Other robots, according to the repost request, for the location codes with differences in the comparison result, according to the location code The positioning code is re-posted according to the standard pose of the code.

上述实施例中,以基准定位码为基准,修正所搜索到定位码的第二预测位姿,对修正后的第二预测位姿和所搜索到定位码所表示的标准位姿间有差异的定位码进行重新贴设,使位姿不准确的定位码达到准确的位姿,进一步提高了定位码的位姿准确率。In the above-mentioned embodiment, the reference positioning code is used as a reference to correct the second predicted pose of the searched positioning code. The positioning code is re-attached, so that the positioning code with inaccurate pose can achieve an accurate pose, which further improves the pose accuracy of the positioning code.

在一个实施例中,根据基准定位码修正所搜索到定位码的第二预测位姿包括以下步骤:当经过搜索回到基准定位码处,且当前的第二预测位姿和基准定位码的实际位姿间的偏差超过第一预设范围时,则根据当前的偏差修正所搜索到定位码的第二预测位姿,并继续执行从基准定位码起搜索定位码的步骤,直至当该偏差在第一预设范围内时停止搜索。In one embodiment, correcting the second predicted pose of the searched positioning code according to the reference positioning code includes the following steps: when the search returns to the reference positioning code, and the current second predicted pose and the actual value of the reference positioning code When the deviation between the poses exceeds the first preset range, the second predicted pose of the searched positioning code is corrected according to the current deviation, and the step of searching for the positioning code from the reference positioning code is continued until the deviation is within Stop searching when it is within the first preset range.

其中,第一预设范围可以是具体的值或数值范围。本实施例通过预先设置第一预设范围,当经过搜索回到基准定位码处,且当前的第二预测位姿和基准定位码的实际位姿间的偏差超过了这个预设范围的时候,说明搜索到的定位码的第二预测位置的判断是有错误的,所以根据这个偏差对第二预测位置进行修正之后,返回从基准定位码起搜索定位码的步骤。直到当经过搜索回到基准定位码处时当前的第二预测位姿和实际位姿间的偏差属于第一预设范围时,停止搜索,使检查位姿有差异的定位码的结果更加精准,为后续对位姿有差异的定位码进行重新贴设的步骤提供了更精确的基础。The first preset range may be a specific value or a numerical range. In this embodiment, by presetting the first preset range, when the search returns to the reference positioning code, and the deviation between the current second predicted pose and the actual pose of the reference positioning code exceeds this preset range, It shows that the judgment of the second predicted position of the searched positioning code is wrong, so after correcting the second predicted position according to this deviation, the step of searching for the positioning code from the reference positioning code is returned to. Until the deviation between the current second predicted pose and the actual pose falls within the first preset range when the search returns to the reference positioning code, the search is stopped, so that the result of checking the positioning code with different poses is more accurate, It provides a more accurate basis for the subsequent steps of re-attaching the positioning codes with different poses.

如图4所示,在一个实施例中,上述定位码贴设方法还包括检测定位码错误并生成用于上报的定位码错误信息的步骤,该步骤具体包括以下步骤:As shown in Figure 4, in one embodiment, the above-mentioned method for attaching a positioning code further includes a step of detecting a positioning code error and generating a positioning code error message for reporting, and the step specifically includes the following steps:

步骤402,获取标准路线信息,标准路线信息携带有相应路线上定位码的标准定位码信息和标准位置信息。Step 402: Acquire standard route information, where the standard route information carries standard location code information and standard location information of the location code on the corresponding route.

其中,标准路线信息,是描述预先为机器人规划的标准路线的信息。标准路线信息携带有标准定位码信息和标准位置信息。定位码信息指通过扫描定位码能够得到的信息,用于识别该定位码,本实施例中的标准定位码信息表示标准路线所经过的定位码应当包括的定位码信息。位置信息指定位码的位置参数,例如定位码的坐标信息,本实施例中的标准位置信息表示相应的定位码在标准路线上应当所在的位置。标准路线信息可以预先存储在机器人中,也可以由机器人从服务器拉取。The standard route information is information describing the standard route planned for the robot in advance. The standard route information carries standard positioning code information and standard location information. The location code information refers to information that can be obtained by scanning the location code, and is used to identify the location code. The standard location code information in this embodiment represents the location code information that should be included in the location code passed by the standard route. The location information specifies the location parameters of the bit code, such as the coordinate information of the location code. The standard location information in this embodiment represents the location where the corresponding location code should be located on the standard route. Standard route information can be pre-stored in the robot or pulled from the server by the robot.

步骤404,按照贴设的定位码行进。Step 404, proceed according to the posted positioning code.

具体的,机器人通过扫描地上的定位码并解析,获得定位码所含的定位码信息,该定位码信息包括机器人行进指示信息,机器人则按照该机器人行进指示信息行进。行进指示信息可以仅包括用于指示机器人行进方向的方向信息,还可以包括用于指示机器人位置的位置信息。Specifically, the robot obtains the positioning code information contained in the positioning code by scanning and parsing the positioning code on the ground. The positioning code information includes the robot traveling instruction information, and the robot travels according to the robot traveling instruction information. The travel instruction information may only include direction information for indicating the traveling direction of the robot, and may also include position information for indicating the position of the robot.

步骤406,当行进到标准位置信息所表示的位置处、且未从位置处采集到相应定位码的标准定位码信息时,生成用于上报的定位码错误信息。Step 406 , when traveling to the location indicated by the standard location information and the standard location code information of the corresponding location code is not collected from the location, generate location code error information for reporting.

具体的,当机器人通过扫描地上的定位码前进至标准位置信息所表示的位置处时,未从位置处采集到相应定位码的标准定位码信息,则生成用于上报的定位码错误信息。机器人将定位码错误信息上传至服务器,其他机器人可以通过服务器获取到定位码错误信息。Specifically, when the robot advances to the position indicated by the standard position information by scanning the positioning code on the ground, and the standard positioning code information of the corresponding positioning code is not collected from the position, the positioning code error information for reporting is generated. The robot uploads the location code error information to the server, and other robots can obtain the location code error information through the server.

可以理解的是,机器人将定位码错误信息上报至服务器,可以在每次发现当行进到标准位置信息所表示的位置处、且未从位置处采集到相应定位码的标准定位码信息时,直接上报定位码错误信息至服务器,也可以在走完一整条路线之后,统一上报每个位置的定位码错误信息至服务器。It can be understood that the robot reports the error information of the positioning code to the server, and it can directly find the standard positioning code information of the corresponding positioning code when it travels to the position indicated by the standard position information and does not collect the standard positioning code information from the position. Report the location code error information to the server, or report the location code error information of each location to the server after completing the entire route.

在一个实施例中,当行进到标准位置信息所表示的位置处、且在位置处采集的定位码的定位码信息与标准位置信息相应的标准定位码信息不一致时,代表路线错误,生成用于上报的定位码第一错误信息;或者由于定位码长时间的外露,导致定位码模糊不清,当机器人行进到标准位置信息所表示的位置处、且在位置处未采集到任何定位码的定位码信息时,生成用于上报的定位码第二错误信息。In one embodiment, when traveling to the location indicated by the standard location information, and the location code information of the location code collected at the location is inconsistent with the standard location code information corresponding to the standard location information, it represents an error in the route, and generates a The first error message of the reported positioning code; or because the positioning code is exposed for a long time, the positioning code is ambiguous, when the robot travels to the position indicated by the standard position information, and no positioning code is collected at the position. When the code information is received, the second error information of the positioning code for reporting is generated.

上述实施例中,通过扫描地面贴设的定位码前进,以标准路线信息为标准检查位置错误或信息模糊的定位码,使其他机器人或工作人员及时的了解情况并对其进行修正,防止由于定位码位置错误或信息模糊影响其他机器人的运行。In the above-mentioned embodiment, by scanning the positioning code posted on the ground to move forward, the standard route information is used as the standard to check the positioning code with wrong position or vague information, so that other robots or staff can understand the situation in time and correct it, so as to prevent due to positioning. Code position error or blurred information affects the operation of other robots.

在一个实施例中,上述定位码贴设方法还包括:当对应于相同定位码上报的定位码错误信息达到预设次数时,获取定位码更换指令,根据更换指令对相应位置上的定位码进行更换,且更换后的定位码用于表示标准定位码信息。In one embodiment, the above positioning code sticking method further includes: when the error information of the positioning code reported corresponding to the same positioning code reaches a preset number of times, acquiring a positioning code replacement instruction, and performing a positioning code replacement instruction on the corresponding position according to the replacement instruction. Replace, and the replaced positioning code is used to represent the standard positioning code information.

本实施例中,根据更换指令对位置上的定位码进行更换时,可以用原码更换,也可以用随机码更换,以用随机定位码更换为例,如图5所示,假设机器人在走完一整条路线之后,统一上报每个位置的定位码错误信息,则具体步骤如下:In this embodiment, when the positioning code on the position is replaced according to the replacement instruction, it can be replaced with the original code or with the random code. Taking the replacement with the random positioning code as an example, as shown in FIG. 5 , it is assumed that the robot is moving After completing the entire route, report the location code error information of each location uniformly, the specific steps are as follows:

步骤502,获取标准路线信息,标准路线信息携带有相应路线上定位码的标准定位码信息和标准位置信息。Step 502: Acquire standard route information, where the standard route information carries standard location code information and standard location information of the location code on the corresponding route.

步骤504,按照地面贴设的定位码行进。Step 504, proceed according to the positioning code posted on the ground.

步骤506,行进完一整条路线之后,根据标准路线信息判断在每一个定位码位置上是否扫描到相应的定位码。Step 506: After traveling the entire route, it is judged whether the corresponding location code is scanned at each location code position according to the standard route information.

具体的,当机器人根据扫描地上贴设的定位码走完一整条路线之后,发现标准路线信息上的每一个定位码都有被扫描到,则代表定位码无误,结束本次检测。当机器人根据扫描地上贴设的定位码走完一整条路线之后,发现有检测到定位码错误的定位码时,进入步骤508。Specifically, after the robot walks the entire route according to the positioning code posted on the ground, and finds that every positioning code on the standard route information has been scanned, it means that the positioning code is correct, and the detection ends. Step 508 is entered when the robot finds that there is a positioning code with an incorrect positioning code detected after scanning the positioning code posted on the ground to complete the entire route.

步骤508,上报定位码错误信息至服务器。Step 508, reporting the location code error information to the server.

具体的,机器人把检测到有错误的定位码统一上报至服务器,以便其他机器人可以通过服务器获取到错误信息。Specifically, the robot reports the location codes that have detected errors to the server, so that other robots can obtain error information through the server.

步骤510,当对应于相同定位码上报的定位码错误信息达到预设次数时,获取定位码更换指令。Step 510, when the reported location code error information corresponding to the same location code reaches a preset number of times, obtain a location code replacement instruction.

步骤512,根据更换指令用原码对错误信息对应位置上的定位码进行更换。Step 512 , according to the replacement instruction, use the original code to replace the positioning code at the position corresponding to the error message.

步骤514,根据更换指令用随机定位码对错误信息对应位置上的定位码进行更换。Step 514 , according to the replacement instruction, use the random positioning code to replace the positioning code at the position corresponding to the error information.

本实施例通过当同一个定位码的错误信息达到预设数量时,对错误信息对应的定位码进行更换,不但保证了定位码错误信息的准确性,还防止了由于定位码位置错误或信息模糊影响其他机器人的运行。In this embodiment, when the error information of the same location code reaches a preset number, the location code corresponding to the error information is replaced, which not only ensures the accuracy of the location code error information, but also prevents the location code from being incorrectly located or the information is ambiguous. Affect the operation of other robots.

在一个实施例中,用随机定位码对错误信息对应位置上的定位码进行更换,则根据更换指令对位置上的定位码进行更换包括以下步骤:根据更换指令获取随机定位码,更换位置处的定位码为随机定位码,将随机定位码的随机定位码信息发送至服务器,随机定位码信息用于指示服务器建立随机定位码信息到标准定位码信息的映射。In one embodiment, the location code at the location corresponding to the error information is replaced with a random location code, and the replacement of the location code at the location according to the replacement instruction includes the following steps: obtaining the random location code according to the replacement instruction, and replacing the location code at the location. The location code is a random location code, and the random location code information of the random location code is sent to the server, and the random location code information is used to instruct the server to establish a mapping from the random location code information to the standard location code information.

本实施例通过用随机定位码更换原码,使更换定位码的方式更加便捷,并且通过将随机定位码的随机定位码信息发送至服务器,服务器建立随机定位码信息到标准定位码信息的映射的方式,根据随机码就能找到标准定位码信息,防止因随机定位码导致标准定位码信息丢失。In this embodiment, by replacing the original code with the random locating code, the method of replacing the locating code is more convenient, and by sending the random locating code information of the random locating code to the server, the server establishes the mapping of the random locating code information to the standard locating code information. In this way, the standard positioning code information can be found according to the random code, so as to prevent the loss of the standard positioning code information due to the random positioning code.

应该理解的是,虽然图1-5的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,图1-5中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些子步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that although the steps in the flowcharts of FIGS. 1-5 are shown in sequence according to the arrows, these steps are not necessarily executed in the sequence shown by the arrows. Unless explicitly stated herein, the execution of these steps is not strictly limited to the order, and these steps may be performed in other orders. Moreover, at least a part of the steps in FIGS. 1-5 may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed and completed at the same time, but may be executed at different times. These sub-steps or stages are not necessarily completed at the same time. The order of execution of the steps is not necessarily sequential, but may be performed alternately or alternately with other steps or at least a part of sub-steps or stages of other steps.

在一个实施例中,如图6所示,提供了一种定位码贴设装置600,该装置 600包括行进模块602、确定方向模块604、调整模块606和贴设模块608,其中:In one embodiment, as shown in Figure 6, there is provided a positioning code attaching device 600, the device 600 includes a traveling module 602, a direction determination module 604, an adjustment module 606 and an attaching module 608, wherein:

行进模块602,用于控制机器人行进至光线网格的网格节点处。The traveling module 602 is used to control the robot to travel to the grid node of the ray grid.

确定方向模块604,用于确定在网格节点处接收到的光线的方向,光线属于光线网格。A direction determining module 604 is configured to determine the direction of the light received at the grid node, where the light belongs to the light grid.

调整模块606,用于按照光线的方向,调整机器人至预设姿态。The adjustment module 606 is used to adjust the robot to a preset posture according to the direction of the light.

贴设模块608,用于每当在网格节点处调整所述机器人至预设姿态时,在当前的所述网格节点处贴设定位码。The sticking module 608 is used for sticking a setting code on the current grid node whenever the robot is adjusted to a preset posture at the grid node.

在一个实施例中,上述装置还包括:搜索模块、确定第一位姿模块、确定第二位姿模块修正模块和重贴模块。搜索模块,用于从基准定位码起搜索定位码;确定第一位姿模块,用于根据从基准定位码至所搜索到定位码的路径,确定相应的第一预测位姿;确定第二位姿模块,用于根据所搜索到定位码与机器人的相对关系以及第一预测位姿确定所搜索到定位码的第二预测位姿;修正模块,用于根据基准定位码修正所搜索到定位码的第二预测位姿;重贴模块,用于对于修正后的第二预测位姿与相应定位码所表示的标准位姿间存在差异的定位码,按照标准位姿重新贴设。In one embodiment, the above-mentioned apparatus further includes: a search module, a module for determining a first pose, a module for determining a second pose, a correction module, and a reposting module. The search module is used to search the positioning code from the reference positioning code; the first attitude module is used to determine the corresponding first predicted pose according to the path from the reference positioning code to the searched positioning code; determine the second position The attitude module is used to determine the second predicted pose of the searched positioning code according to the relative relationship between the searched positioning code and the robot and the first predicted pose; the correction module is used to correct the searched positioning code according to the reference positioning code. The re-posting module is used for re-posting the positioning codes with differences between the corrected second predicted postures and the standard postures represented by the corresponding positioning codes according to the standard postures.

在一个实施例中,修正模块还用于当经过搜索回到基准定位码处,确定基准定位码的实际位姿和当前的第二预测位姿间的偏差,当偏差超过第一预设范围时,则根据当前的偏差修正所搜索到定位码的第二预测位姿,并继续执行从基准定位码起搜索定位码的步骤,直至当偏差在第一预设范围内时停止搜索。In one embodiment, the correction module is further configured to determine the deviation between the actual pose of the reference positioning code and the current second predicted pose after searching back to the reference positioning code, when the deviation exceeds the first preset range , the second predicted pose of the searched positioning code is corrected according to the current deviation, and the step of searching for the positioning code from the reference positioning code is continued until the search is stopped when the deviation is within the first preset range.

在一个实施例中,上述装置还包括:标准路线获取模块、扫描模块和上报错误模块。标准路线获取模块,用于获取标准路线信息,标准路线信息携带有相应路线上定位码的标准定位码信息和标准位置信息;扫描模块,用于按照贴设的定位码行进;上报错误模块,用于当行进到标准位置信息所表示的位置处、且未从位置处采集到相应定位码的标准定位码信息时,生成用于上报的定位码错误信息。In one embodiment, the above-mentioned apparatus further includes: a standard route obtaining module, a scanning module and an error reporting module. The standard route acquisition module is used to obtain standard route information. The standard route information carries the standard positioning code information and standard location information of the positioning code on the corresponding route; the scanning module is used to travel according to the posted positioning code; the error reporting module is used When traveling to the position indicated by the standard position information and the standard positioning code information of the corresponding positioning code is not collected from the position, the positioning code error information for reporting is generated.

在一个实施例中,上报错误模块还用于当行进到标准位置信息所表示的位置处、且在位置处采集的定位码的定位码信息与标准位置信息相应的标准定位码信息不一致时,生成用于上报的定位码第一错误信息;或者当行进到标准位置信息所表示的位置处、且在位置处未采集到任何定位码的定位码信息时,生成用于上报的定位码第二错误信息。In one embodiment, the error reporting module is further configured to, when traveling to the location indicated by the standard location information, and when the location code information of the location code collected at the location is inconsistent with the standard location code information corresponding to the standard location information, generate The first error information of the positioning code used for reporting; or when traveling to the position indicated by the standard position information and no positioning code information of the positioning code is collected at the position, the second error of the positioning code used for reporting is generated information.

在一个实施例中,上述装置还包括:更换指令获取模块和更换模块。更换指令获取模块,用于当对应于相同定位码上报的定位码错误信息达到预设次数时,获取定位码更换指令;更换模块,用于根据更换指令对相应位置上的定位码进行更换,且更换后的定位码用于表示标准定位码信息。In one embodiment, the above-mentioned apparatus further includes: a replacement instruction acquisition module and a replacement module. The replacement instruction acquisition module is used to obtain a positioning code replacement instruction when the reported positioning code error information corresponding to the same positioning code reaches a preset number of times; the replacement module is used to replace the positioning code at the corresponding position according to the replacement instruction, and The replaced positioning code is used to represent the standard positioning code information.

在一个实施例中,更换模块还用于根据更换指令获取随机定位码,更换相应位置上的定位码为随机定位码,将随机定位码的随机定位码信息发送至服务器,随机定位码信息用于指示服务器建立随机定位码信息到标准定位码信息的映射。In one embodiment, the replacement module is further configured to obtain a random location code according to the replacement instruction, replace the location code at the corresponding position with a random location code, and send the random location code information of the random location code to the server, and the random location code information is used for Instructs the server to create a mapping from random location code information to standard location code information.

关于上述定位码贴设装置的具体限定可以参见上文中对于定位码贴设方法的限定,在此不再赘述。上述定位码贴设装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。For the specific limitation of the above positioning code sticking device, please refer to the limitation on the positioning code sticking method above, which will not be repeated here. All or part of the modules in the above positioning code sticking device can be implemented by software, hardware and combinations thereof. The above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

在一个实施例中,如图3所示,还提供了另一种定位码的贴设方法,以该方法应用于图1中的机器人为例进行说明,包括以下步骤:In one embodiment, as shown in FIG. 3 , another method for attaching a positioning code is also provided, which is described by taking the method applied to the robot in FIG. 1 as an example, including the following steps:

步骤302,从基准定位码起搜索定位码。Step 302, searching for the positioning code from the reference positioning code.

具体的,机器人以基准定位码为起点,在地面上随机或者按照预设路径搜索定位码。其中,基准定位码的实际位姿处于一个绝对准确的位姿,机器人以基准定位码的实际位姿为基准,开始在地面搜索定位码。其中,定位码的位姿包括定位码的位置和/或姿态。预设路径可以是螺旋路径或者蛇形路径。Specifically, the robot takes the reference positioning code as a starting point, and searches for the positioning code on the ground randomly or according to a preset path. Among them, the actual pose of the reference positioning code is in an absolutely accurate pose, and the robot starts to search for the positioning code on the ground based on the actual pose of the reference positioning code. The pose of the positioning code includes the position and/or attitude of the positioning code. The preset path can be a spiral path or a serpentine path.

步骤304,根据从基准定位码至所搜索到定位码的路径,确定机器人的第一预测位姿。Step 304: Determine the first predicted pose of the robot according to the path from the reference positioning code to the searched positioning code.

其中,第一预测位姿是基于基准定位码和机器人的路径所推算出的机器人的位姿。The first predicted pose is the pose of the robot calculated based on the reference positioning code and the path of the robot.

具体的,当搜索到地面上的定位码时,根据从基准定位码至所搜索到定位码时行进的路径,来确定机器人的第一预测位姿。Specifically, when the positioning code on the ground is searched, the first predicted pose of the robot is determined according to the path traveled from the reference positioning code to the searched positioning code.

步骤306,根据所搜索到定位码与机器人的相对关系以及第一预测位姿,确定所搜索到定位码的第二预测位姿。Step 306: Determine the second predicted pose of the searched positioning code according to the relative relationship between the searched positioning code and the robot and the first predicted pose.

其中,第二预测位姿是基于机器人的第一预测位姿以及所搜索到的定位码与机器人的相对关系推算出的所搜索到的定位码的位姿。The second predicted pose is the pose of the searched positioning code calculated based on the first predicted pose of the robot and the relative relationship between the searched positioning code and the robot.

具体的,根据机器人设有的摄像头确定所搜索到的定位码与机器人本身的相对关系,进而根据该相对关系和第一预测位姿确定所搜索到定位码的第二预测位姿。Specifically, the relative relationship between the searched positioning code and the robot itself is determined according to the camera provided in the robot, and then the second predicted pose of the searched positioning code is determined according to the relative relationship and the first predicted pose.

进一步的,机器人可以取机器人设有的摄像头的中心位置为原点,确定所搜索到定位码中心的像素点的位置与机器人设有的摄像头的中心位置的相对位置偏差,以该相对位置偏差表示搜索到定位码与机器人的相对关系,进而根据该相对位置偏差和该第一预测位姿确定所搜索到定位码的第二预测位姿。Further, the robot can take the center position of the camera provided by the robot as the origin, determine the relative position deviation between the position of the pixel point in the center of the searched positioning code and the center position of the camera provided by the robot, and use the relative position deviation to represent the search. The relative relationship between the positioning code and the robot is obtained, and then the second predicted pose of the searched positioning code is determined according to the relative position deviation and the first predicted pose.

举例说明:假设相对位置偏差的长度为3个像素点,可根据像素点在当前场景中的换算比例,换算成现实场景中的长度,从而根据换算后的长度和相对位置偏差的方向并结合第一预测位姿,最终确定第二预测位姿。For example: Assuming that the length of the relative position deviation is 3 pixels, it can be converted into the length in the real scene according to the conversion ratio of the pixels in the current scene, so that according to the converted length and the direction of the relative position deviation, combined with the first One predicted pose, and finally the second predicted pose is determined.

步骤308,根据基准定位码修正所搜索到定位码的第二预测位姿。Step 308, correcting the second predicted pose of the searched positioning code according to the reference positioning code.

具体的,基准定位码是位姿绝对标准的定位码,机器人可基于该基准定位码的标准位姿来修正所搜索到的定位码的第二预测位姿。可以理解的是,机器人可直接根据基准定位码的实际位姿和当前的第二预测位姿间的偏差修正第二预测位姿,也可以根据基准定位码的实际位姿和当前的第二预测位姿间的偏差修正第一预测位姿来间接修正相应的第二预测位姿。Specifically, the reference positioning code is a positioning code with an absolute standard of pose, and the robot can correct the second predicted pose of the searched positioning code based on the standard pose of the reference positioning code. It can be understood that the robot can directly correct the second predicted pose according to the deviation between the actual pose of the reference positioning code and the current second predicted pose, or can also correct the second predicted pose according to the actual pose of the reference positioning code and the current second predicted pose. The deviation between the poses modifies the first predicted pose to indirectly modify the corresponding second predicted pose.

在一个实施例中,机器人可多次经过基准定位码,每当经过基准定位码时对所搜索到定位码的第二预测位姿进行修正,直到满足停止条件时停止修正。停止条件可以是经过基准定位码的次数达到预设次数,也可以是相邻两次经过基准定位码确定的基准定位码的第一预测位姿的偏差小于预设值。In one embodiment, the robot may pass through the reference positioning code multiple times, and correct the second predicted pose of the searched positioning code each time it passes the reference positioning code, and stop the correction until the stop condition is satisfied. The stopping condition may be that the number of times of passing the reference positioning code reaches a preset number of times, or that the deviation of the first predicted pose of the reference positioning code determined by passing through the reference positioning code twice in a row is smaller than a preset value.

步骤310,对于修正后的第二预测位姿与相应定位码所表示的标准位姿间存在差异的定位码,按照标准位姿重新贴设。Step 310 , for the positioning codes that are different between the corrected second predicted pose and the standard poses represented by the corresponding positioning codes, re-install them according to the standard poses.

具体的,对所搜索到的定位码的第二预测位姿进行修正后,将修正后的第二预测位姿与对应的所搜索到的定位码所表示的标准位姿做比较,得到比较结果为存在差异的定位码,则按照该定位码的标准位姿对该定位码进行重新贴设。其中,标准位姿指通过扫描所搜索到的定位码得到的标准位姿,该标准位姿是被扫描的定位码的标准位姿。可以理解的是,所搜索到的定位码中的定位码信息携带有对应的标准位姿。Specifically, after the second predicted pose of the searched positioning code is modified, the corrected second predicted pose is compared with the standard pose represented by the corresponding searched positioning code to obtain a comparison result If there is a difference in the positioning code, the positioning code is re-posted according to the standard pose of the positioning code. The standard pose refers to a standard pose obtained by scanning the searched positioning code, and the standard pose is the standard pose of the scanned positioning code. It can be understood that the positioning code information in the searched positioning code carries the corresponding standard pose.

在一个实施例中,可以将比较结果存在差异的定位码上传到服务器,指示服务器发送重贴请求至其他机器人,其他机器人根据重贴请求,对于比较结果为存在差异的定位码,按照该定位码的标准位姿对该定位码进行重新贴设。In one embodiment, the location codes with differences in the comparison results can be uploaded to the server, and the server is instructed to send a repost request to other robots. According to the repost request, other robots, for the location codes with differences in the comparison results, follow the location codes according to the repost request. The standard pose of the positioning code is re-posted.

上述实施例中,以基准定位码为基准,修正所搜索到定位码的第二预测位姿,对修正后的第二预测位姿和所搜索到定位码所表示的标准位姿间有差异的定位码进行重新贴设,使位姿不准确的定位码达到准确的位姿,进一步提高了定位码的位姿准确率。In the above-mentioned embodiment, the reference positioning code is used as a reference to correct the second predicted pose of the searched positioning code. The positioning code is re-attached, so that the positioning code with inaccurate pose can achieve an accurate pose, which further improves the pose accuracy of the positioning code.

在一个实施例中,根据基准定位码修正所搜索到定位码的第二预测位姿包括以下步骤:当经过搜索回到基准定位码处,且当前的第二预测位姿和基准定位码的实际位姿间的偏差超过第一预设范围时,则根据当前的偏差修正所搜索到定位码的第二预测位姿,并继续执行从基准定位码起搜索定位码的步骤,直至当该偏差在第一预设范围内时停止搜索。In one embodiment, correcting the second predicted pose of the searched positioning code according to the reference positioning code includes the following steps: when the search returns to the reference positioning code, and the current second predicted pose and the actual value of the reference positioning code When the deviation between the poses exceeds the first preset range, the second predicted pose of the searched positioning code is corrected according to the current deviation, and the step of searching for the positioning code from the reference positioning code is continued until the deviation is within Stop searching when it is within the first preset range.

其中,第一预设范围可以是具体的值或数值范围。本实施例通过预先设置第一预设范围,当经过搜索回到基准定位码处,且当前的第二预测位姿和基准定位码的实际位姿间的偏差超过了这个预设范围的时候,说明搜索到的定位码的第二预测位置的判断是有错误的,所以根据这个偏差对第二预测位置进行修正之后,返回从基准定位码起搜索定位码的步骤。直到当经过搜索回到基准定位码处时当前的第二预测位姿和实际位姿间的偏差属于第一预设范围时,停止搜索,使检查位姿有差异的定位码的结果更加精准,为后续对位姿有差异的定位码进行重新贴设的步骤提供了更精确的基础。The first preset range may be a specific value or a numerical range. In this embodiment, by presetting the first preset range, when the search returns to the reference positioning code, and the deviation between the current second predicted pose and the actual pose of the reference positioning code exceeds this preset range, It shows that the judgment of the second predicted position of the searched positioning code is wrong, so after correcting the second predicted position according to this deviation, the step of searching for the positioning code from the reference positioning code is returned to. Until the deviation between the current second predicted pose and the actual pose falls within the first preset range when the search returns to the reference positioning code, the search is stopped, so that the result of checking the positioning code with different poses is more accurate, It provides a more accurate basis for the subsequent steps of re-attaching the positioning codes with different poses.

在一个实施例中,如图7所示,提供了另一种定位码贴设装置700,该装置 700包括:搜索模块702、确定位姿模块704、修正模块706和重贴模块708,其中:In one embodiment, as shown in Figure 7, another positioning code sticking device 700 is provided, the device 700 includes: a search module 702, a pose determination module 704, a correction module 706 and a re-sticking module 708, wherein:

搜索模块702,用于从基准定位码起搜索定位码。The search module 702 is configured to search for the positioning code from the reference positioning code.

确定第一位姿模块704,用于根据从基准定位码至所搜索到定位码的路径,确定相应的第一预测位姿,determining the first pose module 704, for determining the corresponding first predicted pose according to the path from the reference positioning code to the searched positioning code,

确定第二位姿模块706,根据所搜索到定位码与机器人的相对关系以及第一预测位姿确定所搜索到定位码的第二预测位姿;determining the second pose module 706, determining the second predicted pose of the searched positioning code according to the relative relationship between the searched positioning code and the robot and the first predicted pose;

修正模块708,用于根据基准定位码修正所搜索到定位码的第二预测位姿;A correction module 708, configured to correct the second predicted pose of the searched positioning code according to the reference positioning code;

重贴模块710,用于对于修正后的第二预测位姿与相应定位码所表示的标准位姿间存在差异的定位码,按照标准位姿重新贴设。The re-posting module 710 is configured to re-post the positioning code with a difference between the corrected second predicted posture and the standard posture represented by the corresponding positioning code according to the standard posture.

在一个实施例中,修正模块708还用于当经过搜索回到基准定位码处,确定所述基准定位码的实际位姿和当前的第二预测位姿间的偏差,当偏差超过第一预设范围时,则根据当前的偏差修正所搜索到定位码的第二预测位姿,并继续执行从基准定位码起搜索定位码的步骤,直至当偏差在第一预设范围内时停止搜索。In one embodiment, the correction module 708 is further configured to determine the deviation between the actual pose of the reference positioning code and the current second predicted pose when the search returns to the reference positioning code, and when the deviation exceeds the first predicted pose When the range is set, the second predicted pose of the searched positioning code is corrected according to the current deviation, and the step of searching for the positioning code from the reference positioning code is continued until the search is stopped when the deviation is within the first preset range.

关于上述定位码贴设装置的具体限定可以参见上文中对于定位码贴设方法的限定,在此不再赘述。上述定位码贴设装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。For the specific limitation of the above positioning code sticking device, please refer to the limitation on the positioning code sticking method above, which will not be repeated here. All or part of the modules in the above positioning code sticking device can be implemented by software, hardware and combinations thereof. The above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

在一个实施例中,提供了一种计算机设备,该计算机设备可以是终端,其内部结构图可以如图8所示。该计算机设备包括通过系统总线连接的处理器、存储器、网格接口、显示屏和输入装置。其中,该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统和计算机程序。该内存储器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该计算机设备的网格接口用于与外部的终端通过网格连接通信。该计算机程序被处理器执行时以实现上述定位码贴设方法。该计算机设备的显示屏可以是液晶显示屏或者电子墨水显示屏,该计算机设备的输入装置可以是显示屏上覆盖的触摸层,也可以是计算机设备外壳上设置的按键、轨迹球或触控板,还可以是外接的键盘、触控板或鼠标等。In one embodiment, a computer device is provided, and the computer device may be a terminal, and its internal structure diagram may be as shown in FIG. 8 . The computer device includes a processor, memory, grid interface, display screen, and input device connected by 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, an internal memory. The nonvolatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the execution of the operating system and computer programs in the non-volatile storage medium. The mesh interface of the computer device is used to communicate with external terminals through the mesh connection. When the computer program is executed by the processor, the above-mentioned positioning code attaching method can be realized. The display screen of the computer equipment may be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment may be a touch layer covered on the display screen, or a button, a trackball or a touchpad set on the shell of the computer equipment , or an external keyboard, trackpad, or mouse.

在一个实施例中,一种计算机设备,包括存储器和处理器,存储器存储有计算机程序,计算机程序被处理器执行时实现上述任一实施例的定位码贴设方法。In one embodiment, a computer device includes a memory and a processor, the memory stores a computer program, and when the computer program is executed by the processor, the positioning code attaching method of any of the foregoing embodiments is implemented.

在一个实施例中,一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现上述任一实施例的定位码贴设方法。In one embodiment, a computer-readable storage medium stores a computer program thereon, and when the computer program is executed by a processor, implements the positioning code attaching method of any of the foregoing embodiments.

本领域技术人员可以理解,图8中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。Those skilled in the art can understand that the structure shown in FIG. 8 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 equipment to which the solution of the present application is applied. Include more or fewer components than shown in the figures, or combine certain components, or have a different arrangement of components.

本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM (EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM (SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM (DRDRAM)、以及存储器总线动态RAM(RDRAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented by instructing relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage In the medium, when the computer program is executed, it may include the processes of the above-mentioned method embodiments. Wherein, any reference to memory, storage, database or other medium used in the various embodiments provided in this application may include non-volatile and/or volatile memory. Nonvolatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous chain Synchlink DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above embodiments can be combined arbitrarily. In order to make the description simple, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction in the combination of these technical features It is considered to be the range described in this specification.

以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。The above-mentioned embodiments only represent several embodiments of the present application, and the descriptions thereof are specific and detailed, but should not be construed as a limitation on the scope of the invention patent. It should be pointed out that for those skilled in the art, without departing from the concept of the present application, several modifications and improvements can be made, which all belong to the protection scope of the present application. Therefore, the scope of protection of the patent of the present application shall be subject to the appended claims.

Claims (14)

1. A positioning code pasting method is applied to a robot, and comprises the following steps:
travel to a grid node of the ray grid;
determining a direction of a ray received at the grid node, the ray belonging to the ray grid;
adjusting the robot to a preset posture according to the direction of the light;
pasting a set bit code at the current grid node every time the robot is adjusted to a preset posture at the grid node;
searching a positioning code from the reference positioning code;
determining a first predicted pose of the robot according to a path from the reference positioning code to the searched positioning code;
determining a second predicted pose of the searched positioning code according to the relative relation between the searched positioning code and the robot and the first predicted pose;
when the reference positioning code is searched back to the position of the reference positioning code, determining the deviation between the actual pose of the reference positioning code and the current second predicted pose, and when the deviation exceeds a first preset range, determining that the actual pose of the reference positioning code is not in the first preset range
Correcting the second predicted pose of the searched positioning code according to the current deviation, and continuing to execute the step of searching the positioning code from the reference positioning code until the searching is stopped when the deviation is within the first preset range;
and replying the positioning code with the difference between the corrected second predicted pose and the standard pose represented by the corresponding positioning code according to the standard pose.
2. The method of claim 1, further comprising:
obtaining standard route information, wherein the standard route information carries standard positioning code information and standard position information of positioning codes on corresponding routes;
advancing according to the attached positioning code;
and when the standard positioning code information of the corresponding positioning code is not acquired from the position when the standard positioning code information is moved to the position represented by the standard position information, generating positioning code error information for reporting.
3. The method of claim 2, wherein generating location code error information for reporting when the standard location code information travels to a location represented by the standard location information and a corresponding location code is not collected from the location comprises:
when the position information of the positioning code acquired at the position is inconsistent with the standard positioning code information corresponding to the standard position information, generating first error information of the positioning code for reporting; or,
and when the mobile terminal moves to the position represented by the standard position information and the positioning code information of any positioning code is not collected at the position, generating second error information of the positioning code for reporting.
4. The method of claim 2, further comprising:
when the positioning code error information reported corresponding to the same positioning code reaches a preset number, acquiring a positioning code replacing instruction;
and replacing the positioning code at the corresponding position according to the replacement instruction, wherein the replaced positioning code is used for representing the standard positioning code information.
5. The method of claim 4, wherein the replacing the location code at the corresponding position according to the replacement instruction comprises:
acquiring a random positioning code according to the replacement instruction;
replacing the positioning code at the corresponding position with the random positioning code;
and sending the random positioning code information of the random positioning code to a server, wherein the random positioning code information is used for indicating the server to establish mapping from the random positioning code information to the standard positioning code information.
6. A positioning code pasting method is applied to a robot, and comprises the following steps:
searching a positioning code from the reference positioning code;
determining a first predicted pose of the robot according to a path from the reference positioning code to the searched positioning code;
determining a second predicted pose of the searched positioning code according to the relative relation between the searched positioning code and the robot and the first predicted pose;
when the reference positioning code is searched back to the position of the reference positioning code, determining the deviation between the actual pose of the reference positioning code and the current second predicted pose, and when the deviation exceeds a first preset range, determining that the actual pose of the reference positioning code is not in the first preset range
Correcting the second predicted pose of the searched positioning code according to the current deviation, and continuing to execute the step of searching the positioning code from the reference positioning code until the searching is stopped when the deviation is within the first preset range;
and replying the positioning code with the difference between the corrected second predicted pose and the standard pose represented by the corresponding positioning code according to the standard pose.
7. A location code attaching device, the device comprising:
the traveling module is used for controlling the robot to travel to the grid nodes of the light grid;
a direction determining module for determining a direction of a ray received at the grid node, the ray belonging to the ray grid;
the adjusting module is used for adjusting the robot to a preset posture according to the direction of the light;
the pasting module is used for pasting a set bit code at the current grid node when the robot is adjusted to a preset posture at the grid node;
the searching module is used for searching the positioning code from the reference positioning code;
the first pose determining module is used for determining a first predicted pose of the robot according to a path from the reference positioning code to the searched positioning code;
the second pose determining module is used for determining a second predicted pose of the searched positioning code according to the relative relation between the searched positioning code and the robot and the first predicted pose;
the correction module is used for determining the deviation between the actual pose of the reference positioning code and the current second prediction pose when the reference positioning code is searched and returned, correcting the second prediction pose of the searched positioning code according to the current deviation when the deviation exceeds a first preset range, and searching the positioning code from the reference positioning code until the deviation is within the first preset range;
and the re-pasting module is used for re-pasting the positioning code with the difference between the corrected second predicted pose and the standard pose represented by the corresponding positioning code according to the standard pose.
8. The apparatus of claim 7, further comprising:
the system comprises a standard route acquisition module, a route selection module and a route selection module, wherein the standard route acquisition module is used for acquiring standard route information, and the standard route information carries standard positioning code information and standard position information of positioning codes on corresponding routes;
the scanning module is used for advancing according to the attached positioning code;
and the reporting error module is used for generating positioning code error information for reporting when the standard positioning code information of the corresponding positioning code is not acquired from the position and moves to the position represented by the standard position information.
9. The apparatus according to claim 8, wherein the reporting error module is further configured to generate a first error message of the location code for reporting when the apparatus travels to the position represented by the standard location information and the location code information of the location code collected at the position is inconsistent with the standard location code information corresponding to the standard location information; or when the mobile terminal moves to the position represented by the standard position information and the positioning code information of any positioning code is not collected at the position, generating second error information of the positioning code for reporting.
10. The apparatus of claim 8, further comprising:
the replacing instruction obtaining module is used for obtaining a replacing instruction of the positioning code when the positioning code error information reported corresponding to the same positioning code reaches the preset times;
and the replacing module is used for replacing the positioning code at the corresponding position according to the replacing instruction, and the replaced positioning code is used for representing the standard positioning code information.
11. The apparatus of claim 10, wherein the replacement module is further configured to obtain a random location code according to the replacement instruction; replacing the positioning code at the corresponding position with the random positioning code; and sending the random positioning code information of the random positioning code to a server, wherein the random positioning code information is used for indicating the server to establish mapping from the random positioning code information to the standard positioning code information.
12. A location code attaching device, the device comprising:
the searching module is used for searching the positioning code from the reference positioning code;
the first pose determining module is used for determining a first predicted pose of the robot according to a path from the reference positioning code to the searched positioning code;
the second pose determining module is used for determining a second predicted pose of the searched positioning code according to the relative relation between the searched positioning code and the robot and the first predicted pose;
the correction module is used for determining the deviation between the actual pose of the reference positioning code and the current second prediction pose when the reference positioning code is searched and returned, correcting the second prediction pose of the searched positioning code according to the current deviation when the deviation exceeds a first preset range, and continuing searching the positioning code from the reference positioning code until the deviation is within the first preset range;
and the re-pasting module is used for re-pasting the positioning code with the difference between the corrected second predicted pose and the standard pose represented by the corresponding positioning code according to the standard pose.
13. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the computer program realizes the steps of the method of any one of claims 1 to 6 when executed by the processor.
14. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 6.
CN201811385040.7A 2018-11-20 2018-11-20 Location code sticking method, device, computer equipment and storage medium Active CN109375626B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201811385040.7A CN109375626B (en) 2018-11-20 2018-11-20 Location code sticking method, device, computer equipment and storage medium
CN202110679624.0A CN113409401B (en) 2018-11-20 2018-11-20 Positioning code sticker installation method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811385040.7A CN109375626B (en) 2018-11-20 2018-11-20 Location code sticking method, device, computer equipment and storage medium

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN202110679624.0A Division CN113409401B (en) 2018-11-20 2018-11-20 Positioning code sticker installation method, device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109375626A CN109375626A (en) 2019-02-22
CN109375626B true CN109375626B (en) 2021-08-24

Family

ID=65376990

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201811385040.7A Active CN109375626B (en) 2018-11-20 2018-11-20 Location code sticking method, device, computer equipment and storage medium
CN202110679624.0A Active CN113409401B (en) 2018-11-20 2018-11-20 Positioning code sticker installation method, device, computer equipment and storage medium

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN202110679624.0A Active CN113409401B (en) 2018-11-20 2018-11-20 Positioning code sticker installation method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (2) CN109375626B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113050613B (en) * 2019-12-26 2024-07-26 北京极智嘉科技股份有限公司 Automatic guided vehicle and automatic guided vehicle control method
CN113124850B (en) * 2019-12-30 2023-07-28 北京极智嘉科技股份有限公司 Robot, map generation method, electronic device and storage medium
KR102838643B1 (en) 2020-05-21 2025-07-28 하이 로보틱스 씨오., 엘티디. Navigation method, navigation device, storage medium and computer program
CN111552297B (en) * 2020-05-21 2021-08-17 深圳市海柔创新科技有限公司 Navigation method and navigation device
CN112734851B (en) * 2021-03-29 2021-07-06 北京三快在线科技有限公司 Method and device for determining pose
CN116476047B (en) * 2023-03-27 2026-04-21 三一机器人科技有限公司 A method, apparatus, robot and system for automatically laying QR codes

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20110025027A (en) * 2009-09-02 2011-03-09 동국대학교 산학협력단 Target searching apparatus and method using magnetic field sensor and recording medium recording the same
WO2015143173A3 (en) * 2014-03-19 2015-11-12 Neurala, Inc. Methods and apparatus for autonomous robotic control
CN106091924A (en) * 2016-05-30 2016-11-09 深圳普智联科机器人技术有限公司 A kind of system and method using laser-adjusting patch code error
WO2017139613A1 (en) * 2016-02-11 2017-08-17 Massachusetts Institute Of Technology Motion planning for robotic systems
CN107209517A (en) * 2014-12-19 2017-09-26 康普乐克思创新有限责任公司 For the method for automatic guiding wheeled vehicle record and predicted position data
CN107450540A (en) * 2017-08-04 2017-12-08 山东大学 Indoor mobile robot navigation system and method based on infrared road sign
CN107727104A (en) * 2017-08-16 2018-02-23 北京极智嘉科技有限公司 Positioning and map building air navigation aid, apparatus and system while with reference to mark
CN108107895A (en) * 2017-12-26 2018-06-01 哈工大机器人(合肥)国际创新研究院 A kind of multirobot path dynamic programming method
CN207473406U (en) * 2017-09-20 2018-06-08 浙江映美智能装备科技有限公司 A kind of intelligent carriage tracking system with Quick Response Code site location information
CN108436922A (en) * 2018-06-15 2018-08-24 成都精位科技有限公司 Associated movement robot and its control method, device, system
CN108742339A (en) * 2018-06-06 2018-11-06 轻客小觅智能科技(北京)有限公司 A kind of robot and precise positioning method

Family Cites Families (29)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1831843A (en) * 2005-03-10 2006-09-13 罗士夫 Automatic identification method and device for container and transporting equipment based on infrared technology
US20120191272A1 (en) * 2011-01-24 2012-07-26 Sky-Trax, Inc. Inferential load tracking
JP2014137710A (en) * 2013-01-17 2014-07-28 Toyota Industries Corp Control method of automatic guided vehicle
CN103345247B (en) * 2013-06-20 2015-06-10 无锡普智联科高新技术有限公司 Mobile robot positioning method used for correcting code adherence errors
WO2015086036A1 (en) * 2013-12-12 2015-06-18 Testo Ag Method for the positionally accurate projection of a mark onto an object, and projection apparatus
JP6599097B2 (en) * 2014-12-09 2019-10-30 旭化成株式会社 Position / orientation detection device and position / orientation detection program
US9918204B1 (en) * 2015-12-08 2018-03-13 Bentley Systems, Incorporated High accuracy indoor tracking
US9488984B1 (en) * 2016-03-17 2016-11-08 Jeff Williams Method, device and system for navigation of an autonomous supply chain node vehicle in a storage center using virtual image-code tape
CN106219002B (en) * 2016-07-24 2018-03-30 朱洪梅 A kind of medical blood taking pipe automatic labeler device people
CN106647742B (en) * 2016-10-31 2019-09-20 纳恩博(北京)科技有限公司 Movement routine method and device for planning
CN106758734B (en) * 2016-12-28 2018-10-23 永安市仁迈信息技术服务有限公司 A kind of traffic mark intelligence setting-out vehicle and its application method
KR20180093155A (en) * 2017-02-09 2018-08-21 한국전자통신연구원 System and method for controlling agv based on radio frequency identification
CN106895839A (en) * 2017-03-15 2017-06-27 万象三维视觉科技(北京)有限公司 A kind of indoor positioning air navigation aid based on scanning identification code
CN106969766A (en) * 2017-03-21 2017-07-21 北京品创智能科技有限公司 A kind of indoor autonomous navigation method based on monocular vision and Quick Response Code road sign
CN108664015B (en) * 2017-03-29 2025-01-17 北京米文动力科技有限公司 Planning method and equipment for robot walking path
CN107053219B (en) * 2017-06-16 2019-07-09 齐鲁工业大学 A kind of method for positioning mobile robot based on laser scanner Yu strong reflecting sign
CN107167793A (en) * 2017-06-16 2017-09-15 南京泰杰赛智能科技有限公司 A kind of alignment system based on laser correlative detector array
CN107463173B (en) * 2017-07-31 2021-06-18 广州达泊智能科技有限公司 Warehouse AGV navigation method and device, computer equipment and storage medium
CN107656523A (en) * 2017-07-31 2018-02-02 广州维绅科技有限公司 AGV air navigation aids of storing in a warehouse and device, computer equipment and storage medium
CN107588775A (en) * 2017-09-21 2018-01-16 哈尔滨理工大学 A kind of new indoor localization method
CN107738586A (en) * 2017-09-26 2018-02-27 安徽特旺网络科技有限公司 A kind of intelligent charging spot and its reserving method based on Quick Response Code identification
CN107830863A (en) * 2017-10-20 2018-03-23 四川西谷物联科技有限公司 A kind of indoor navigation method based on identification code identification, apparatus and system
CN108069180A (en) * 2017-11-14 2018-05-25 深圳市海柔创新科技有限公司 Robot
CN108061545A (en) * 2017-12-14 2018-05-22 安康市汉滨区易智网络科技有限公司 A kind of pathfinding is without stake landmark system and management method
CN108388245B (en) * 2018-01-26 2021-02-26 温州大学瓯江学院 An AGV car indoor positioning and navigation system and its control method
CN108345304A (en) * 2018-01-29 2018-07-31 星视创(长沙)智能装备有限公司 Intelligent transfer robot positioning system and localization method
CN108680160B (en) * 2018-03-30 2021-09-03 深圳一清创新科技有限公司 Indoor positioning and navigation method and device, storage medium and computer equipment
CN108594822A (en) * 2018-05-10 2018-09-28 哈工大机器人(昆山)有限公司 Robot localization method, robot charging method based on Quick Response Code and system
CN108645413A (en) * 2018-06-06 2018-10-12 江苏海事职业技术学院 The dynamic correcting method of positioning and map building while a kind of mobile robot

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20110025027A (en) * 2009-09-02 2011-03-09 동국대학교 산학협력단 Target searching apparatus and method using magnetic field sensor and recording medium recording the same
WO2015143173A3 (en) * 2014-03-19 2015-11-12 Neurala, Inc. Methods and apparatus for autonomous robotic control
CN107209517A (en) * 2014-12-19 2017-09-26 康普乐克思创新有限责任公司 For the method for automatic guiding wheeled vehicle record and predicted position data
WO2017139613A1 (en) * 2016-02-11 2017-08-17 Massachusetts Institute Of Technology Motion planning for robotic systems
CN106091924A (en) * 2016-05-30 2016-11-09 深圳普智联科机器人技术有限公司 A kind of system and method using laser-adjusting patch code error
CN107450540A (en) * 2017-08-04 2017-12-08 山东大学 Indoor mobile robot navigation system and method based on infrared road sign
CN107727104A (en) * 2017-08-16 2018-02-23 北京极智嘉科技有限公司 Positioning and map building air navigation aid, apparatus and system while with reference to mark
CN207473406U (en) * 2017-09-20 2018-06-08 浙江映美智能装备科技有限公司 A kind of intelligent carriage tracking system with Quick Response Code site location information
CN108107895A (en) * 2017-12-26 2018-06-01 哈工大机器人(合肥)国际创新研究院 A kind of multirobot path dynamic programming method
CN108742339A (en) * 2018-06-06 2018-11-06 轻客小觅智能科技(北京)有限公司 A kind of robot and precise positioning method
CN108436922A (en) * 2018-06-15 2018-08-24 成都精位科技有限公司 Associated movement robot and its control method, device, system

Also Published As

Publication number Publication date
CN109375626A (en) 2019-02-22
CN113409401A (en) 2021-09-17
CN113409401B (en) 2025-02-18

Similar Documents

Publication Publication Date Title
CN109375626B (en) Location code sticking method, device, computer equipment and storage medium
CN111442722B (en) Positioning method, device, storage medium and electronic device
CN107742304B (en) Method and device for determining movement trajectory, mobile robot and storage medium
WO2021143231A1 (en) Target detection model training method, and data labeling method and apparatus
CN110114191A (en) Robot control device and calibration method
CN114419590B (en) High-precision map verification method, device, equipment and storage medium
CN116134488B (en) Point cloud annotation method, device, computer equipment and storage medium
CN112995897A (en) UWB multi-dimensional positioning method, system, computer equipment and storage medium
CN112700497B (en) Loop detection method, device, equipment and computer readable storage medium
CN109579793B (en) Terrain mapping method, apparatus, flight platform, computer device and storage medium
CN113907645A (en) Mobile robot positioning method and device, storage medium and electronic device
CN117232538A (en) A trajectory processing method, device and computer-readable storage medium
WO2025050384A1 (en) Map updating method and apparatus, and autonomous moving apparatus and storage medium
JP6704935B2 (en) Lighting layout drawing generator
CN113379011B (en) Pose correction method, pose correction device, pose correction equipment and storage medium
CN116626700A (en) A robot positioning method, device, electronic equipment and storage medium
CN114757990B (en) Indoor environment map updating methods, devices, storage media, and indoor robots
US11790538B2 (en) Production line monitoring method and monitoring system thereof
CN114510035A (en) Robot remote surveying method, device and storage medium
CN113947716A (en) Closed loop detection method, closed loop detection device, robot and storage medium
CN115294195B (en) Map building methods, apparatus, devices, and storage media for robot navigation
CN113218392A (en) Indoor positioning navigation method and navigation device
CN113554711A (en) Camera online calibration method and device, computer equipment and storage medium
CN116985137A (en) A quadruped robot control method based on improved Cartographer's SLAM
CN115406434A (en) Navigation map autonomous updating method, device and storage medium for indoor robot

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant