Position synchronization method, device and equipment

文档序号:1119090 发布日期:2020-10-02 浏览:12次 中文

阅读说明:本技术 位置同步方法、装置及设备 (Position synchronization method, device and equipment ) 是由 国石 马宗扬 喻思瑞 王志昊 于 2020-06-30 设计创作,主要内容包括:本申请公开了一种位置同步方法、装置及设备,涉及计算机技术领域,能够由服务端计算对象的绝对位置坐标,提高位置同步的准确性。其中方法包括:获取在可移动承载对象区域内移动对象的操作指令,提取所述操作指令对应的位移参数;将根据所述位移参数生成的对象的位置同步请求发送至服务端,由所述服务端根据对象在可移动承载对象区域内的相对位置坐标计算所述对象的绝对位置坐标;接收所述对象的绝对位置坐标。(The application discloses a position synchronization method, a position synchronization device and position synchronization equipment, relates to the technical field of computers, and aims to improve the accuracy of position synchronization by calculating the absolute position coordinates of an object through a server. The method comprises the following steps: acquiring an operation instruction of moving an object in a movable object bearing area, and extracting a displacement parameter corresponding to the operation instruction; sending a position synchronization request of the object generated according to the displacement parameters to a server side, and calculating absolute position coordinates of the object by the server side according to relative position coordinates of the object in a movable bearing object area; absolute position coordinates of the object are received.)

1. A method of position synchronization, comprising:

acquiring an operation instruction of moving an object in a movable object bearing area, and extracting a displacement parameter corresponding to the operation instruction;

sending a position synchronization request of the object generated according to the displacement parameters to a server side, and calculating absolute position coordinates of the object by the server side according to relative position coordinates of the object in a movable bearing object area;

absolute position coordinates of the object are received.

2. The method according to claim 1, wherein before the obtaining the operation instruction for moving the object in the movable object bearing area and extracting the displacement parameter corresponding to the operation instruction, the method further comprises:

when a trigger instruction that the object enters the movable object bearing area is detected, the initial position coordinates of the object are sent to the server side, and the server side calculates and stores the relative position coordinates of the object in the movable object bearing area.

3. The method according to claim 1, wherein after sending the request for position synchronization of the object generated according to the displacement parameter to a server, the method further comprises:

and receiving the target position coordinate of the movable bearing object calculated according to the displacement parameter, and determining the absolute position coordinate of the movable bearing object.

4. The method of claim 3, wherein the movable object is bound with an associated object, and after receiving the target position coordinates of the movable object calculated according to the displacement parameters and determining the absolute position coordinates of the movable object, the method further comprises:

and calculating the absolute position coordinates of the related objects in the movable bearing object area by using the absolute position coordinates of the movable bearing object.

5. The method according to claim 4, wherein the calculating absolute position coordinates of the associated object in the movable carrying object region using the absolute position coordinates of the movable carrying object specifically comprises:

determining the basic offset of the associated object relative to the movable bearing object by utilizing the hanging point information of the associated object bound to the movable bearing object;

and adding the basic offset into the absolute position coordinates of the movable bearing object, and calculating the absolute position coordinates of the associated object in the movable bearing object area.

6. A method of position synchronization, comprising:

receiving a position synchronization request of an object, and respectively determining an absolute position coordinate of a movable bearing object and a relative position coordinate of the object in a movable bearing object area according to a displacement parameter carried by the position synchronization request of the object;

calculating the absolute position coordinate of the object according to the absolute position coordinate of the movable bearing object and the relative position coordinate of the object in the movable bearing object area;

and transmitting the absolute position coordinates of the object to a client as broadcast information.

7. A position synchronization apparatus, comprising:

the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring an operation instruction of moving an object in a movable object bearing area and extracting a displacement parameter corresponding to the operation instruction;

the first sending unit is used for sending the position synchronization request of the object generated according to the displacement parameter to a server side, and the server side calculates the absolute position coordinate of the object according to the relative position coordinate of the object in the movable bearing object area;

a first receiving unit for receiving absolute position coordinates of the object.

8. A position synchronization apparatus, comprising:

the determining unit is used for receiving a position synchronization request of an object, and respectively determining the absolute position coordinate of the movable bearing object and the relative position coordinate of the object in the movable bearing object area according to the displacement parameter carried by the position synchronization request of the object;

a second calculation unit for calculating absolute position coordinates of the object based on the absolute position coordinates of the movable carrying object and relative position coordinates of the object within the movable carrying object region;

a broadcasting unit for transmitting the absolute position coordinates of the object as broadcast information to a client.

9. A client device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the position synchronization method according to any of claims 1 to 5.

10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the position synchronization method according to any one of claims 1 to 5.

24页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:语言的配置方法及装置、存储介质、电子装置

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类