Map data synchronization method and device of XR equipment, computer equipment and medium
By sending synchronous requests in the XR device, determine and select the optimal target XR device, obtain and integrate the synchronous map data, solve the problem of waste and data in the existing technology, and achieve efficient and accurate map data synchronization. Essence
Patent Information
- Application Number
- CN202410084240.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-19
- Publication Date
- 2025-01-28
AI Technical Summary
In the prior art, when an XR device synchronizes map data from other XR devices, it will select one of multiple devices to synchronize all its map data, resulting in wasted resources and the synchronization data is not accurate enough.
By sending the first synchronous request to multiple first XR devices, it is determined whether it contains the map data to be synchronized to determine at least two target XR devices. Then, based on the location information and preset location information of the target XR device, select the optimal target XR device, and send it a second synchronous request to obtain and integrate the synchronous map data.
While saving transmission resources, the accuracy of synchronous data is ensured, and the problems of waste of resources and inaccurate data are avoided.
Smart Images

Figure CN119377313A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of XR map data sharing, and in particular to a map data synchronization method, device, computer equipment and medium for XR devices. Background Art
[0002] With the popularity of Extended Reality (XR) devices, more map data is needed to support our application scenarios so that the coverage of the scenes can restore the real scenes. XR devices will be set at different locations in the preset area to collect three-dimensional scenes in the preset area to obtain map data of the real scene. However, due to the limited collection accuracy of the XR device, it may not be possible to collect three-dimensional scenes for locations far away from the device, or the collection accuracy is low, so it is necessary to synchronize the map data of XR devices in other locations. At present, when an XR device synchronizes the map data of other XR devices, it will select one other XR device from multiple other devices and synchronize all the map data in the selected XR device. There is a waste of resources and the synchronized map data is not accurate enough. Summary of the invention
[0003] In view of this, the present invention provides a map data synchronization method, apparatus, computer equipment and medium for an XR device to solve the problem in the related art that all map data in a selected XR device is synchronized to the XR device to be synchronized, resulting in waste of resources and inaccurate synchronized map data.
[0004] In a first aspect, the present invention provides a map data synchronization method for an XR device, the method comprising: sending a first synchronization request to multiple first XR devices, so that each first XR device determines whether the local area contains map data to be synchronized based on the received first synchronization request, and obtains a corresponding judgment result; based on the judgment results returned by different first XR devices, at least two target XR devices are determined among the multiple first XR devices, and the target XR devices are XR devices that locally contain map data to be synchronized; determining location information of each target XR device; based on the location information of each target XR device and the location information of a preset location, determining an optimal target XR device among the multiple target XR devices; sending a second synchronization request to the optimal target XR device, so that the optimal target XR device returns the local map data to be synchronized based on the received second synchronization request; receiving the map data to be synchronized returned by the optimal target XR device, and merging the map data to be synchronized with the local map data.
[0005] The map data synchronization method for XR devices provided by the present invention sends a first synchronization request to multiple first XR devices, so that each first XR device determines whether the local area contains map data to be synchronized based on the received first synchronization request, determines a target XR device containing the map data to be synchronized among the multiple first XR devices based on the judgment results respectively returned by different first XR devices, determines an optimal target XR device among the multiple target XR devices based on the location information of each target XR device and the location information of a preset location, sends a second synchronization request to the optimal target XR device, so that the optimal target XR device returns the local map data to be synchronized, receives the map data to be synchronized returned by the optimal target XR device, and merges the map data to be synchronized with the local map data. The method provided by the present invention determines a target XR device containing map data to be synchronized among multiple first XR devices, determines an optimal target XR device among multiple target XR devices based on location information of each target XR device and location information corresponding to the map data to be synchronized, and requests the optimal target XR device to return the local map data to be synchronized. When performing data synchronization, the XR device only needs to synchronize the map data to be synchronized in the determined optimal target XR device to the local, and does not need to synchronize the full amount of map data, thereby saving transmission resources and ensuring the accuracy of the synchronized data.
[0006] In an optional implementation manner, the map data to be synchronized is map data corresponding to a preset location, and the first synchronization request is generated based on the map data to be synchronized.
[0007] In an optional embodiment, the step of determining the location information of each target XR device includes: sending a positioning signal to each target XR device; receiving a response signal returned by each target XR device based on the positioning signal; and determining the location information of the corresponding XR device based on the response signal of each target XR device.
[0008] The method provided in this optional implementation manner can accurately determine the position information of the corresponding target XR device based on the response signal returned by each target XR device by sending positioning information to different target XR devices.
[0009] In an optional embodiment, based on the position information of each target XR device and the position information of the preset position, the step of determining the optimal target XR device among multiple target XR devices includes: comparing the position information of each target XR device with the position information of the preset position to obtain a comparison result; when the position information of any target XR device is consistent with the position information of the preset position, taking the corresponding target XR device as the optimal target XR device; when there is no target XR device whose position information is consistent with the position information of the preset position, taking the target XR device closest to the preset position as the optimal target XR device.
[0010] In an optional embodiment, before the step of sending a first synchronization request to multiple first XR devices, the method also includes: sending a ring signal to detect XR devices within a preset range to determine multiple detected second XR devices; sending a connection request to each second XR device; when a response signal returned by any second XR device is received, establishing a communication channel with the corresponding second XR device, and determining the corresponding second XR device as the first XR device.
[0011] In a second aspect, the present invention provides a map data synchronization system for an XR device, the system comprising: multiple XR devices, each XR device having an integrated ultra-wideband wireless communication module, each XR device being used to execute a map data synchronization method for an XR device as described in the first aspect above or any corresponding embodiment thereof.
[0012] In an optional implementation, each XR device exchanges data with any other XR device through a frequency hopping sequence preset in an ultra-wideband wireless communication module.
[0013] In a third aspect, the present invention provides a map data synchronization device for an XR device, the device comprising:
[0014] A first sending module is used to send a first synchronization request to multiple first XR devices, so that each first XR device determines whether the local area contains map data to be synchronized based on the received first synchronization request, and obtains a corresponding judgment result; a first determining module is used to determine at least two target XR devices among the multiple first XR devices based on the judgment results returned by different first XR devices, and the target XR devices are XR devices that locally contain map data to be synchronized; a second determining module is used to determine the location information of each target XR device; a third determining module is used to determine the optimal target XR device among the multiple target XR devices based on the location information of each target XR device and the location information of a preset location; the second sending module is used to send a second synchronization request to the optimal target XR device, so that the optimal target XR device returns the local map data to be synchronized based on the received second synchronization request; a first receiving module is used to receive the map data to be synchronized returned by the optimal target XR device, and merge the map data to be synchronized with the local map data.
[0015] In an optional embodiment, the second determination module includes: a sending submodule, used to send a positioning signal to each target XR device; a receiving submodule, used to receive a response signal returned by each target XR device based on the positioning signal; and a first determination submodule, used to determine the location information of the corresponding XR device based on the response signal of each target XR device.
[0016] In a fourth aspect, the present invention provides a computer device, comprising: a memory and a processor, the memory and the processor are communicatively connected to each other, computer instructions are stored in the memory, and the processor executes the map data synchronization method of the XR device of the first aspect or any corresponding embodiment thereof by executing the computer instructions.
[0017] In a fifth aspect, the present invention provides an XR device, comprising the map data synchronization device of the third aspect or its corresponding implementation manner.
[0018] In a sixth aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the map data synchronization method for an XR device of the first aspect or any corresponding embodiment thereof. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0020] Figure 1 is a flowchart of a method for synchronizing map data of an XR device according to an embodiment of the present invention;
[0021] Figure 2 is a flowchart of a map data synchronization method for another XR device according to an embodiment of the present invention;
[0022] Figure 3 is a flowchart of a map data synchronization method for another XR device according to an embodiment of the present invention;
[0023] Figure 4 is a structural block diagram of a map data synchronization device for an XR device according to an embodiment of the present invention;
[0024] Figure 5 It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0025] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0026] In the related technology, XR devices are set at different positions in a preset area to collect three-dimensional scenes in the preset area and obtain map data of the real scene. However, due to the limited collection accuracy of the XR device, it may not be possible to collect three-dimensional scenes for locations far away from the device, or the collection accuracy is low, so it is necessary to synchronize the map data of XR devices in other locations. At present, when an XR device synchronizes the map data of other XR devices, it will select one other XR device from multiple other devices and synchronize all the map data in the selected XR device, which wastes resources and the synchronized map data is not accurate enough.
[0027] In view of this, an embodiment of the present invention provides a method for synchronizing map data of an XR device, which can be applied to any XR device to achieve synchronization of map data. The method provided by the embodiment of the present invention determines a target XR device containing map data to be synchronized among multiple first XR devices, determines the optimal target XR device among multiple target XR devices based on the location information of each target XR device and the location information corresponding to the map data to be synchronized, and requests the optimal target XR device to return the local map data to be synchronized. When performing data synchronization, the XR device only needs to synchronize the map data to be synchronized in the determined optimal target XR device to the local, and does not need to synchronize the full amount of map data, thereby saving transmission resources while ensuring the accuracy of the synchronized data.
[0028] According to an embodiment of the present invention, an embodiment of a map data synchronization method for an XR device is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in an order different from that shown here.
[0029] In this embodiment, a method for synchronizing map data of an XR device is provided, which is applied to any XR device. Figure 1 is a flowchart of a map data synchronization method for an XR device according to an embodiment of the present invention. Figure 1 As shown, the process includes the following steps:
[0030] Step S101 : sending a first synchronization request to a plurality of first XR devices, so that each first XR device determines whether the local device contains map data to be synchronized based on the received first synchronization request, and obtains a corresponding determination result.
[0031] Exemplarily, the map data to be synchronized is the map data corresponding to a preset position, and the first synchronization request is generated based on the map data to be synchronized. The XR device sends a first synchronization request to multiple first XR devices with which it establishes a communication connection. The first synchronization request is generated based on the map data to be synchronized. Each first XR device determines whether the local area contains the map data to be synchronized based on the received first synchronization request, and obtains the corresponding judgment result. In an embodiment of the present application, ultra-wideband wireless communication technology (Ultra Wide Band, UWB) is used to exchange information between multiple XR devices. UWB has the characteristics of wide bandwidth, short pulse, low power, high precision, wireless communication, radar and imaging, ranging and angle measurement. Based on the above characteristics, UWB has the advantages of anti-interference, high-precision positioning and tracking capabilities, and clear imaging. On multiple devices equipped with UWB, directional requests and directional transmissions of map data can be made to a certain device in a specified direction.
[0032] Step S102: Based on the judgment results respectively returned by different first XR devices, at least two target XR devices are determined from multiple first XR devices, where the target XR devices are XR devices that locally contain map data to be synchronized.
[0033] Exemplarily, a first XR device that locally contains map data to be synchronized is used as a target XR device.
[0034] Step S103: determining the location information of each target XR device.
[0035] Exemplarily, in an embodiment of the present application, the position and distance can be calculated by utilizing the Single-sided Two-way Ranging communication mode to determine the position information of each target XR device.
[0036] Step S104 : determining an optimal target XR device among multiple target XR devices based on the position information of each target XR device and the position information of the preset position.
[0037] Exemplarily, in an embodiment of the present application, the target XR device closest to the preset position can be used as the optimal XR device, because the closer the distance to the preset position, the more accurate the collected map data to be synchronized.
[0038] Step S105 : Send a second synchronization request to the optimal target XR device, so that the optimal target XR device returns local map data to be synchronized based on the received second synchronization request.
[0039] Exemplarily, the current XR device sends a second synchronization request to the optimal target XR device. After receiving the second synchronization request, the optimal target XR device returns the local map data to be synchronized to the current XR device.
[0040] Step S106: receiving the map data to be synchronized returned by the optimal target XR device, and merging the map data to be synchronized with the local map data.
[0041] Exemplarily, the current XR device merges the received map data to be synchronized with the local map data, thereby achieving synchronization of the map data.
[0042] The map data synchronization method for XR devices provided in the present embodiment determines a target XR device containing map data to be synchronized among multiple first XR devices, determines an optimal target XR device among the multiple target XR devices based on the location information of each target XR device and the location information corresponding to the map data to be synchronized, and requests the optimal target XR device to return the local map data to be synchronized. When performing data synchronization, the XR device only needs to synchronize the map data to be synchronized in the determined optimal target XR device to the local, and does not need to synchronize the full amount of map data, thereby saving transmission resources and ensuring the accuracy of the synchronized data.
[0043] In this embodiment, a method for synchronizing map data of an XR device is provided, which is applied to any XR device. Figure 2 is a flowchart of a map data synchronization method for an XR device according to an embodiment of the present invention. Figure 2 As shown, the process includes the following steps:
[0044] Step S201: Send a first synchronization request to multiple first XR devices, so that each first XR device determines whether the local contains map data to be synchronized based on the received first synchronization request, and obtains a corresponding judgment result. Figure 1 Step S101 of the illustrated embodiment will not be described in detail here.
[0045] In some optional implementations, before the above step S201, the method further includes:
[0046] Step a1, sending a ring signal to detect the XR devices within the preset range, and determining the detected multiple second XR devices. Exemplarily, the preset range can be determined according to the detection range of the current XR device. In the embodiment of the present application, the current XR device can send a ring signal through Bluetooth or other communication protocols to detect how many XR devices are next to the device, and use radar and imaging to depict the appearance of the remaining devices, and preliminarily screen the XR devices around it.
[0047] Step a2: Send a connection request to each second XR device. Exemplarily, the connection request is used to request each second XR device to establish a communication connection with the current XR device.
[0048] Step a3: when a response signal returned by any second XR device is received, a communication channel is established with the corresponding second XR device, and the corresponding second XR device is determined as the first XR device. For example, in the embodiment of the present application, the communication channel may be a UWB data interaction channel.
[0049] Step S202: Based on the judgment results returned by different first XR devices, at least two target XR devices are determined from the multiple first XR devices, where the target XR devices are XR devices that have map data to be synchronized locally. Figure 1 Step S102 of the illustrated embodiment will not be described in detail here.
[0050] Step S203: Determine the location information of each target XR device.
[0051] Specifically, the above step S203 includes:
[0052] Step S2031: Send a positioning signal to each target XR device.
[0053] Exemplarily, the current XR device sends a positioning signal to each target XR device. In the embodiment of the present application, a UWB communication module is integrated inside the current XR device and the target XR device. The current XR device generates and sends a positioning signal using the communication mode TWR of the UWB communication module.
[0054] Step S2032: Receive a response signal returned by each target XR device based on the positioning signal. Exemplarily, each target XR device returns a response signal after receiving the positioning signal.
[0055] Step S2033, based on the response signal of each target XR device, the location information of the corresponding XR device is determined. For example, after receiving the response signal, the current XR device can calculate the distance between it and the target XR device, specifically in the following manner: send signal - receive signal - calculate flight time - calculate distance - multiple aiming point positioning.
[0056] Step S204: Determine the optimal target XR device from among multiple target XR devices based on the location information of each target XR device and the location information of the preset location. Figure 1 Step S104 of the illustrated embodiment will not be described in detail here.
[0057] Step S205: Send a second synchronization request to the optimal target XR device, so that the optimal target XR device returns the local map data to be synchronized based on the received second synchronization request. Figure 1 Step S105 of the illustrated embodiment will not be described in detail here.
[0058] Step S206: Receive the map data to be synchronized returned by the optimal target XR device, and merge the map data to be synchronized with the local map data. Figure 1 Step S106 of the illustrated embodiment will not be described in detail here.
[0059] In this embodiment, a method for synchronizing map data of an XR device is provided, which is applied to any XR device. Figure 3 is a flowchart of a map data synchronization method for an XR device according to an embodiment of the present invention. Figure 3 As shown, the process includes the following steps:
[0060] Step S301 : Send a first synchronization request to multiple first XR devices, so that each first XR device determines whether the local device contains map data to be synchronized based on the received first synchronization request, and obtains a corresponding determination result.
[0061] Step S302: Based on the judgment results returned by different first XR devices, at least two target XR devices are determined from the multiple first XR devices, where the target XR devices are XR devices that have map data to be synchronized locally. Figure 2 Step S202 of the illustrated embodiment will not be described in detail here.
[0062] Step S303: Determine the location information of each target XR device. Figure 2 Step S203 of the illustrated embodiment will not be described in detail here.
[0063] Step S304: Based on the position information of each target XR device and the position information of the preset position, determine the optimal target XR device among multiple target XR devices. Figure 2 Step S204 of the illustrated embodiment will not be described in detail here.
[0064] Specifically, the above step S304 includes:
[0065] Step S3041: compare the position information of each target XR device with the position information of the preset position to obtain a comparison result.
[0066] Step S3042: When the position information of any target XR device is consistent with the position information of the preset position, the corresponding target XR device is used as the optimal target XR device.
[0067] Exemplarily, when the location information of any target XR device is consistent with the location information of a preset location, it can be determined that the map data of the preset location collected by the corresponding target XR device is the most accurate, and the target XR device is used as the optimal target XR device.
[0068] Step S3043: When there is no target XR device whose position information is consistent with the position information of the preset position, the target XR device closest to the preset position is used as the optimal target XR device.
[0069] Step S305: Send a second synchronization request to the optimal target XR device, so that the optimal target XR device returns the local map data to be synchronized based on the received second synchronization request. Figure 2 Step S205 of the illustrated embodiment will not be described in detail here.
[0070] Step S306: Receive the map data to be synchronized returned by the optimal target XR device, and merge the map data to be synchronized with the local map data. Figure 2 Step S206 of the illustrated embodiment will not be described in detail here.
[0071] In the embodiment of the present application, it is not necessary to request every device, only the devices in a specific direction are requested, which improves the data generation speed; in the absence of GPS positioning, the device position and angle can still be accurately located through the characteristics of UWB. Through the characteristics of distance measurement and angle measurement, the map information of the device with missing directions is obtained first to complete itself. If there is no device in the missing direction, the missing map is completed from the remaining directions.
[0072] In this embodiment, a map data synchronization system for an XR device is provided, the system comprising: a plurality of XR devices, each XR device having an ultra-wideband wireless communication module integrated therein, and each XR device being used to execute the map data synchronization method for the XR device in the above embodiment. For details, please refer to the relevant description of the above embodiment, which will not be repeated here.
[0073] In some optional implementations, each XR device exchanges data with any other XR device through a preset frequency hopping sequence in the ultra-wideband wireless communication module. For example, UWB uses a wide spectrum to transmit data to multiple devices, but in order to prevent interference between devices, frequency hopping is required. Frequency hopping uses a predefined frequency hopping sequence, which can ensure which frequency channel is used at different time nodes, thereby solving the problem of mutual interference.
[0074] In this embodiment, a map data synchronization device for an XR device is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and will not be repeated here. As used below, the term "module" may be a combination of software and / or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0075] This embodiment provides a map data synchronization device for an XR device, such as Figure 4 As shown, including:
[0076] A first sending module 401 is used to send a first synchronization request to multiple first XR devices, so that each first XR device determines whether the local device contains the map data to be synchronized based on the received first synchronization request, and obtains a corresponding determination result;
[0077] A first determination module 402 is configured to determine at least two target XR devices from a plurality of first XR devices based on the determination results respectively returned by different first XR devices, where the target XR devices are XR devices that locally contain map data to be synchronized;
[0078] A second determination module 403 is used to determine the location information of each target XR device;
[0079] A third determination module 404 is used to determine an optimal target XR device among multiple target XR devices based on the position information of each target XR device and the position information of the preset position;
[0080] A second sending module 405 is used to send a second synchronization request to the optimal target XR device, so that the optimal target XR device returns local map data to be synchronized based on the received second synchronization request;
[0081] The first receiving module 406 is configured to receive the map data to be synchronized returned by the optimal target XR device, and merge the map data to be synchronized with the local map data.
[0082] In some optional implementations, the second determining module 403 includes:
[0083] The sending submodule is used to send positioning signals to each target XR device;
[0084] A receiving submodule, used to receive a response signal returned by each target XR device based on the positioning signal;
[0085] The first determination submodule is configured to determine the position information of the corresponding XR device based on the response signal of each target XR device.
[0086] In some optional implementations, the third determining module 404 includes:
[0087] A comparison submodule, used to compare the location information of each target XR device with the location information of a preset location to obtain a comparison result;
[0088] The second determination submodule is configured to, when the position information of any target XR device is consistent with the position information of the preset position, use the corresponding target XR device as the optimal target XR device;
[0089] The third determination submodule is configured to, when there is no target XR device whose position information is consistent with the position information of the preset position, use the target XR device closest to the preset position as the optimal target XR device.
[0090] In some optional embodiments, the device further comprises:
[0091] A third sending module, configured to send a ring signal to detect XR devices within a preset range, and determine a plurality of detected second XR devices;
[0092] A fourth sending module, configured to send a connection request to each second XR device;
[0093] The second receiving module is configured to establish a communication channel with the corresponding second XR device upon receiving a response signal returned by any second XR device, and determine the corresponding second XR device as the first XR device.
[0094] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.
[0095] The map data synchronization device of the XR device in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.
[0096] The embodiment of the present invention also provides a computer device having the above Figure 4 A map data synchronization device for an XR device is shown.
[0097] See also Figure 5 , Figure 5 is a schematic diagram of the structure of a computer device provided by an optional embodiment of the present invention, such as Figure 5As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 5 A processor 10 is taken as an example.
[0098] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.
[0099] The memory 20 stores instructions executable by at least one processor 10, so that at least one processor 10 executes the method shown in the above embodiment.
[0100] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0101] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.
[0102] The computer device further comprises a communication interface 30 for the computer device to communicate with other devices or a communication network.
[0103] The embodiment of the present invention also provides an XR device having the above Figure 4 A map data synchronization device for an XR device is shown.
[0104] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.
[0105] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A map data synchronization method for an XR device, characterized in that: The method comprises: Sending a first synchronization request to the plurality of first XR devices, so that each first XR device determines whether the local device contains the to-be-synchronized map data based on the received first synchronization request, and obtains a corresponding determination result; Based on the judgment results respectively returned by different first XR devices, at least two target XR devices are determined from the multiple first XR devices, where the target XR devices are XR devices that locally contain the map data to be synchronized; Determine the location information of each target XR device; Determine an optimal target XR device among multiple target XR devices based on the position information of each target XR device and the position information of the preset position; Sending a second synchronization request to the optimal target XR device, so that the optimal target XR device returns local map data to be synchronized based on the received second synchronization request; Receive the map data to be synchronized returned by the optimal target XR device, and merge the map data to be synchronized with the local map data.
2. The method according to claim 1, characterized in that The map data to be synchronized is map data corresponding to a preset location, and the first synchronization request is generated based on the map data to be synchronized.
3. The method according to claim 1, characterized in that The step of determining the location information of each target XR device includes: Send positioning signals to each target XR device; Receiving a response signal returned by each target XR device based on the positioning signal; The position information of the corresponding XR device is determined based on the response signal of each target XR device.
4. The method according to claim 1, characterized in that: The step of determining an optimal target XR device among a plurality of target XR devices based on the position information of each target XR device and the position information of a preset position includes: Comparing the position information of each target XR device with the position information of the preset position to obtain a comparison result; When the position information of any target XR device is consistent with the position information of the preset position, the corresponding target XR device is used as the optimal target XR device; When there is no target XR device whose position information is consistent with the position information of the preset position, the target XR device closest to the preset position is used as the optimal target XR device.
5. The method according to claim 1, characterized in that Before the step of sending the first synchronization request to the plurality of first XR devices, the method further includes: Sending a ring signal to detect XR devices within a preset range, and determining a plurality of second XR devices detected; Sending a connection request to each second XR device; When a response signal returned by any second XR device is received, a communication channel is established with the corresponding second XR device, and the corresponding second XR device is determined as the first XR device.
6. A map data synchronization system for an XR device, characterized in that: The system includes: a plurality of XR devices, each of which is integrated with an ultra-wideband wireless communication module, and each of which is used to execute the map data synchronization method of the XR device as described in any one of claims 1 to 5.
7. The system according to claim 6, characterized in that Each XR device exchanges data with any other XR device through a preset frequency hopping sequence in the ultra-wideband wireless communication module.
8. A map data synchronization device for an XR device, characterized in that: The device comprises: A first sending module, configured to send a first synchronization request to a plurality of first XR devices, so that each first XR device determines whether the local device contains map data to be synchronized based on the received first synchronization request, and obtains a corresponding determination result; A first determination module, configured to determine at least two target XR devices from the plurality of first XR devices based on the determination results respectively returned by different first XR devices, wherein the target XR devices are XR devices that locally contain the map data to be synchronized; A second determination module is used to determine the location information of each target XR device; A third determination module, configured to determine an optimal target XR device among multiple target XR devices based on the position information of each target XR device and the position information of a preset position; A second sending module, configured to send a second synchronization request to the optimal target XR device, so that the optimal target XR device returns local map data to be synchronized based on the received second synchronization request; The first receiving module is used to receive the map data to be synchronized returned by the optimal target XR device, and merge the map data to be synchronized with the local map data.
9. The device according to claim 8, characterized in that The second determination module includes: The sending submodule is used to send positioning signals to each target XR device; A receiving submodule, configured to receive a response signal returned by each target XR device based on the positioning signal; The first determination submodule is configured to determine the position information of the corresponding XR device based on the response signal of each target XR device.
10. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the map data synchronization method of the XR device according to any one of claims 1 to 5 by executing the computer instructions.
11. An XR device, characterized in that: Includes the map data synchronization device as described in claim 8 or 9.
12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the map data synchronization method for an XR device according to any one of claims 1 to 5.