Location information generation method, device, equipment and computer readable medium
By calculating the delay of sensor data and robot driving parameters, setting the position offset threshold, and generating accurate obstacle position information, it solves the problem of position inaccuracy caused by data delay in robot obstacle detection, and improves the accuracy of detection. sex.
Patent Information
- Application Number
- CN202210338945.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-01
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2042-04-01
AI Technical Summary
When the robot determines the location of obstacles through sensor data, the position is inaccurate due to data delay, which affects the accuracy of obstacle detection.
By receiving the timestamp in the sensor data and the response time of the robot processor, the data delay is determined, the position offset is calculated based on the delay and driving parameters, the position offset threshold is set, and it is only generated when the offset is less than or equal to the threshold. The location information of the object to be labeled.
It improves the accuracy of the generated position information, avoids position errors due to data delay, and ensures the accuracy of obstacle detection.
Smart Images

Figure CN114779256B
Abstract
Description
Technical Field
[0001] Embodiments of the present disclosure relate to the field of computer technology, and in particular to a method, apparatus, device, and computer-readable medium for generating location information. Background Art
[0002] Robots often use laser radar, ultrasonic sensors, etc. to detect and mark obstacles. In this process, sensor data from various sensors such as ultrasonic sensors are needed to determine the positions of various objects such as obstacles in the actual scene.
[0003] However, when the above method is used to determine the positions of various objects such as obstacles, the following technical problems often occur:
[0004] Since there is a certain delay in the sensor data and the robot is in operation, the determined position is inaccurate. Summary of the invention
[0005] The content of this disclosure is used to introduce concepts in a brief form, and these concepts will be described in detail in the specific implementation section below. The content of this disclosure is not intended to identify the key features or essential features of the technical solution for which protection is sought, nor is it intended to limit the scope of the technical solution for which protection is sought. Some embodiments of the present disclosure propose location information generation methods, devices, equipment, and computer-readable media to solve one or more of the technical problems mentioned in the above background technology section.
[0006] In a first aspect, some embodiments of the present disclosure provide a method for generating position information, which is applied to a robot, including: in response to receiving sensor data sent by a sensor data processing end, determining a data delay of the sensor data according to a timestamp contained in the sensor data and a response time of a processor of the robot; determining a position offset of the robot based on the data delay and driving parameters of the robot; determining whether the position offset is less than or equal to a position offset threshold; in response to determining that the position offset is less than or equal to the position offset threshold, generating position information of an object to be labeled according to the sensor data.
[0007] In a second aspect, some embodiments of the present disclosure provide a position information generating device, the device comprising: a delay determination unit, configured to determine the data delay of the sensor data in response to receiving sensor data sent by a sensor data processing terminal, according to a timestamp contained in the sensor data and a response time of a processor of the robot; a position offset determination unit, configured to determine the position offset of the robot based on the data delay and the driving parameters of the robot; a determination unit, configured to determine whether the position offset is less than or equal to a position offset threshold; and a generation unit, configured to generate the position information of the object to be labeled according to the sensor data in response to determining that the position offset is less than or equal to the position offset threshold.
[0008] In a third aspect, some embodiments of the present disclosure provide an electronic device comprising: one or more processors; a storage device on which one or more programs are stored, and when the one or more programs are executed by the one or more processors, the one or more processors implement the method described in any implementation manner of the above-mentioned first aspect.
[0009] In a fourth aspect, some embodiments of the present disclosure provide a computer-readable medium having a computer program stored thereon, wherein when the program is executed by a processor, the method described in any implementation manner of the above-mentioned first aspect is implemented.
[0010] The above-mentioned various embodiments of the present disclosure have the following beneficial effects: the generated position information is more accurate. In the related methods for determining position information, due to factors such as data transmission and processing, there is a certain delay in the sensor data received by the processor. In other words, the data received at the current moment is actually data from a period of time ago. Since the robot is in motion and the specific duration of the delay is unknown, the position information determined based on the sensor data is inaccurate and deviates greatly from the actual position information. Based on this, some embodiments of the present disclosure compare the position offset threshold with the position offset to ensure that the position information of the object to be marked is generated based on the sensor data only when it is less than or equal to the position offset threshold, thereby ensuring the accuracy of the position information. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and that components and elements are not necessarily drawn to scale.
[0012] Figure 1 is a flow chart of some embodiments of the method for generating location information according to the present disclosure;
[0013] Figure 2is a schematic diagram of an exemplary distribution of at least one sensor on a robot in the method for generating position information according to the present disclosure;
[0014] Figure 3 is an exemplary schematic diagram of a target time period in a location information generating method according to some embodiments of the present disclosure;
[0015] Figure 4 are flow charts of other embodiments of the method for generating location information according to the present disclosure;
[0016] Figure 5 is a schematic diagram of the structure of some embodiments of the position information generating device according to the present disclosure;
[0017] Figure 6 is a schematic diagram of an exemplary structure of a robot suitable for implementing some embodiments of the present disclosure. DETAILED DESCRIPTION
[0018] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments set forth herein. On the contrary, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0019] It should also be noted that, for ease of description, only the parts related to the invention are shown in the drawings. In the absence of conflict, the embodiments and features in the embodiments of the present disclosure can be combined with each other.
[0020] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0021] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0022] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0023] The present disclosure will be described in detail below with reference to the accompanying drawings and in conjunction with embodiments.
[0024] Continue to refer Figure 1, shows a process 100 of some embodiments of the method for generating position information according to the present disclosure. The method for generating position information, applied to a robot, comprises the following steps:
[0025] Step 101 , in response to receiving sensor data sent by a sensor data processing terminal, determining a data delay of the sensor data according to a timestamp included in the sensor data and a response time of a processor of a robot.
[0026] In some embodiments, the execution subject of the position information generation method may be a processor of a robot. The sensor data processing end may be a processing end for processing sensor data, for example, a single chip microcomputer connected to at least one sensor. The sensor data processing end may receive data from at least one sensor. On this basis, a timestamp is added to obtain sensor data. Then, the sensor data is sent to the processor of the robot. As an example, Figure 2 As shown, the robot includes a shell 201 , on which ultrasonic sensors A, B, C, D, E, and F may be disposed.
[0027] On this basis, the execution subject can determine the difference between the timestamp included in the sensor data and the response time of the processor, and use the difference as the data delay of the sensor data. As an example, the response time can be the time when the processor receives the sensor data. As an example, the response time can be the current time.
[0028] In some optional implementations of some embodiments, in order to solve the problem of time asynchrony between the processor and the sensor data processing end, the above-mentioned execution body can provide time to the sensor data processing end in a target time period.
[0029] As an example, Figure 3 As shown, the above-mentioned execution subject can provide time to the sensor data processing end with a period of T(t1+t2). Specifically, a timing signal is sent within the time period t1, and the interval time is t2. After receiving the timing signal, the sensor data processing end can calibrate the local clock according to the timing signal. Within the interval time t2, the sensor data processing end relies on its own internal clock for timing. In these implementations, time synchronization is guaranteed by timing, thereby ensuring that the position offset determined based on the data delay is more accurate.
[0030] Step 102: Determine the position offset of the robot based on the data delay and the driving parameters of the robot.
[0031] In some embodiments, the execution subject may determine the position offset of the robot based on the data delay and the driving parameters of the robot. The driving parameters may be parameters such as speed and driving direction. On this basis, the delay and speed may be multiplied to obtain the position offset value, and the position offset direction may be determined according to the driving direction.
[0032] Step 103: Determine whether the position offset is less than or equal to a position offset threshold.
[0033] In some embodiments, the execution entity may compare the position offset with a position offset threshold to determine whether the position offset is less than or equal to the position offset threshold.
[0034] Step 104 : In response to determining that the position offset is less than or equal to the position offset threshold, generating position information of the object to be labeled according to the sensor data.
[0035] In some embodiments, in response to determining that the position offset is less than or equal to the position offset threshold, the execution subject may generate the position information of the object to be annotated based on the sensor data. As an example, the sensor data may be the reflection time t, and the distance S may be determined by the following formula:
[0036] S=0.5*t*v, where v is the speed of sound in air.
[0037] On this basis, the robot can determine a circle with the current position as the center and distance S as the radius. On this basis, according to the driving direction of the robot, the target point on the circle is determined, so that the position information of the object to be marked can be generated, that is, the position information of the target point.
[0038] In practice, in the case where the sensor data includes data from multiple sensors, the location information of the object to be labeled can be comprehensively determined based on the data from the multiple sensors.
[0039] In some optional implementations of some embodiments, in response to determining that the position offset is greater than a position offset threshold, the execution subject may discard the sensor data to avoid excessive position information error due to excessive offset.
[0040] Some embodiments of the present disclosure provide methods that compare a position offset threshold with a position offset, thereby ensuring that the position information of the object to be labeled is generated based on sensor data only when the position offset is less than or equal to the position offset threshold, thereby ensuring the accuracy of the position information.
[0041] Further references Figure 4 , which shows a process 400 of another embodiment of a method for generating location information. The process 400 of the method for generating location information includes the following steps:
[0042] Step 401, in response to receiving sensor data sent by a sensor data processing terminal, determining a data delay of the sensor data according to a timestamp included in the sensor data and a response time of a processor of the robot.
[0043] Step 402: Determine the position offset of the robot based on the data delay and the driving parameters of the robot.
[0044] Step 403: Determine whether the position offset is less than or equal to a position offset threshold.
[0045] Step 404 : In response to determining that the position offset is less than or equal to the position offset threshold, generating position information of the object to be labeled according to the sensor data.
[0046] In some embodiments, the specific implementation of steps 401-404 and the technical effects thereof can be referred to in Figure 1 The corresponding embodiments will not be described in detail here.
[0047] Step 405: Mark the object to be marked in the electronic map according to the location information.
[0048] In some embodiments, the execution subject may mark the object to be marked in the electronic map according to the location information. As an example, the execution subject may determine the marking identifier corresponding to the object to be marked and determine the location coordinates of the object to be marked in the electronic map. Then, the object to be marked is presented at the location represented by the location coordinates in the electronic map.
[0049] from Figure 4 It can be seen that Figure 1 Compared with the description of some corresponding embodiments, Figure 4 The process 400 of the location information generating method in some corresponding embodiments adds a step of marking in the electronic map, thereby improving the marking accuracy.
[0050] Further references Figure 5 As an implementation of the methods shown in the above figures, the present disclosure provides some embodiments of a location information generating device. These device embodiments are similar to Figure 1 Corresponding to the method embodiments shown, the device can be specifically applied to various electronic devices.
[0051] like Figure 5As shown, the position information generating device 500 of some embodiments includes: a delay determining unit 501, a position offset determining unit 502, a determining unit 503 and a generating unit 504. The delay determining unit 501 is configured to determine the data delay of the sensor data according to the timestamp contained in the sensor data and the response time of the processor of the robot in response to receiving the sensor data sent by the sensor data processing end; the position offset determining unit 502 is configured to determine the position offset of the robot based on the data delay and the driving parameters of the robot; the determining unit 503 is configured to determine whether the position offset is less than or equal to the position offset threshold; the generating unit 504 is configured to generate the position information of the object to be labeled according to the sensor data in response to determining that the position offset is less than or equal to the position offset threshold.
[0052] In an optional implementation of some embodiments, the apparatus 500 further includes: a labeling unit configured to label the object to be labeled in the electronic map according to the location information.
[0053] In an optional implementation of some embodiments, the device 500 further includes: a timing unit configured to provide time to the sensor data processing end at a target time period.
[0054] In an optional implementation of some embodiments, the apparatus 500 further includes: a discarding unit configured to discard the sensor data in response to determining that the position offset is greater than a position offset threshold.
[0055] It is understood that the units described in the device 500 are similar to those described in the reference Figure 2 Therefore, the operations, features and beneficial effects described above for the method are also applicable to the device 500 and the units included therein, and will not be described in detail here.
[0056] Reference below Figure 6 , which shows a schematic structural diagram of a robot 600 suitable for implementing some embodiments of the present disclosure. Figure 6 The robot shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0057] like Figure 6 As shown, the robot 600 may include an ultrasonic sensor control board 601 and a robot processor 602. Optionally, the structure 600 may also include a photographing device 603. Figure 6 The robot 600 is shown with various devices, but it should be understood that it is not required to implement or have all the devices shown. More or fewer devices may be implemented or have instead. Figure 6Each block shown in the figure may represent one device, or may represent multiple devices as required. Optionally, the structure 600 may also include one or more of the following devices: a battery, a power management board, a servo motor driver, a servo motor, a signal control board, a bus, and the like.
[0058] The ultrasonic sensor control board 601 is used as an example of a sensor data processing end. The sensor data processing end is connected to at least one sensor in communication. The ultrasonic sensor control board 601 can be used to receive sensor data and transmit it to the processor 602 as sensor data. Optionally, the ultrasonic sensor control board 601 can also perform certain processing on the received sensor data.
[0059] The processor 602 may be used to execute the location information generation method of some embodiments of the present disclosure. Optionally, the processor 602 may also be used to execute a robot scheduling task, such as driving the shooting device 603 to shoot an image.
[0060] Optionally, to ensure time synchronization, the processor 602 and the ultrasonic sensor wave control board 601 can transmit timing signals via RS232 (a serial communication interface) or I / O.
[0061] In particular, according to some embodiments of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, some embodiments of the present disclosure include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. When the computer program is executed by the processing device 602, the above functions defined in the method of some embodiments of the present disclosure are executed.
[0062] It should be noted that the computer-readable medium recorded in some embodiments of the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In some embodiments of the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In some embodiments of the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0063] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.
[0064] The computer-readable medium may be included in the robot; or it may exist independently without being assembled into the electronic device. The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the robot: in response to receiving sensor data sent by the sensor data processing terminal, determines the data delay of the sensor data according to the timestamp contained in the sensor data and the response time of the robot's processor; determines the position offset of the robot based on the data delay and the robot's driving parameters; determines whether the position offset is less than or equal to the position offset threshold; in response to determining that the position offset is less than or equal to the position offset threshold, generates the position information of the object to be labeled according to the sensor data.
[0065] Computer program code for performing the operations of some embodiments of the present disclosure may be written in one or more programming languages or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on a user's computer, partially on a user's computer, as a separate software package, partially on a user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0066] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0067] The units described in some embodiments of the present disclosure may be implemented by software or by hardware. The units described may also be set in a processor, for example, it may be described as: a processor includes a delay determination unit, a position offset determination unit, a determination unit, and a generation unit. The names of these units do not constitute limitations on the units themselves in some cases, for example, the delay determination unit may also be described as "a unit that determines the data delay of sensor data based on the timestamp contained in the sensor data and the response time of the robot's processor".
[0068] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0069] The above descriptions are only some preferred embodiments of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the embodiments of the present disclosure is not limited to the technical solutions formed by a specific combination of the above-mentioned technical features, but should also cover other technical solutions formed by any combination of the above-mentioned technical features or their equivalent features without departing from the above-mentioned inventive concept. For example, the above-mentioned features are replaced with the technical features with similar functions disclosed in the embodiments of the present disclosure (but not limited to) and the technical solutions formed.
Claims
1. A method for generating position information, applied to a robot, comprising: In response to receiving sensor data sent by the sensor data processing end, determining a data delay of the sensor data according to a timestamp included in the sensor data and a response time of a processor of the robot; Determining a position offset of the robot based on the data delay and the driving parameters of the robot; determining whether the position offset is less than or equal to a position offset threshold; In response to determining that the position offset is less than or equal to the position offset threshold, generating position information of the object to be labeled according to the sensor data.
2. The method according to claim 1, wherein: The method further comprises: The object to be marked is marked in the electronic map according to the location information.
3. The method according to claim 1, wherein: Before determining the data delay of the sensor data according to the timestamp included in the sensor data and the response time of the processor of the robot in response to receiving the sensor data sent by the sensor data processing end, the method includes: The sensor data processing terminal is given time according to the target time period.
4. The method according to claim 1, wherein: The method further comprises: In response to determining that the position offset is greater than the position offset threshold, the sensor data is discarded.
5. A location information generating device, comprising: a delay determination unit configured to, in response to receiving sensor data sent by the sensor data processing terminal, determine a data delay of the sensor data according to a timestamp included in the sensor data and a response time of a processor of the robot; a position offset determination unit configured to determine the position offset of the robot based on the data delay and the driving parameters of the robot; a determining unit configured to determine whether the position offset is less than or equal to a position offset threshold; The generating unit is configured to generate the position information of the object to be marked according to the sensor data in response to determining that the position offset is less than or equal to the position offset threshold.
6. The device according to claim 5, wherein: The device also includes: The marking unit is configured to mark the object to be marked in the electronic map according to the location information.
7. The device according to claim 5, wherein: The device also includes: The timing unit is configured to provide timing to the sensor data processing end at a target time period.
8. The device according to claim 5, wherein: The device also includes: A discarding unit is configured to discard the sensor data in response to determining that the position offset is greater than the position offset threshold.
9. A robot comprising: A sensor data processing end configured to send sensor data to one or more processors; One or more processors configured to implement the method according to any one of claims 1-4.
10. A computer readable medium having a computer program stored thereon, wherein: When the program is executed by a processor, the method according to any one of claims 1 to 4 is implemented.
