Robot positioning method and device based on digital twinning and storage medium

Digital twin technology is used to identify positioning marks and scene information and match target sections and locations, solving the problem of lost robot navigation and positioning and improving positioning accuracy and stability.

CN118628567APending Publication Date: 2024-09-10深圳市华毓科技有限公司

Patent Information

Application Number
CN202410778294.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-17
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

Robot navigation and positioning methods based on image recognition are prone to losing positioning, especially when the environment changes and feature points are lost, and it is difficult to calibrate the positioning in time.

Method used

The robot positioning method based on digital twins is used to identify the positioning mark and scene information in the positioning image, determine the relative position of the positioning target and the positioning mark, and match the scene information and mark position in the digital twin model to determine the target section and target position. , thereby avoiding positioning loss.

Benefits of technology

It achieves the accuracy and stability of robot positioning, avoids positioning loss due to loss of feature points, and improves the robot's navigation ability in complex environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118628567A
    Figure CN118628567A
Patent Text Reader

Abstract

The invention discloses a robot positioning method and device based on digital twinning and a storage medium, and belongs to the technical field of positioning. The method comprises the following steps: identifying a positioning identifier and scene information in a positioning image, and determining the relative position of a positioning target and the positioning identifier according to the image proportion of the positioning identifier in the positioning image; determining an identification position of the positioning identification in a digital twin model, and matching the scene information with a cross section where the identification position is located to determine a target cross section; and in the digital twin model, determining a target position of the relative position of the target section, and taking the target position as a current position of the positioning target. According to the method, the positioning identifier and the scene information in the positioning image are determined through image recognition, and the current position of the positioning target is determined in the digital twin model, so that positioning is performed in the digital twin model through the positioning identifier in the scene, and positioning loss of the robot is avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of positioning technology, and in particular to a robot positioning method, device and storage medium based on digital twins. Background Art

[0002] Navigation and positioning methods based on computer vision have been widely used in robot positioning and navigation due to their high accuracy and environmental adaptability. The robot can use the camera equipment configured on the robot to collect images of environmental changes around the robot in real time, and extract corresponding feature points and other information from the images to determine the robot's motion trajectory.

[0003] In related technologies, robots usually deduce their own motion trajectory based on the motion trajectory of feature points extracted from images of environmental changes. Since the robot's camera equipment usually cannot directly judge the environmental depth of the image, when the robot loses feature points under the influence of the environment, it is difficult to calibrate and locate in time, resulting in the loss of robot positioning.

[0004] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention

[0005] The main purpose of this application is to provide a robot positioning method, device and storage medium based on digital twins, aiming to solve the technical problem that the robot navigation and positioning method based on image recognition is prone to losing positioning.

[0006] To achieve the above objectives, the present application provides a map matching method based on digital twins, the method comprising the following steps:

[0007] Identify the positioning mark and scene information in the positioning image, and determine the relative position of the positioning target and the positioning mark according to the image proportion of the positioning mark in the positioning image;

[0008] Determine the identification position of the positioning identification in the digital twin model, and match the scene information with the cross section where the identification position is located to determine the target cross section;

[0009] In the digital twin model, a target position of the relative position of the target section is determined, and the target position is used as the current position of the positioning target.

[0010] In one embodiment, the step of identifying the positioning mark and scene information in the positioning image, and determining the relative position of the positioning target and the positioning mark according to the image proportion of the positioning mark in the positioning image includes:

[0011] Inputting the positioning image into the image processing model, extracting feature information of the positioning image, and determining the scene information according to the feature information, wherein the scene information includes a scene contour;

[0012] Matching the scene information with preset identification information, and determining the positioning identification according to the matching result, wherein the positioning identification includes one or more;

[0013] Determine the image proportion according to the number of first pixels of the positioning mark in the positioning image and the number of second pixels of the positioning image;

[0014] According to the image proportion and the identification information corresponding to the positioning mark, the shooting distance between the positioning target and the positioning mark is determined, and the relative position of the positioning mark and the positioning target is determined according to the distance.

[0015] In one embodiment, the step of determining the shooting distance between the positioning target and the positioning mark according to the image proportion and the mark information corresponding to the positioning mark, and determining the relative position of the positioning mark and the positioning target according to the distance includes:

[0016] Acquire a mapping relationship between the shooting distance and the image proportion in the identification information;

[0017] Determine the shooting distance between the positioning target and the positioning mark according to the mapping relationship and the image proportion;

[0018] Determine the image position of the positioning mark in the positioning image according to the distance between the positioning mark and the positioning image frame in the positioning image, and determine the relative angle between the positioning mark and the positioning target according to the image position;

[0019] The relative position is determined according to the relative angle and the shooting distance.

[0020] In one embodiment, the step of determining the identification position of the positioning identification in the digital twin model, matching the scene information with the cross section where the identification position is located, and determining the target cross section includes:

[0021] Determine the identification position of the positioning identifier in the digital twin model according to the identification information;

[0022] Acquire the cross section of the digital twin model passing through the marked position, and determine the model contour of the digital twin model in the cross section;

[0023] The model contour is matched with the scene contour in the scene information, and a target cross section is determined according to the matching result.

[0024] In one embodiment, the step of determining the target position of the relative position of the target section in the digital twin model and using the target position as the current position of the positioning target includes:

[0025] Determining the distance between the positioning target and the positioning mark according to the relative position;

[0026] Determining the target position of the positioning target in the digital twin model according to the target cross section and the distance;

[0027] The target position is used as the current position of the positioning target.

[0028] In one embodiment, before the step of determining the identification position of the positioning identification in the digital twin model and matching the scene information with the cross section where the identification position is located and determining the target cross section, the step further includes:

[0029] Obtain geographic information and building information of the target area;

[0030] Generate a geographic information map based on the geographic information, and generate a building information model based on the building information;

[0031] Determining a geographical location corresponding to the building information model according to the building information;

[0032] According to the geographic location, the building information modeling is merged into the corresponding position of the geographic information map to generate the digital twin model.

[0033] In one embodiment, after the step of determining the target position of the relative position of the target section in the digital twin model and using the target position as the current position of the positioning target, the method further includes:

[0034] Determining a first motion trajectory of the positioning mark according to the continuous positioning images;

[0035] Based on the relative position of the positioning mark and the positioning target, the first motion trajectory is reversed to generate a second motion trajectory of the positioning target;

[0036] The current position is determined according to the second motion trajectory.

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

[0038] Taking pictures at a predetermined time based on a preset shooting cycle, acquiring the positioning image, and determining the current position according to the positioning image;

[0039] Obtaining satellite positioning of a satellite positioning function, and calculating a positioning distance between the satellite positioning and the current position, and determining a positioning deviation of the satellite positioning;

[0040] When the positioning deviation is greater than a preset threshold, the satellite positioning function is turned off, and the current position is acquired in real time through a camera device.

[0041] In addition, to achieve the above-mentioned objectives, the present application also provides a robot positioning device based on digital twins, the device comprising: a memory, a processor, and a computer program stored on the memory and executable on the processor, the computer program being configured to implement the steps of the robot positioning method based on digital twins as described above.

[0042] In addition, to achieve the above-mentioned purpose, the present application also provides a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by the processor, the steps of the robot positioning method based on digital twins as described above are implemented.

[0043] One or more technical solutions proposed in this application have at least the following technical effects:

[0044] The present application uses the camera equipment configured for the robot to collect positioning images in real time, and uses image recognition technology to determine the positioning marker and scene information in the image. By calculating the relative position of the positioning target and the positioning marker, and determining the target section in the digital twin model that passes through the positioning marker and matches the scene information, the current position of the positioning target can be determined based on the target section, the identification position of the positioning marker in the digital twin model, and the relative position of the positioning target and the positioning marker, thereby positioning the robot through the positioning marker in the scene and the digital twin model to avoid loss of the robot's positioning. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0046] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0047] Figure 1This is a flow chart of the first embodiment of the robot positioning method based on digital twins of the present application;

[0048] Figure 2 This is a flow chart of the second embodiment of the robot positioning method based on digital twins of the present application;

[0049] Figure 3 This is a flow chart of the third embodiment of the robot positioning method based on digital twins of the present application;

[0050] Figure 4 It is a structural schematic diagram of a robot positioning device based on digital twins in the hardware operating environment involved in the embodiment of the present application.

[0051] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0052] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0053] In order to better understand the above technical solution, the above technical solution will be described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0054] The main solution of the embodiment of the present application is: to identify the positioning mark and scene information in the positioning image, and determine the relative position of the positioning target and the positioning mark according to the image ratio of the positioning mark in the positioning image; to determine the identification position of the positioning mark in the digital twin model, and to match the scene information with the section where the identification position is located to determine the target section; in the digital twin model, to determine the target position of the relative position of the target section, and to use the target position as the current position of the positioning target.

[0055] In the navigation and positioning method based on computer vision, the robot collects images of environmental changes around the robot in real time, and extracts the corresponding feature points in the environmental change images through image recognition. According to the motion trajectory of the feature points extracted from the environmental change images, the robot can deduce its own motion trajectory and determine its current position. However, in the actual movement process, the robot is prone to lose feature points due to exposure, pedestrian occlusion, turning, etc. Since the robot's camera equipment is usually difficult to directly judge the environmental depth of the image, it is difficult for the robot to calibrate and position in time when the feature points are lost, which easily leads to the robot's positioning loss.

[0056] The present application uses the camera equipment configured for the robot to collect positioning images in real time, and uses image recognition technology to determine the positioning marker and scene information in the image. By calculating the relative position of the positioning target and the positioning marker, and determining the target section in the digital twin model that passes through the positioning marker and matches the scene information, the current position of the positioning target can be determined based on the target section, the identification position of the positioning marker in the digital twin model, and the relative position of the positioning target and the positioning marker, thereby positioning the robot through the positioning marker in the scene and the digital twin model to avoid loss of the robot's positioning.

[0057] In order to better understand the above technical solution, exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present application and to fully convey the scope of the present application to those skilled in the art.

[0058] It should be noted that the execution subject of this embodiment can be a positioning and navigation system, or a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device that can realize the above functions, a robot positioning device based on digital twins, etc., and this embodiment does not specifically limit this. The following takes the positioning and navigation system as an example to illustrate this embodiment and the following embodiments.

[0059] Inspection robots are robots used in park safety inspection scenarios. The robots can plan inspection routes and perform inspection tasks based on the inspection locations and their current locations. However, in inspection scenarios such as construction sites, inspection robots based on satellite positioning systems are easily affected by environmental factors such as strong magnetic fields, resulting in positioning failures. Using conventional image recognition positioning methods instead of satellite positioning methods to position robots is prone to losing their positioning due to the loss of feature points in real-time images.

[0060] Based on this, the embodiment of the present application provides a robot positioning method based on digital twins, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the robot positioning method based on digital twins in this application.

[0061] In this embodiment, the robot positioning method based on digital twins includes steps S10 to S40:

[0062] Step S10: identifying the positioning mark and scene information in the positioning image, and determining the relative position of the positioning target and the positioning mark according to the image proportion of the positioning mark in the positioning image;

[0063] In this embodiment, the positioning and navigation system can be deployed in the robot so that the robot can work in an offline environment, or it can be deployed in the cloud to improve the calculation speed of positioning. The robot is equipped with a camera. When the image positioning function is turned on, the camera will record the environment in which the robot is located, thereby obtaining an image of environmental changes around the robot in real time. The positioning and navigation system will use the real-time acquired image of environmental changes as a positioning image, perform image processing, extract feature information in the positioning image, and thereby identify and obtain the positioning mark and scene information in the positioning image.

[0064] Specifically, the positioning navigation system can perform image processing on the positioning image through a preset image processing model. After the positioning image is input into the image processing model, the image processing model can sample the positioning image according to a preset image processing algorithm to extract feature information in the image. By performing contour recognition on the feature information, the contours of each part of the positioning component can be determined to determine the scene information. The positioning navigation system can match the scene information with the preset identification information, and determine the positioning identification in the positioning image based on the matching result. Among them, since the camera device may capture images of multiple positioning identifications at the same time, multiple positioning identifications may also exist in the positioning image at the same time.

[0065] Specifically, the image processing model can use a local binary mode to compare the grayscale value of each pixel with its neighbors and generate corresponding binary codes to construct the local texture structure of the image and determine the feature information required for positioning the image. In addition, the image processing model can also extract the feature information of the positioning image through image processing methods such as convolutional neural networks.

[0066] Optionally, in the positioning and navigation system of the robot, according to the preset positioning marker, identification information corresponding to multiple positioning markers is preset. The identification information includes model information corresponding to the positioning marker, and a mapping relationship between different shooting distances and the number of pixels of the positioning marker in the positioning image.

[0067] As an optional implementation method for determining the image ratio, since the number of image pixels captured by the same camera device is the same, the positioning and navigation system can determine the number of pixels of the image of the positioning mark in the positioning image as the first number of pixels. At the same time, the positioning and navigation system can also determine the number of pixels of the positioning image according to the resolution of the camera device as the second number of pixels. Based on the ratio of the first number of pixels to the second number of pixels, the positioning and navigation system can calculate the image ratio of the positioning mark in the positioning image.

[0068] Exemplarily, when the resolution of the camera device is 1920*1080 pixels, the positioning navigation system can determine that the number of the second pixel points of the positioning image is 2073600 according to the resolution. At the same time, the positioning navigation system can count the first pixel points of the positioning marker as 10000 according to the image information of the positioning marker in the positioning image. Therefore, the positioning navigation system can calculate and obtain the ratio of the number of the first pixel points to the number of the second pixel points, that is, (10000 / 2073600)*100%≈0.48%, as the image proportion of the positioning marker in the positioning image.

[0069] Furthermore, after determining the image ratio of the positioning marker, the positioning navigation system can obtain the mapping relationship between the image ratio and the camera distance based on the identification information corresponding to the positioning marker, and thus determine the shooting distance between the positioning target and the positioning marker based on the image ratio and the mapping relationship.

[0070] As another optional implementation method for determining the image proportion, the positioning navigation system can also determine the corresponding feature points on the contour of the positioning mark after identifying the positioning mark in the positioning image. At the same time, the pixel distance between the feature points is compared with the identification information of the positioning mark in the database to directly obtain the distance between the positioning target and the positioning mark.

[0071] In addition, during the recognition process of the positioning image, the positioning navigation system can also determine the image position of the positioning mark in the positioning image according to the distance between the positioning mark and the frame of the positioning image. According to the image position, the positioning navigation system can determine the relative angle between the positioning mark and the positioning target, and determine the relative position of the positioning target and the positioning mark according to the relative angle and the shooting distance.

[0072] Step S20: determining the identification position of the positioning identification in the digital twin model, and matching the scene information with the cross section where the identification position is located to determine the target cross section;

[0073] In this embodiment, the digital twin model is constructed by modeling based on the architectural information and geographic information of the robot's working environment, and is adjusted according to the actual camera conditions of the robot's camera equipment. The digital twin model includes terrain modeling and architectural modeling in the robot's working environment. At the same time, the identification position of the corresponding positioning marker can be located in the digital twin model according to the identification information of the positioning marker. Among them, the positioning marker can be a building in the working environment, or it can be a street lamp, a road sign or other fixed objects.

[0074] Specifically, when constructing a digital twin model, it is necessary to first determine the target area to be constructed, that is, the working environment of the robot, and obtain the geographic information and building information of the target area. Based on the geographic information of the target area, a geographic information map of the target area can be generated, and based on the building information, a building information modeling can be generated. After determining the geographical location corresponding to the building information model in the geographic information map based on the building information, the building information modeling can be merged into the corresponding position of the geographic information map to generate a digital twin model.

[0075] For example, after acquiring the target area, a geographic information map of the target area can be constructed through a geographic information system (GIS), and a building information model (BIM) can be established based on the building information. According to the geographical location of the building information model, the BIM model can be combined with the GIS map to generate a digital twin model. At the same time, the digital twin model also needs to be appropriately adjusted according to the actual scene and the shooting angle of the robot, so as to better adapt to the matching of scene information and cross-section.

[0076] In one embodiment, the positioning and navigation system can determine the identification position of the positioning marker in the digital twin model based on the identification information of the positioning marker, and traverse the section passing through the identification position in the digital twin model, and match the scene contour in the acquired scene information with the model contour of the digital twin model in the section, and take the section with a matching degree higher than a preset matching degree threshold, or the section with the highest matching degree, as the target section.

[0077] In addition, it should be noted that in the process of adding positioning markers, the positioning navigation system can also use the image of the positioning marker and the digital twin model to analyze the identification information of the positioning marker through deep learning, determine the mapping relationship between the shooting distance of the positioning marker and the image ratio and other information, and save the identification information to the database to complete the update of the positioning marker.

[0078] Exemplarily, in the process of adding a positioning mark, the positioning navigation system can obtain the corresponding relationship between the positioning mark and the image proportion at each distance and angle based on the image information of the input positioning mark. In the digital twin model, the positioning navigation system can calculate the image proportion of the positioning mark at different distances through deep learning based on the corresponding relationship between the positioning mark and the image proportion, and improve it, thereby determining the mapping relationship between the shooting distance and the image proportion.

[0079] Step S30: In the digital twin model, determine the target position of the relative position of the target section, and use the target position as the current position of the positioning target.

[0080] In this embodiment, after determining the target cross section and the relative position of the positioning target and the positioning mark, the current position of the positioning target can be determined according to the scaling ratio of the digital twin model.

[0081] As a feasible implementation method, the positioning navigation system can determine the distance between the identification position and the target position in the digital twin model based on the relative position and the scaling ratio of the digital twin model. Based on the distance and the relative angle between the positioning target and the positioning identification, the positioning navigation system can determine the target position of the positioning target in the digital twin model and use the target position as the current position. The current position and the target position can be described in the form of coordinates.

[0082] The embodiment of the present application uses a camera device configured for the robot to collect positioning images in real time, and uses image recognition technology to determine the positioning mark and scene information in the image. By calculating the relative position of the positioning target and the positioning mark, and determining the target section in the digital twin model that passes through the positioning mark and matches the scene information, the current position of the positioning target can be determined based on the target section, the identification position of the positioning mark in the digital twin model, and the relative position of the positioning target and the positioning mark, thereby positioning the robot through the positioning mark in the scene and the digital twin model to avoid loss of the robot's positioning.

[0083] Based on the same inventive concept, the present application also provides a second embodiment, referring to Figure 2 , Figure 2 This is a flow chart of the second embodiment of the robot positioning method based on digital twins of the present application.

[0084] In this embodiment, as described in step S30, in the digital twin model, after determining the target position of the relative position of the target section and using the target position as the current position of the positioning target, steps S40 to S42 are also included:

[0085] Step S40: determining a first motion trajectory of the positioning mark according to the continuous positioning images;

[0086] Step S41: Based on the relative position of the positioning mark and the positioning target, the first motion trajectory is reversed to generate a second motion trajectory of the positioning target;

[0087] Step S42: Determine the current position according to the second motion trajectory.

[0088] In this embodiment, since the positioning mark will move relative to the robot during the movement of the robot, in order to reduce the amount of calculation required for the robot to determine the current position through the positioning image, the positioning navigation system can determine the first motion trajectory of the positioning mark based on the continuous positioning images in the positioning video captured by the camera device after the relative position of the positioning mark and itself. Based on the relative movement of the positioning mark and the robot, the positioning navigation system can reverse the first motion trajectory based on the relative position of the positioning mark and the positioning target to generate a second motion trajectory to describe the motion trajectory of the positioning target. Based on the second motion trajectory, the positioning navigation system can quickly determine the current position of the positioning target without a lot of calculations.

[0089] In an embodiment of the present application, the positioning and navigation system can determine the second motion trajectory of the robot and the current position of the robot based on the relative motion of the positioning marker and the robot, and the first motion trajectory of the positioning marker. Therefore, when the positioning and navigation system captures the positioning marker and is not lost, the robot position is determined by the positioning marker, thereby reducing the calculation amount and load of the robot navigation system.

[0090] Since the system introduced in the second embodiment of the present application is a system used to implement the method of the first embodiment of the present application, based on the method introduced in the first embodiment of the present application, the person skilled in the art can understand the specific structure and deformation of the system, so it is not repeated here. All systems used in the method of the first embodiment of the present application belong to the scope of protection of this application.

[0091] Based on the same inventive concept, the present application also provides a third embodiment, referring to Figure 3 , Figure 3 This is a flow chart of the second embodiment of the robot positioning method based on digital twins of the present application.

[0092] In this embodiment, the robot positioning method based on digital twins further includes steps S11 to S13:

[0093] Step S11: taking pictures at a predetermined time based on a preset shooting cycle, acquiring the positioning image, and determining the current position according to the positioning image;

[0094] Step S12: obtaining a satellite positioning function of a satellite positioning function, and calculating a distance between the satellite positioning function and the current position, and determining a positioning deviation of the satellite positioning function;

[0095] Step S13: When the positioning deviation is greater than a preset threshold, the satellite positioning function is turned off, and the current position is acquired in real time through a camera device.

[0096] In this embodiment, since the positioning method based on image recognition has higher requirements on the computational complexity of the positioning and navigation system than the satellite positioning method, but has higher positioning accuracy, the robot can preferentially use the satellite positioning method for positioning under normal conditions, and when the satellite positioning function is judged to be abnormal based on the image recognition positioning function, the image recognition positioning function can be used to replace the satellite positioning function for positioning.

[0097] In specific implementation, the robot can take pictures regularly according to the preset shooting cycle to complete the periodic detection of satellite positioning. After obtaining the positioning image, the positioning navigation system can determine the current position through the digital twin model and the positioning image, and calculate the positioning distance between the current position and the satellite positioning obtained by the satellite positioning function to determine the positioning deviation of the satellite positioning. When the positioning deviation is greater than the preset threshold, the robot will turn off the satellite positioning function and obtain the positioning image in real time through the camera device to determine the current position.

[0098] Optionally, to ensure the accuracy of the image recognition and positioning function and avoid shutting down the WeChat positioning function when the satellite positioning is accurate, the robot can identify positioning images at multiple angles by configuring cameras at multiple angles, using rotatable cameras or panoramic cameras, etc., to obtain the current position and avoid positioning anomalies due to motion blur, exposure, etc. of the camera.

[0099] The embodiment of the present application can periodically detect the satellite positioning function through the image recognition positioning function, and when the satellite positioning function is abnormal, replace the satellite positioning function with the image recognition positioning function, thereby reducing the amount of calculation required by the positioning and navigation system and reducing the load of robot navigation.

[0100] The present application provides a robot positioning device based on digital twins, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the robot positioning method based on digital twins in the above-mentioned embodiment one.

[0101] Reference below Figure 4, which shows a schematic diagram of the structure of a robot positioning device based on digital twins suitable for implementing the embodiment of the present application. The robot positioning device based on digital twins in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 4 The digital twin-based robot positioning device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0102] like Figure 4 As shown, the robot positioning device based on digital twins may include a processing device 1001 (e.g., a core processor, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the robot positioning device based on digital twins are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other via a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems can be connected to the I / O interface 1006: input devices 1007 including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; output devices 1008 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 1003 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 1009. The communication device 1009 can allow the robot positioning device based on digital twins to communicate wirelessly or wired with other devices to exchange data. Although the figure shows a robot positioning device based on digital twins with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems may be implemented or provided alternatively.

[0103] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application 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. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.

[0104] The robot positioning device based on digital twin provided by the present application adopts the robot positioning method based on digital twin in the above embodiment, which can solve the technical problem that the robot navigation positioning method based on image recognition is prone to lose positioning. Compared with the prior art, the beneficial effects of the robot positioning device based on digital twin provided by the present application are the same as the beneficial effects of the robot positioning method based on digital twin provided by the above embodiment, and the other technical features of the robot positioning device based on digital twin are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.

[0105] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0106] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0107] The present application provides a computer-readable storage medium having computer-readable program instructions (i.e., computer programs) stored thereon, and the computer-readable program instructions are used to execute the robot positioning method based on digital twins in the above-mentioned embodiment.

[0108] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, 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 this embodiment, the 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, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.

[0109] The above-mentioned computer-readable storage medium may be included in the robot positioning device based on the digital twin; or it may exist independently without being assembled into the robot positioning device based on the digital twin.

[0110] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by a robot positioning device based on a digital twin, the robot positioning device based on the digital twin: identifies the positioning mark and scene information in the positioning image, and determines the relative position of the positioning target and the positioning mark according to the image ratio of the positioning mark in the positioning image; determines the identification position of the positioning mark in the digital twin model, and matches the scene information with the section where the identification position is located to determine the target section; determines the target position of the relative position of the target section in the digital twin model, and uses the target position as the current position of the positioning target.

[0111] Computer program code for performing the operations of the present application 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 the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through 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).

[0112] 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 application. 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 alternative implementations, 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.

[0113] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.

[0114] The readable storage medium provided in this application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned robot positioning method based on digital twins, and can solve the technical problem that the robot navigation positioning method based on image recognition is prone to lose positioning. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in this application are the same as the beneficial effects of the robot positioning method based on digital twins provided in the above-mentioned embodiments, and will not be repeated here.

[0115] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.

Claims

1. A robot positioning method based on digital twins, characterized in that: The method comprises the following steps: Identify the positioning mark and scene information in the positioning image, and determine the relative position of the positioning target and the positioning mark according to the image proportion of the positioning mark in the positioning image; Determine the identification position of the positioning identification in the digital twin model, and match the scene information with the cross section where the identification position is located to determine the target cross section; In the digital twin model, a target position of the relative position of the target section is determined, and the target position is used as the current position of the positioning target.

2. The method according to claim 1, characterized in that The step of identifying the positioning mark and scene information in the positioning image, and determining the relative position of the positioning target and the positioning mark according to the image proportion of the positioning mark in the positioning image includes: Inputting the positioning image into the image processing model, extracting feature information of the positioning image, and determining the scene information according to the feature information, wherein the scene information includes a scene contour; Matching the scene information with preset identification information, and determining the positioning identification according to the matching result, wherein the positioning identification includes one or more; Determine the image proportion according to the number of first pixels of the positioning mark in the positioning image and the number of second pixels of the positioning image; According to the image proportion and the identification information corresponding to the positioning mark, the shooting distance between the positioning target and the positioning mark is determined, and the relative position of the positioning mark and the positioning target is determined according to the distance.

3. The method according to claim 2, characterized in that The step of determining the shooting distance between the positioning target and the positioning mark according to the image proportion and the mark information corresponding to the positioning mark, and determining the relative position of the positioning mark and the positioning target according to the distance includes: Acquire a mapping relationship between the shooting distance and the image proportion in the identification information; Determine the shooting distance between the positioning target and the positioning mark according to the mapping relationship and the image proportion; Determine the image position of the positioning mark in the positioning image according to the distance between the positioning mark and the positioning image frame in the positioning image, and determine the relative angle between the positioning mark and the positioning target according to the image position; The relative position is determined according to the relative angle and the shooting distance.

4. The method according to claim 2, characterized in that The step of determining the identification position of the positioning identification in the digital twin model, matching the scene information with the section where the identification position is located, and determining the target section includes: Determine the identification position of the positioning identifier in the digital twin model according to the identification information; Acquire the cross section of the digital twin model passing through the marked position, and determine the model contour of the digital twin model in the cross section; The model contour is matched with the scene contour in the scene information, and a target cross section is determined according to the matching result.

5. The method according to claim 1, characterized in that The step of determining the target position of the relative position of the target section in the digital twin model and using the target position as the current position of the positioning target includes: Determining the distance between the positioning target and the positioning mark according to the relative position; Determining the target position of the positioning target in the digital twin model according to the target cross section and the distance; The target position is used as the current position of the positioning target.

6. The method according to claim 1, characterized in that Before the step of determining the identification position of the positioning identification in the digital twin model and matching the scene information with the cross section where the identification position is located to determine the target cross section, the step further includes: Obtain geographic information and building information of the target area; Generate a geographic information map based on the geographic information, and generate a building information model based on the building information; Determining a geographical location corresponding to the building information model according to the building information; According to the geographic location, the building information modeling is merged into the corresponding position of the geographic information map to generate the digital twin model.

7. The method according to claim 1, characterized in that After the step of determining the target position of the relative position of the target section in the digital twin model and using the target position as the current position of the positioning target, the method further includes: Determining a first motion trajectory of the positioning mark according to the continuous positioning images; Based on the relative position of the positioning mark and the positioning target, the first motion trajectory is reversed to generate a second motion trajectory of the positioning target; The current position is determined according to the second motion trajectory.

8. The method according to claim 1, characterized in that The method further comprises: Taking pictures at a predetermined time based on a preset shooting cycle, acquiring the positioning image, and determining the current position according to the positioning image; Obtaining satellite positioning of a satellite positioning function, and calculating a positioning distance between the satellite positioning and the current position, and determining a positioning deviation of the satellite positioning; When the positioning deviation is greater than a preset threshold, the satellite positioning function is turned off, and the current position is acquired in real time through a camera device.

9. A robot positioning device based on digital twins, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the robot positioning method based on digital twins as described in any one of claims 1 to 8.

10. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the robot positioning method based on digital twins are implemented as described in any one of claims 1 to 8.

Citation Information

Patent Citations

  • Well site positioning method and device based on digital twinning

    CN114018237A

  • Non-insensitive personnel positioning method and system based on digital twin model

    CN116704377A

  • Intelligent capturing of a dynamic physical environment

    US20200082614A1

  • Image localization using a digital twin representation of an environment

    US20230419650A1

Cited By

  • Equipment inspection and management method and equipment based on image recognition, and storage medium

    CN119516633A

  • Display control method and vehicle

    CN120503602A