Anti-collision control method, device, equipment and storage medium
By acquiring and converting the coordinate database of interactive devices and adjusting the parameters in the smart glasses coordinate system, the problem of interactive device collision is solved, and device collision prevention and user experience are improved.
Patent Information
- Application Number
- CN202310266259.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-15
- Publication Date
- 2025-09-16
- Estimated Expiration
- 2043-03-15
AI Technical Summary
Existing technologies cannot effectively prevent collisions between interactive devices, resulting in device damage, and the additional sponge protection affects the user experience.
By obtaining the coordinate database of each interactive device, converting it into a coordinate database in the smart glasses coordinate system, and adjusting the parameters of the interactive objects when the coordinate points coincide, collisions are avoided.
Effectively prevent collisions between interactive devices, avoid device damage, and improve user experience.
Smart Images

Figure CN116301372B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of virtual reality technology, and in particular to an anti-collision control method, device, equipment and storage medium. Background Art
[0002] When users use smart glasses for entertainment, sometimes at least two interactive devices may collide due to action defects designed by game designers. For example, in entertainment projects such as boxing games and double-gun shooting, the above collisions may cause the appearance of the interactive device to be scratched and unsightly. In severe cases, the infrared aperture of the interactive device may be damaged or the connection may be poor, affecting normal use. To avoid the above defects, the commonly used anti-collision method is to wrap a layer of sponge on the interactive device. However, the sponge on the interactive device will affect the user experience. At the same time, due to the large collision force of the interactive device, the sponge cannot completely withstand the impact of the collision, which will eventually cause collisions between the interactive devices, that is, damage to the interactive device cannot be avoided.
[0003] The above content is only used to assist in understanding the technical solution of the present invention and does not constitute an admission that the above content is prior art. Summary of the Invention
[0004] The main purpose of the present invention is to provide an anti-collision control method, device, equipment and storage medium, aiming to solve the technical problems that the existing technology cannot effectively prevent collisions between interactive devices and cannot avoid damage to interactive devices.
[0005] To achieve the above object, the present invention provides an anti-collision control method, which includes the following steps:
[0006] Obtain the coordinate database of each interactive device;
[0007] Converting the coordinate database of each interactive device to obtain a coordinate database of each interactive device in the smart glasses coordinate system;
[0008] When it is determined that the coordinate points of the coordinate database of each interactive device in the smart glasses coordinate system overlap at the same time, the parameters of the objects in the smart glasses that interact with each interactive device are adjusted.
[0009] Optionally, obtaining a coordinate database of each interactive device includes:
[0010] Obtaining the infrared coordinate position of each interactive device and the coordinate position of the infrared aperture farthest from the infrared coordinate position;
[0011] Calculate the radius of the sphere according to the infrared coordinate position and the infrared aperture coordinate position;
[0012] Generate a spherical area according to the spherical radius and the infrared coordinate position of each interactive device;
[0013] A coordinate database of each interactive device is generated according to all coordinate points within the spherical area.
[0014] Optionally, converting the coordinate database of each interactive device to obtain a coordinate database of each interactive device in the smart glasses coordinate system includes:
[0015] Obtaining the interaction origin coordinates and other spatial coordinates according to the coordinate database of each interactive device;
[0016] Get the origin coordinates of the smart glasses coordinate system;
[0017] generating a coordinate data conversion strategy according to the interaction origin coordinates and the origin coordinates;
[0018] The interaction origin coordinates and other space coordinates are converted respectively according to the coordinate data conversion strategy to obtain a coordinate database of each interaction device in the smart glasses coordinate system.
[0019] Optionally, before converting the coordinate database of each interactive device to obtain the coordinate database of each interactive device in the smart glasses coordinate system, the method further includes:
[0020] Obtaining the front panel position data of the smart glasses;
[0021] determining a center point according to the front panel position data;
[0022] A smart glasses coordinate system is established according to the center point and a preset spatial coordinate system establishment strategy.
[0023] Optionally, when it is determined that the coordinate points of the coordinate database of each interactive device in the smart glasses coordinate system overlap at the same time, adjusting the parameters of the objects in the smart glasses that interact with each interactive device includes:
[0024] Traverse the coordinate database of each interactive device in the smart glasses coordinate system respectively to obtain the display time of the coordinate point of each interactive device;
[0025] When the display moments of the coordinate points of the interactive devices overlap, the parameters of the objects interacting with the interactive devices in the smart glasses are adjusted.
[0026] Optionally, when the display moments of the coordinate points of the interactive devices overlap, adjusting the parameters of the objects in the smart glasses that interact with the interactive devices includes:
[0027] When the display moments of the coordinate points of the interactive devices overlap, obtaining parameters of the objects interacting with the interactive devices in the smart glasses, the parameters including position parameters;
[0028] Adjusting the position parameters of objects in the smart glasses that interact with each interactive device.
[0029] Optionally, when the display moments of the coordinate points of the interactive devices overlap, adjusting the parameters of the objects in the smart glasses that interact with the interactive devices includes:
[0030] When the display moments of the coordinate points of the interactive devices overlap, obtaining parameters of the objects interacting with the interactive devices in the smart glasses, wherein the spatiotemporal parameters include time parameters;
[0031] Adjusting the time parameters of the objects in the smart glasses that interact with each interactive device.
[0032] In addition, to achieve the above-mentioned purpose, the present invention further provides an anti-collision control device, the anti-collision control device comprising:
[0033] An acquisition module, used to obtain the coordinate database of each interactive device;
[0034] A conversion module, configured to convert the coordinate database of each interactive device to obtain a coordinate database of each interactive device in the smart glasses coordinate system;
[0035] The adjustment module is used to adjust the parameters of the objects interacting with each interactive device in the smart glasses when it is determined that the coordinate points of the coordinate database of each interactive device in the smart glasses coordinate system overlap at the same time.
[0036] In addition, to achieve the above-mentioned purpose, the present invention also proposes an anti-collision control device, which includes: a memory, a processor, and an anti-collision control program stored in the memory and runnable on the processor, and the anti-collision control program is configured to implement the anti-collision control method described above.
[0037] In addition, to achieve the above-mentioned purpose, the present invention further proposes a storage medium, on which an anti-collision control program is stored. When the anti-collision control program is executed by a processor, the anti-collision control method as described above is implemented.
[0038] The anti-collision control method proposed in the present invention obtains the coordinate database of each interactive device; converts the coordinate database of each interactive device to obtain the coordinate database of each interactive device in the smart glasses coordinate system; when it is determined that the coordinate points of the coordinate database of each interactive device in the smart glasses coordinate system overlap at the same time, adjusts the parameters of the objects in the smart glasses that interact with each interactive device; after converting the coordinate database of each interactive device into the corresponding coordinate database in the smart glasses coordinate system in the above manner, it is determined whether the coordinate points of the coordinate database of each interactive device in the smart glasses coordinate system overlap at the same time. If so, the parameters of the objects in the smart glasses that interact with each interactive device are adjusted, thereby effectively preventing collisions between the interactive devices and avoiding damage to the interactive devices. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 Schematic diagram of the structure of the anti-collision control device in the hardware operating environment involved in the embodiment of the present invention;
[0040] Figure 2 This is a flow chart of a first embodiment of the anti-collision control method of the present invention;
[0041] Figure 3 This is a schematic structural diagram of smart glasses according to an embodiment of the anti-collision control method of the present invention;
[0042] Figure 4 This is a flow chart of a second embodiment of the anti-collision control method of the present invention;
[0043] Figure 5 Schematic diagram of the functional modules of the first embodiment of the anti-collision control device of the present invention.
[0044] The purpose, features and advantages of the present invention will be further described with reference to the accompanying drawings and in conjunction with the embodiments. DETAILED DESCRIPTION
[0045] It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0046] Reference Figure 1 , Figure 1 This is a schematic diagram of the structure of the anti-collision control device in the hardware operating environment involved in the embodiment of the present invention.
[0047] like Figure 1As shown, the anti-collision control device may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the user interface 1003 may optionally include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a wireless fidelity (Wireless-Fidelity, Wi-Fi) interface). The memory 1005 may be a high-speed random access memory (Random Access Memory, RAM) memory, or a stable non-volatile memory (Non-Volatile Memory, NVM), such as a disk memory. The memory 1005 may optionally be a storage device independent of the aforementioned processor 1001.
[0048] Those skilled in the art will understand that Figure 1 The structure shown in the figure does not constitute a limitation to the anti-collision control device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0049] like Figure 1 As shown, the memory 1005 as a storage medium may include an operating system, a network communication module, a user interface module, and an anti-collision control program.
[0050] exist Figure 1 In the anti-collision control device shown, the network interface 1004 is mainly used for data communication with the network integration platform workstation; the user interface 1003 is mainly used for data interaction with the user; the processor 1001 and the memory 1005 in the anti-collision control device of the present invention can be set in the anti-collision control device, and the anti-collision control device calls the anti-collision control program stored in the memory 1005 through the processor 1001, and executes the anti-collision control method provided by the embodiment of the present invention.
[0051] Based on the above hardware structure, an embodiment of the anti-collision control method of the present invention is proposed.
[0052] Reference Figure 2 , Figure 2 FIG. 1 is a flow chart of the first embodiment of the anti-collision control method of the present invention.
[0053] In a first embodiment, the anti-collision control method includes the following steps:
[0054] Step S10: Acquire a coordinate database of each interactive device.
[0055] It should be noted that the executor of this embodiment is an anti-collision control device, and it can also be other devices that can achieve the same or similar functions, such as an anti-collision controller, etc. This embodiment does not limit this. In this embodiment, the anti-collision controller is used as an example for explanation.
[0056] It should be understood that the coordinate database refers to a database composed of the coordinates of each interactive device in its own coordinate system. The number of interactive devices is at least 2, and the interactive device can be a handle or other virtual reality interactive device.
[0057] Furthermore, step S10 includes: obtaining the infrared coordinate position of each interactive device and the coordinate position of the infrared aperture farthest from the infrared coordinate position; calculating the radius of the sphere based on the infrared coordinate position and the coordinate position of the infrared aperture; generating a spherical area based on the spherical radius and the infrared coordinate position of each interactive device; and generating a coordinate database of each interactive device based on all coordinate points within the spherical area.
[0058] It can be understood that the infrared coordinate position refers to the coordinate position of the infrared light of the interactive device, and the infrared aperture coordinate position refers to the coordinate position of the infrared aperture that is farthest away from the infrared coordinate position. Then, the calculation formula of the distance between the two coordinates is used to calculate the radius of the sphere based on the infrared coordinate position and the infrared aperture coordinate position. Then, a spherical area is drawn with the infrared coordinate position of each interactive device as the origin and the spherical radius. Then, a coordinate database of each interactive device is generated by all the coordinate points within the spherical area.
[0059] Step S20: converting the coordinate database of each interactive device to obtain a coordinate database of each interactive device in the smart glasses coordinate system.
[0060] It can be understood that the smart glasses coordinate system refers to the spatial coordinate system constructed in the smart glasses, which can be VR glasses. After obtaining the coordinate database of each interactive device, the coordinate database of each interactive device is converted from its own coordinate system to the smart glasses coordinate system to obtain the coordinate database of each interactive device in the smart glasses coordinate system. At this time, the coordinate database includes all coordinate points of objects in the smart glasses that interact with each interactive device. The actual application scenario may be that the interactive object with the left interactive device appears in the operation area of the right interactive device, and the right interactive device is interacting with its interactive object, or the interactive object with the right interactive device appears in the operation area of the left interactive device, and the left interactive device is interacting with its interactive object.
[0061] Furthermore, before step S20, it also includes: obtaining front panel position data of the smart glasses; determining a center point according to the front panel position data; and establishing a smart glasses coordinate system according to the center point and a preset space coordinate system establishment strategy.
[0062] It should be understood that the front panel position data refers to all the position data of the front panel of the smart glasses, and then the center position data is searched from the front panel position data, and then the position point corresponding to the center position data is used as the center point. The preset spatial coordinate system establishment strategy refers to the strategy of establishing the spatial coordinate system with the coordinate origin. After determining the center point, the center point is used as the origin to establish the smart glasses coordinate system using the preset spatial coordinate system establishment strategy. Figure 3 , Figure 3 This is a schematic diagram of the structure of smart glasses. Specifically, the front panel of the smart glasses is determined, and then the center point of the front panel is determined, and the center point is used as the coordinate origin of the smart glasses coordinate system.
[0063] Step S30 : When it is determined that the coordinate points of the coordinate database of each interactive device in the smart glasses coordinate system overlap at the same time, the parameters of the objects in the smart glasses that interact with each interactive device are adjusted.
[0064] It should be understood that the operation object refers to the object with which the user interacts using the interactive device. For a shooting game, the operation object can be a target. After obtaining the coordinate points of the coordinate database of each interactive device in the smart glasses coordinate system, it is determined whether the coordinate points overlap at the same time. If so, it indicates that there is a risk of collision between the interactive devices. At this time, it is necessary to adjust the parameters of the objects in the smart glasses that interact with each interactive device. The spatiotemporal parameters include spatiotemporal position parameters and spatiotemporal moment parameters.
[0065] Furthermore, step S30 includes: traversing the coordinate database of each interactive device in the smart glasses coordinate system respectively to obtain the display time of the coordinate point of each interactive device; when the display time of the coordinate point of each interactive device overlaps, adjusting the parameters of the object in the smart glasses that interacts with each interactive device.
[0066] It can be understood that the display time refers to the time when the coordinate point is displayed in the smart glasses when the user uses the interactive device to interact. The coordinate database of each interactive device in the smart glasses coordinate system is traversed separately, and then the display time of the traversed coordinate point is obtained. It is then determined whether the display time of the coordinate points of each interactive device overlaps. If so, the parameters of the objects in the smart glasses that interact with each interactive device are adjusted.
[0067] Furthermore, when the display moments of the coordinate points of each interactive device overlap, the parameters of the objects in the smart glasses that interact with each interactive device are adjusted, including: when the display moments of the coordinate points of each interactive device overlap, obtaining the parameters of the objects in the smart glasses that interact with each interactive device, the parameters including position parameters; and adjusting the position parameters of the objects in the smart glasses that interact with each interactive device.
[0068] It should be understood that when it is determined that the display moments of the coordinate points of each interactive device overlap, the position parameters of the objects in the smart glasses that interact with each interactive device can be adjusted. For example, if the scene is a shooting game, if the operating object on the right appears in a standing manner, the interactive device corresponding to the operating object on the right will collide with the interactive device corresponding to the operating object on the left. At this time, the operating object on the right is adjusted to appear in a crouching manner, or the operating object on the right is adjusted to appear in a jumping manner.
[0069] Furthermore, when the display moments of the coordinate points of each interactive device overlap, the parameters of the objects in the smart glasses that interact with each interactive device are adjusted, including: when the display moments of the coordinate points of each interactive device overlap, obtaining the parameters of the objects in the smart glasses that interact with each interactive device, the spatiotemporal parameters including time parameters; and adjusting the time parameters of the objects in the smart glasses that interact with each interactive device.
[0070] It can be understood that when it is determined that the display times of the coordinate points of each interactive device overlap, the time parameters of the objects in the smart glasses that interact with each interactive device can be adjusted. For example, if the scene is a shooting game, if the appearance time of the operation object on the right is 0.5 seconds after the operation object on the left, the interactive device corresponding to the operation object on the right will collide with the interactive device corresponding to the operation object on the left. At this time, the appearance time of the operation object on the right is adjusted to 1 second after the operation object on the left, or the appearance time of the operation object on the right is adjusted to 0.5 seconds before the operation object on the left.
[0071] This embodiment obtains the coordinate database of each interactive device; converts the coordinate database of each interactive device to obtain the coordinate database of each interactive device in the smart glasses coordinate system; when it is determined that the coordinate points of the coordinate database of each interactive device in the smart glasses coordinate system overlap at the same time, the parameters of the objects in the smart glasses that interact with each interactive device are adjusted; after converting the coordinate database of each interactive device into the corresponding coordinate database in the smart glasses coordinate system in the above manner, it is determined whether the coordinate points of the coordinate database of each interactive device in the smart glasses coordinate system overlap at the same time. If so, the parameters of the objects in the smart glasses that interact with each interactive device are adjusted, thereby effectively preventing collisions between the interactive devices and avoiding damage to the interactive devices.
[0072] In one embodiment, if Figure 4 Based on the first embodiment, a second embodiment of the anti-collision control method of the present invention is proposed. Step S20 includes:
[0073] Step S201 : obtaining the interaction origin coordinates and other spatial coordinates according to the coordinate database of each interaction device.
[0074] It should be understood that the interaction origin coordinates refer to the origin coordinates of the coordinate system of each interactive device itself, and other spatial coordinates refer to all coordinates in the coordinate database except the interaction origin coordinates, that is, the interaction origin coordinates and other spatial coordinates are determined from the coordinate database of each interactive device.
[0075] Step S202: Obtain the origin coordinates of the smart glasses coordinate system.
[0076] Step S203: generating a coordinate data conversion strategy according to the interaction origin coordinates and the origin coordinates.
[0077] It should be understood that the coordinate data conversion strategy refers to a strategy for converting the coordinate database of each interactive device from its own coordinate system to the smart glasses coordinate system. The coordinate data conversion strategy is generated based on the interaction origin coordinates and the origin coordinates. Specifically, the process of converting the interaction origin coordinates into the origin coordinates of the smart glasses coordinate system is encapsulated into a coordinate data conversion strategy. For example, the number of interactive devices is 2, namely the left interactive device and the right interactive device. The origin coordinates of the smart glasses coordinate system are H0, the interaction origin coordinates of the left interactive device are HL, and the interaction origin coordinates of the right interactive device are HR. At this time, HR and HL need to be converted to H0.
[0078] Step S204 : converting the interaction origin coordinates and other space coordinates according to the coordinate data conversion strategy to obtain a coordinate database of each interaction device in the smart glasses coordinate system.
[0079] It can be understood that after generating the coordinate data conversion strategy, the interaction origin coordinates and other space coordinates are converted respectively, that is, the coordinate database of each interactive device in the smart glasses coordinate system is obtained. For example, the coordinate databases of each interactive device are DL and DR respectively, and the smart glasses coordinate system is H. After conversion, the coordinate databases in the smart glasses coordinate system are H_DL and H_DR respectively.
[0080] This embodiment obtains the interaction origin coordinates and other spatial coordinates based on the coordinate database of each interactive device; obtains the origin coordinates of the smart glasses coordinate system; generates a coordinate data conversion strategy based on the interaction origin coordinates and the origin coordinates; converts the interaction origin coordinates and other spatial coordinates according to the coordinate data conversion strategy to obtain the coordinate database of each interactive device in the smart glasses coordinate system; through the above method, a coordinate data conversion strategy is generated based on the interaction origin coordinates of each interactive device and the origin coordinates of the smart glasses coordinate system, and then the coordinate data conversion strategy is used to convert the interaction origin coordinates and other spatial coordinates respectively, thereby effectively improving the accuracy of the coordinate database obtained in the smart glasses coordinate system.
[0081] In addition, an embodiment of the present invention further provides a storage medium, on which an anti-collision control program is stored. When the anti-collision control program is executed by a processor, the steps of the anti-collision control method described above are implemented.
[0082] Since the storage medium adopts all the technical solutions of all the above embodiments, it has at least all the beneficial effects brought by the technical solutions of the above embodiments, which will not be described one by one here.
[0083] In addition, refer to Figure 5 , an embodiment of the present invention further provides an anti-collision control device, the anti-collision control device comprising:
[0084] The acquisition module 10 is used to acquire the coordinate database of each interactive device.
[0085] The conversion module 20 is used to convert the coordinate database of each interactive device to obtain the coordinate database of each interactive device in the smart glasses coordinate system.
[0086] The adjustment module 30 is configured to adjust parameters of objects interacting with the interactive devices in the smart glasses when it is determined that the coordinate points of the coordinate database of the interactive devices in the smart glasses coordinate system overlap at the same time.
[0087] This embodiment obtains the coordinate database of each interactive device; converts the coordinate database of each interactive device to obtain the coordinate database of each interactive device in the smart glasses coordinate system; when it is determined that the coordinate points of the coordinate database of each interactive device in the smart glasses coordinate system overlap at the same time, the parameters of the objects in the smart glasses that interact with each interactive device are adjusted; after converting the coordinate database of each interactive device into the corresponding coordinate database in the smart glasses coordinate system in the above manner, it is determined whether the coordinate points of the coordinate database of each interactive device in the smart glasses coordinate system overlap at the same time. If so, the parameters of the objects in the smart glasses that interact with each interactive device are adjusted, thereby effectively preventing collisions between the interactive devices and avoiding damage to the interactive devices.
[0088] It should be noted that the workflow described above is merely illustrative and does not limit the scope of protection of the present invention. In practical applications, technicians in this field can select part or all of it according to actual needs to achieve the purpose of the embodiment scheme, and no limitation is made here.
[0089] In addition, for technical details not fully described in this embodiment, reference can be made to the anti-collision control method provided in any embodiment of the present invention, and will not be repeated here.
[0090] In one embodiment, the acquisition module 10 is also used to obtain the infrared coordinate position of each interactive device and the coordinate position of the infrared aperture farthest from the infrared coordinate position; calculate the radius of the sphere based on the infrared coordinate position and the coordinate position of the infrared aperture; generate a spherical area based on the spherical radius and the infrared coordinate position of each interactive device; and generate a coordinate database of each interactive device based on all coordinate points within the spherical area.
[0091] In one embodiment, the conversion module 20 is further used to obtain the interaction origin coordinates and other spatial coordinates based on the coordinate database of each interactive device; obtain the origin coordinates of the smart glasses coordinate system; generate a coordinate data conversion strategy based on the interaction origin coordinates and the origin coordinates; and convert the interaction origin coordinates and other spatial coordinates according to the coordinate data conversion strategy to obtain the coordinate database of each interactive device in the smart glasses coordinate system.
[0092] In one embodiment, the conversion module 20 is further used to obtain front panel position data of the smart glasses; determine the center point based on the front panel position data; and establish a smart glasses coordinate system based on the center point and a preset spatial coordinate system establishment strategy.
[0093] In one embodiment, the adjustment module 30 is further used to traverse the coordinate database of each interactive device in the smart glasses coordinate system respectively to obtain the display time of the coordinate point of each interactive device; when the display time of the coordinate point of each interactive device overlaps, the parameters of the object in the smart glasses that interacts with each interactive device are adjusted.
[0094] In one embodiment, the adjustment module 30 is further used to obtain parameters of objects interacting with each interactive device in the smart glasses when the display moments of the coordinate points of each interactive device overlap, the parameters including position parameters; and adjust the position parameters of the objects interacting with each interactive device in the smart glasses.
[0095] In one embodiment, the adjustment module 30 is further used to obtain parameters of objects interacting with each interactive device in the smart glasses when the display moments of the coordinate points of each interactive device overlap, wherein the spatiotemporal parameters include time parameters; and adjust the time parameters of the objects interacting with each interactive device in the smart glasses.
[0096] Other embodiments or implementation methods of the anti-collision control device of the present invention can refer to the above-mentioned method embodiments, which will not be repeated here.
[0097] In addition, it should be noted that, in this document, the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or system comprising a series of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, article, or system. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or system comprising the element.
[0098] The serial numbers of the above embodiments of the present invention are for description only and do not represent the advantages or disadvantages of the embodiments.
[0099] Through the description of the above embodiments, those skilled in the art can clearly understand that the above embodiment methods can be implemented by means of software plus the necessary general hardware platform, or of course by hardware, but in many cases the former is a better embodiment. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as a read-only memory (ROM) / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, a computer, an integrated platform workstation, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0100] The above are only preferred embodiments of the present invention and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention description and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A collision avoidance control method, characterized in that: The anti-collision control method comprises the following steps: Obtain the coordinate database of each interactive device; Converting the coordinate database of each interactive device to obtain a coordinate database of each interactive device in the smart glasses coordinate system; When it is determined that the coordinate points of the coordinate database of each interactive device in the smart glasses coordinate system overlap at the same time, adjusting the parameters of the objects in the smart glasses that interact with each interactive device; wherein the objects refer to the objects that the user interacts with using the interactive devices; The step of obtaining a coordinate database of each interactive device includes: Obtain the infrared coordinate position of each interactive device and the coordinate position of the infrared aperture farthest from the infrared coordinate position; wherein the infrared coordinate position refers to the coordinate position of the infrared light of the interactive device, and the infrared aperture coordinate position refers to the coordinate position of the infrared aperture farthest from the infrared coordinate position; Calculate the radius of the sphere according to the infrared coordinate position and the infrared aperture coordinate position; Generate a spherical area according to the spherical radius and the infrared coordinate position of each interactive device; A coordinate database of each interactive device is generated according to all coordinate points within the spherical area.
2. The anti-collision control method according to claim 1, wherein: The converting the coordinate database of each interactive device to obtain the coordinate database of each interactive device in the smart glasses coordinate system includes: Obtaining the interaction origin coordinates and other spatial coordinates according to the coordinate database of each interactive device; Get the origin coordinates of the smart glasses coordinate system; generating a coordinate data conversion strategy according to the interaction origin coordinates and the origin coordinates; The interaction origin coordinates and other space coordinates are converted respectively according to the coordinate data conversion strategy to obtain a coordinate database of each interaction device in the smart glasses coordinate system.
3. The anti-collision control method according to claim 1, wherein: Before converting the coordinate database of each interactive device to obtain the coordinate database of each interactive device in the smart glasses coordinate system, the method further includes: Obtaining the front panel position data of the smart glasses; determining a center point according to the front panel position data; A smart glasses coordinate system is established according to the center point and a preset spatial coordinate system establishment strategy.
4. The anti-collision control method according to claim 1, wherein: When it is determined that the coordinate points of the coordinate database of each interactive device in the smart glasses coordinate system overlap at the same time, adjusting the parameters of the objects in the smart glasses that interact with each interactive device includes: Traverse the coordinate database of each interactive device in the smart glasses coordinate system respectively to obtain the display time of the coordinate point of each interactive device; When the display moments of the coordinate points of the interactive devices overlap, the parameters of the objects interacting with the interactive devices in the smart glasses are adjusted.
5. The anti-collision control method according to claim 4, wherein: When the display moments of the coordinate points of the interactive devices overlap, adjusting the parameters of the objects in the smart glasses that interact with the interactive devices includes: When the display moments of the coordinate points of the interactive devices overlap, obtaining parameters of the objects interacting with the interactive devices in the smart glasses, the parameters including position parameters; Adjusting the position parameters of objects in the smart glasses that interact with each interactive device.
6. The anti-collision control method according to claim 4, wherein: When the display moments of the coordinate points of the interactive devices overlap, adjusting the parameters of the objects in the smart glasses that interact with the interactive devices includes: When the display moments of the coordinate points of the interactive devices overlap, obtaining parameters of the objects interacting with the interactive devices in the smart glasses, the parameters including time parameters; Adjusting the time parameters of the objects in the smart glasses that interact with each interactive device.
7. An anti-collision control device, characterized in that: The anti-collision control device comprises: An acquisition module, used to obtain the coordinate database of each interactive device; A conversion module, configured to convert the coordinate database of each interactive device to obtain a coordinate database of each interactive device in the smart glasses coordinate system; an adjustment module, configured to adjust parameters of objects in the smart glasses that interact with the interactive devices when it is determined that the coordinate points of the coordinate database of the interactive devices in the smart glasses coordinate system overlap at the same time; wherein the objects refer to objects that the user interacts with using the interactive devices; The acquisition module is further used to obtain the infrared coordinate position of each interactive device and the coordinate position of the infrared aperture farthest from the infrared coordinate position; wherein the infrared coordinate position refers to the coordinate position of the infrared lamp of the interactive device, and the infrared aperture coordinate position refers to the coordinate position of the infrared aperture farthest from the infrared coordinate position; calculate the radius of the sphere based on the infrared coordinate position and the infrared aperture coordinate position; generate a spherical area based on the spherical radius and the infrared coordinate position of each interactive device; and generate a coordinate database for each interactive device based on all coordinate points within the spherical area.
8. An anti-collision control device, characterized in that: The anti-collision control device includes: a memory, a processor, and an anti-collision control program stored in the memory and executable on the processor, wherein the anti-collision control program is configured to implement the anti-collision control method according to any one of claims 1 to 6.
9. A storage medium, characterized in that: The storage medium stores an anti-collision control program, which, when executed by a processor, implements the anti-collision control method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Multirobot collision preventing method and system
CN106325280A
Anti-collision method, device and equipment and storage medium
CN111437522A